org.apache.maven.plugin.dependency.resolvers
Class ResolvePluginsMojo

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by org.apache.maven.plugin.dependency.AbstractDependencyMojo
          extended by org.apache.maven.plugin.dependency.AbstractDependencyFilterMojo
              extended by org.apache.maven.plugin.dependency.AbstractResolveMojo
                  extended by org.apache.maven.plugin.dependency.resolvers.ResolvePluginsMojo
All Implemented Interfaces:
ContextEnabled, 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 1400739 2012-10-21 23:05:22Z hboutemy $
Author:
Brian Fox

Field Summary
 
Fields inherited from class org.apache.maven.plugin.dependency.AbstractResolveMojo
appendOutput, mavenProjectBuilder, outputFile
 
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 class org.apache.maven.plugin.dependency.AbstractDependencyMojo
archiverManager, artifactCollector, artifactMetadataSource, factory, outputAbsoluteArtifactFilename, project, reactorProjects, remoteRepos, resolver, silent, useJvmChmod
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
ResolvePluginsMojo()
           
 
Method Summary
 void execute()
          Main entry into mojo.
protected  ArtifactsFilter getMarkedArtifactFilter()
          Return an ArtifactsFilter indicating which artifacts must be filtered out.
protected  Set<Artifact> resolvePluginArtifacts()
          This method resolves the plugin artifacts from the project.
 
Methods inherited from class org.apache.maven.plugin.dependency.AbstractResolveMojo
resolveArtifactDependencies, resolveDependencyArtifacts
 
Methods inherited from class org.apache.maven.plugin.dependency.AbstractDependencyFilterMojo
filterMarkedDependencies, getClassifierTranslatedDependencies, getDependencySets, getMarkersDirectory, getResolvedDependencies, isPrependGroupId, setMarkersDirectory, setPrependGroupId
 
Methods inherited from class org.apache.maven.plugin.dependency.AbstractDependencyMojo
copyFile, getArchiverManager, getArtifactCollector, getArtifactMetadataSource, getFactory, getLocal, getLog, getProject, getRemoteRepos, getResolver, isUseJvmChmod, setArchiverManager, setArtifactCollector, setArtifactMetadataSource, setFactory, setLocal, setRemoteRepos, setResolver, 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
 

Constructor Detail

ResolvePluginsMojo

public ResolvePluginsMojo()
Method Detail

execute

public void execute()
             throws MojoExecutionException
Main entry into mojo. Gets the list of dependencies and iterates through displaying the resolved version.

Throws:
MojoExecutionException - with a message if an error occurs.

resolvePluginArtifacts

protected Set<Artifact> resolvePluginArtifacts()
                                        throws ArtifactResolutionException,
                                               ArtifactNotFoundException
This method resolves the plugin artifacts from the project.

Returns:
set of resolved plugin artifacts.
Throws:
ArtifactResolutionException
ArtifactNotFoundException

getMarkedArtifactFilter

protected 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-2012 The Apache Software Foundation. All Rights Reserved.