org.apache.maven.plugin.dependency.resolvers
Class ResolvePluginsMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.apache.maven.plugin.dependency.AbstractDependencyMojo
org.apache.maven.plugin.dependency.fromDependencies.AbstractDependencyFilterMojo
org.apache.maven.plugin.dependency.resolvers.AbstractResolveMojo
org.apache.maven.plugin.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 AbstractResolveMojo
Goal that resolves all project plugins and reports and their dependencies.
- Since:
- 2.0
- Version:
- $Id: ResolvePluginsMojo.java 1481553 2013-05-12 13:25:34Z hboutemy $
- Author:
- Brian Fox
| Fields inherited from class org.apache.maven.plugin.dependency.fromDependencies.AbstractDependencyFilterMojo |
classifier, excludeArtifactIds, excludeClassifiers, excludeGroupIds, excludeScope, excludeTypes, includeArtifactIds, includeClassifiers, includeGroupIds, includeScope, includeTypes, markersDirectory, overWriteIfNewer, overWriteReleases, overWriteSnapshots, prependGroupId, type |
| Fields inherited from interface org.apache.maven.plugin.Mojo |
ROLE |
|
Method Summary |
protected void |
doExecute()
Main entry into mojo. |
protected org.apache.maven.shared.artifact.filter.collection.ArtifactsFilter |
getMarkedArtifactFilter()
Return an ArtifactsFilter indicating which artifacts must be filtered out. |
protected Set<org.apache.maven.artifact.Artifact> |
resolvePluginArtifacts()
This method resolves the plugin artifacts from the project. |
| Methods inherited from class org.apache.maven.plugin.dependency.AbstractDependencyMojo |
copyFile, execute, getArchiverManager, getArtifactCollector, getArtifactMetadataSource, getFactory, getLocal, getLog, getProject, getRemoteRepos, getResolver, isSkip, isUseJvmChmod, setArchiverManager, setArtifactCollector, setArtifactMetadataSource, setFactory, setLocal, setRemoteRepos, setResolver, setSkip, setUseJvmChmod, unpack, unpack |
| Methods inherited from class org.apache.maven.plugin.AbstractMojo |
getPluginContext, setLog, setPluginContext |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ResolvePluginsMojo
public ResolvePluginsMojo()
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.artifact.resolver.ArtifactResolutionException,
org.apache.maven.artifact.resolver.ArtifactNotFoundException,
org.apache.maven.shared.artifact.filter.collection.ArtifactFilterException
- This method resolves the plugin artifacts from the project.
- Returns:
- set of resolved plugin artifacts.
- Throws:
org.apache.maven.artifact.resolver.ArtifactResolutionException
org.apache.maven.artifact.resolver.ArtifactNotFoundException
org.apache.maven.shared.artifact.filter.collection.ArtifactFilterException
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.
Copyright © 2002-2013 The Apache Software Foundation. All Rights Reserved.