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.AbstractDependencyFilterMojo
org.apache.maven.plugin.dependency.AbstractResolveMojo
org.apache.maven.plugin.dependency.resolvers.ResolvePluginsMojo
- All Implemented Interfaces:
- org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
public class ResolvePluginsMojo
- extends AbstractResolveMojo
Goal that resolves all project plugins and reports and their dependencies.
- Since:
- 2.0
- Version:
- $Id: ResolvePluginsMojo.java 1085777 2011-03-26 18:13:19Z hboutemy $
- Author:
- Brian Fox
- Is defined by the goal name:
- resolve-plugins
- Is bound to the specified phase of the standard build lifecycle:
- generate-sources
Fields inherited from class org.apache.maven.plugin.dependency.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 |
void |
execute()
Main entry into mojo. |
protected org.apache.maven.shared.artifact.filter.collection.ArtifactsFilter |
getMarkedArtifactFilter()
|
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, getArchiverManager, getArtifactCollector, getArtifactMetadataSource, getFactory, getLocal, getLog, getProject, getRemoteRepos, getResolver, setArchiverManager, setArtifactCollector, setArtifactMetadataSource, setFactory, setLocal, setRemoteRepos, setResolver, 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()
execute
public void execute()
throws org.apache.maven.plugin.MojoExecutionException
- Main entry into mojo. Gets the list of dependencies and iterates through
displaying the resolved version.
- 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
- This method resolves the plugin artifacts from the project.
- Parameters:
project
- The POM.artifactFactory
- component to build artifact objects.localRepository
- where to resolve artifacts.remotePluginRepositories
- list of remote repositories used to resolve plugins.artifactResolver
- component used to resolve artifacts.
- Returns:
- set of resolved plugin artifacts.
- Throws:
org.apache.maven.artifact.resolver.ArtifactResolutionException
org.apache.maven.artifact.resolver.ArtifactNotFoundException
getMarkedArtifactFilter
protected org.apache.maven.shared.artifact.filter.collection.ArtifactsFilter getMarkedArtifactFilter()
- Specified by:
getMarkedArtifactFilter
in class AbstractDependencyFilterMojo
Copyright © 2002-2011 The Apache Software Foundation. All Rights Reserved.