Class ListRepositoriesMojo

  • All Implemented Interfaces:
    org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

    @Mojo(name="list-repositories",
          threadSafe=true)
    public class ListRepositoriesMojo
    extends AbstractDependencyMojo
    Goal 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.RepositorySystem repositorySystem  
      • Fields inherited from interface org.apache.maven.plugin.Mojo

        ROLE
    • 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 void debugLogNodeRepo​(org.eclipse.aether.graph.DependencyNode node)  
      protected void doExecute()
      Displays a list of the repositories used by this build.
      private void prepareRemoteMirrorRepositoriesList​(java.lang.StringBuilder message, java.util.Collection<org.eclipse.aether.repository.RemoteRepository> remoteProjectRepositories)  
      private void prepareRemoteRepositoriesList​(java.lang.StringBuilder message, java.util.Collection<org.eclipse.aether.repository.RemoteRepository> remoteProjectRepositories)  
      • Methods inherited from class org.apache.maven.plugin.AbstractMojo

        getLog, getPluginContext, setLog, setPluginContext
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • repositorySystem

        private final org.eclipse.aether.RepositorySystem repositorySystem
    • Constructor Detail

      • ListRepositoriesMojo

        @Inject
        public 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 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 class AbstractDependencyMojo
        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)