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 AbstractDependencyMojo
Goal that collects all project dependencies and then lists the repositories used by the build and by the transitive dependencies.
Since:
2.2
Author:
Brian Fox
  • Field Summary

    Fields inherited from class org.apache.maven.plugins.dependency.AbstractDependencyMojo

    session

    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

    Modifier and Type
    Method
    Description
    protected void
    Displays a list of the repositories used by this build.

    Methods inherited from class org.apache.maven.plugins.dependency.AbstractDependencyMojo

    execute, getProject, isSilent, isSkip, setSilent, setSkip

    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
  • Constructor Details

    • 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 Details

    • 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