Class ListRepositoriesMojo
- java.lang.Object
-
- org.apache.maven.plugin.AbstractMojo
-
- org.apache.maven.plugins.dependency.AbstractDependencyMojo
-
- org.apache.maven.plugins.dependency.resolvers.ListRepositoriesMojo
-
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled
,org.apache.maven.plugin.Mojo
@Mojo(name="list-repositories", requiresDependencyResolution=TEST, threadSafe=true) public class ListRepositoriesMojo extends AbstractDependencyMojo
Goal that resolves all project dependencies and then lists the repositories used by the build and by the transitive dependencies- Since:
- 2.2
-
-
Field Summary
Fields Modifier and Type Field Description private org.apache.maven.shared.transfer.dependencies.collect.DependencyCollector
dependencyCollector
Dependency collector, needed to resolve dependencies.-
Fields inherited from class org.apache.maven.plugins.dependency.AbstractDependencyMojo
outputAbsoluteArtifactFilename, reactorProjects, session
-
-
Constructor Summary
Constructors Constructor Description ListRepositoriesMojo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
doExecute()
Displays a list of the repositories used by this build.-
Methods inherited from class org.apache.maven.plugins.dependency.AbstractDependencyMojo
copyFile, execute, getArchiverManager, getProject, isSilent, isSkip, isUseJvmChmod, newResolveArtifactProjectBuildingRequest, setArchiverManager, setSilent, setSkip, setUseJvmChmod, unpack, unpack, unpack
-
-
-
-
Method Detail
-
doExecute
protected void doExecute() throws org.apache.maven.plugin.MojoExecutionException
Displays a list of the repositories used by this build.- Specified by:
doExecute
in classAbstractDependencyMojo
- Throws:
org.apache.maven.plugin.MojoExecutionException
- with a message if an error occurs.
-
-