Class ListRepositoriesMojo
- java.lang.Object
-
- org.apache.maven.plugin.AbstractMojo
-
- org.apache.maven.plugins.dependency.AbstractDependencyMojo
-
- org.apache.maven.plugins.dependency.ListRepositoriesMojo
-
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo
@Mojo(name="list-repositories", threadSafe=true) public class ListRepositoriesMojo extends AbstractDependencyMojoGoal that collects 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.eclipse.aether.RepositorySystemrepositorySystem-
Fields inherited from class org.apache.maven.plugins.dependency.AbstractDependencyMojo
session
-
-
Constructor Summary
Constructors Constructor Description ListRepositoriesMojo(org.apache.maven.execution.MavenSession session, org.sonatype.plexus.build.incremental.BuildContext buildContext, org.apache.maven.project.MavenProject project, org.eclipse.aether.RepositorySystem repositorySystem)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private voiddebugLogNodeRepo(org.eclipse.aether.graph.DependencyNode node)protected voiddoExecute()Displays a list of the repositories used by this build.private voidprepareRemoteMirrorRepositoriesList(java.lang.StringBuilder message, java.util.Collection<org.eclipse.aether.repository.RemoteRepository> remoteProjectRepositories)private voidprepareRemoteRepositoriesList(java.lang.StringBuilder message, java.util.Collection<org.eclipse.aether.repository.RemoteRepository> remoteProjectRepositories)-
Methods inherited from class org.apache.maven.plugins.dependency.AbstractDependencyMojo
execute, getProject, isSilent, isSkip, setSilent, setSkip
-
-
-
-
Method Detail
-
doExecute
protected void doExecute() throws org.apache.maven.plugin.MojoExecutionExceptionDisplays a list of the repositories used by this build.- Specified by:
doExecutein classAbstractDependencyMojo- Throws:
org.apache.maven.plugin.MojoExecutionException- with a message if an error occurs
-
debugLogNodeRepo
private void debugLogNodeRepo(org.eclipse.aether.graph.DependencyNode node)
-
prepareRemoteMirrorRepositoriesList
private void prepareRemoteMirrorRepositoriesList(java.lang.StringBuilder message, java.util.Collection<org.eclipse.aether.repository.RemoteRepository> remoteProjectRepositories)
-
prepareRemoteRepositoriesList
private void prepareRemoteRepositoriesList(java.lang.StringBuilder message, java.util.Collection<org.eclipse.aether.repository.RemoteRepository> remoteProjectRepositories)
-
-