org.apache.maven.plugin.dependency.resolvers
Class GoOfflineMojo
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.GoOfflineMojo
- All Implemented Interfaces:
- org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
public class GoOfflineMojo
- extends AbstractResolveMojo
Goal that resolves all project dependencies, including plugins and reports
and their dependencies.
- Since:
- 2.0
- Version:
- $Id: GoOfflineMojo.java 1085777 2011-03-26 18:13:19Z hboutemy $
- Author:
- Brian Fox
- Is defined to be executed in:
- goal:
- resolve-plugins
- Is defined by the goal name:
- go-offline
- Requires the dependencies in this specified scope:
- test
Fields inherited from class org.apache.maven.plugin.dependency.AbstractDependencyFilterMojo |
classifier, excludeArtifactIds, excludeClassifiers, excludeGroupIds, excludeScope, excludeTransitive, 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()
|
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 |
GoOfflineMojo
public GoOfflineMojo()
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.
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.