Class ResolvePluginsMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.apache.maven.plugins.dependency.AbstractDependencyMojo
org.apache.maven.plugins.dependency.resolvers.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 AbstractDependencyMojo
Goal that resolves all project plugins and reports and their dependencies.
- Since:
- 2.0
- Author:
- Brian Fox
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprotected booleanWhether to append outputs into the output file or overwrite it.List of artifact IDs to exclude.List of group IDs to exclude.protected booleanDon't resolve plugins that are in the current reactor.protected booleanIf we should exclude transitive dependencies.List of artifact IDs to include.List of group IDs to include.protected FileIf specified, this parameter causes the dependencies to be written to the path specified instead of the console.Fields inherited from class org.apache.maven.plugins.dependency.AbstractDependencyMojoreactorProjects, sessionFields inherited from interface org.apache.maven.plugin.MojoROLE
- 
Constructor SummaryConstructorsConstructorDescriptionResolvePluginsMojo(org.apache.maven.execution.MavenSession session, org.sonatype.plexus.build.incremental.BuildContext buildContext, org.apache.maven.project.MavenProject project, ResolverUtil resolverUtil) 
- 
Method SummaryMethods inherited from class org.apache.maven.plugins.dependency.AbstractDependencyMojoexecute, getProject, isSilent, isSkip, setSilent, setSkipMethods inherited from class org.apache.maven.plugin.AbstractMojogetLog, getPluginContext, setLog, setPluginContext
- 
Field Details- 
outputFileIf specified, this parameter causes the dependencies to be written to the path specified instead of the console.- Since:
- 2.0
 
- 
excludeTransitive@Parameter(property="excludeTransitive", defaultValue="false") protected boolean excludeTransitiveIf we should exclude transitive dependencies. This means only the plugin artifacts itself will be resolved not plugin dependencies.- Since:
- 2.0
 
- 
excludeArtifactIds@Parameter(property="excludeArtifactIds", defaultValue="") protected List<String> excludeArtifactIdsList of artifact IDs to exclude.- Since:
- 2.0
 
- 
includeArtifactIds@Parameter(property="includeArtifactIds", defaultValue="") protected List<String> includeArtifactIdsList of artifact IDs to include. Empty list indicates include everything (default).- Since:
- 2.0
 
- 
excludeGroupIdsList of group IDs to exclude.- Since:
- 2.0
 
- 
includeGroupIdsList of group IDs to include. Empty list indicates include everything (default).- Since:
- 2.0
 
- 
appendOutput@Parameter(property="appendOutput", defaultValue="false") protected boolean appendOutputWhether to append outputs into the output file or overwrite it.- Since:
- 2.2
 
- 
excludeReactor@Parameter(property="excludeReactor", defaultValue="true") protected boolean excludeReactorDon't resolve plugins that are in the current reactor.- Since:
- 2.7
 
 
- 
- 
Constructor Details- 
ResolvePluginsMojo@Inject public ResolvePluginsMojo(org.apache.maven.execution.MavenSession session, org.sonatype.plexus.build.incremental.BuildContext buildContext, org.apache.maven.project.MavenProject project, ResolverUtil resolverUtil) 
 
- 
- 
Method Details- 
doExecuteprotected void doExecute() throws org.apache.maven.plugin.MojoExecutionExceptionMain entry into mojo. Gets the list of dependencies and iterates through displaying the resolved version.- Specified by:
- doExecutein class- AbstractDependencyMojo
- Throws:
- org.apache.maven.plugin.MojoExecutionException- with a message if an error occurs
 
 
-