Class ResolvePluginsMojo

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

@Mojo(name="resolve-plugins", defaultPhase=GENERATE_SOURCES, threadSafe=true) public class ResolvePluginsMojo extends AbstractResolveMojo
Goal that resolves all project plugins and reports and their dependencies.
Since:
2.0
  • Field Details

    • remotePluginRepositories

      @Parameter(defaultValue="${project.pluginArtifactRepositories}", readonly=true, required=true) private List<org.apache.maven.artifact.repository.ArtifactRepository> remotePluginRepositories
      Remote repositories which will be searched for plugins.
  • Constructor Details

    • ResolvePluginsMojo

      public ResolvePluginsMojo()
  • Method Details

    • doExecute

      protected void doExecute() throws org.apache.maven.plugin.MojoExecutionException
      Main entry into mojo. Gets the list of dependencies and iterates through displaying the resolved version.
      Specified by:
      doExecute in class AbstractDependencyMojo
      Throws:
      org.apache.maven.plugin.MojoExecutionException - with a message if an error occurs.
    • resolvePluginArtifacts

      protected Set<org.apache.maven.artifact.Artifact> resolvePluginArtifacts() throws org.apache.maven.shared.artifact.filter.collection.ArtifactFilterException, org.apache.maven.shared.transfer.artifact.resolve.ArtifactResolverException
      This method resolves the plugin artifacts from the project.
      Returns:
      set of resolved plugin artifacts.
      Throws:
      org.apache.maven.shared.artifact.filter.collection.ArtifactFilterException - in case of an error.
      org.apache.maven.shared.transfer.artifact.resolve.ArtifactResolverException - in case of an error.
    • getMarkedArtifactFilter

      protected org.apache.maven.shared.artifact.filter.collection.ArtifactsFilter getMarkedArtifactFilter()
      Description copied from class: AbstractDependencyFilterMojo
      Return an ArtifactsFilter indicating which artifacts must be filtered out.
      Specified by:
      getMarkedArtifactFilter in class AbstractDependencyFilterMojo
      Returns:
      an ArtifactsFilter indicating which artifacts must be filtered out.