Class CollectDependenciesMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.apache.maven.plugins.dependency.AbstractDependencyMojo
org.apache.maven.plugins.dependency.fromDependencies.AbstractDependencyFilterMojo
org.apache.maven.plugins.dependency.resolvers.AbstractResolveMojo
org.apache.maven.plugins.dependency.resolvers.ResolveDependenciesMojo
org.apache.maven.plugins.dependency.resolvers.CollectDependenciesMojo
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled
,org.apache.maven.plugin.Mojo
@Mojo(name="collect",
requiresDependencyCollection=TEST,
defaultPhase=GENERATE_SOURCES,
threadSafe=true)
public class CollectDependenciesMojo
extends ResolveDependenciesMojo
Goal that collects the project dependencies from the repository. This goal requires Maven 3.0 or higher to function because it uses "requiresDependencyCollection". This means that it lists the groupId:artifactId:version information by downloading the pom files without downloading the actual artifacts such as jar files.
This is very useful when full dependency resolution might fail due to projects which haven't been built yet.
It is identical to resolve except for using the requiresDependencyCollection annotation attribute instead of requiresDependencyResolution.
- Since:
- 3.0
- Author:
- Eric Pabst, Brian Fox
-
Field Summary
Fields inherited from class org.apache.maven.plugins.dependency.resolvers.ResolveDependenciesMojo
outputScope
Fields inherited from class org.apache.maven.plugins.dependency.resolvers.AbstractResolveMojo
appendOutput, excludeReactor, outputFile
Fields inherited from class org.apache.maven.plugins.dependency.fromDependencies.AbstractDependencyFilterMojo
classifier, excludeArtifactIds, excludeClassifiers, excludeGroupIds, excludeScope, excludeTransitive, excludeTypes, includeArtifactIds, includeClassifiers, includeGroupIds, includeScope, includeTypes, markersDirectory, overWriteIfNewer, overWriteReleases, overWriteSnapshots, prependGroupId, type
Fields inherited from class org.apache.maven.plugins.dependency.AbstractDependencyMojo
reactorProjects, session
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
-
Constructor Summary
-
Method Summary
Methods inherited from class org.apache.maven.plugins.dependency.resolvers.ResolveDependenciesMojo
doExecute, getMarkedArtifactFilter, getOutput, getResults
Methods inherited from class org.apache.maven.plugins.dependency.fromDependencies.AbstractDependencyFilterMojo
filterMarkedDependencies, getDependencyResolver, getDependencySets, getDependencySets, getMarkersDirectory, getRepositoryManager, getResolvedDependencies, getResolverUtil, isPrependGroupId, setMarkersDirectory, setPrependGroupId
Methods inherited from class org.apache.maven.plugins.dependency.AbstractDependencyMojo
execute, getProject, isSilent, isSkip, newResolveArtifactProjectBuildingRequest, newResolvePluginProjectBuildingRequest, setSilent, setSkip
Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
Constructor Details
-
CollectDependenciesMojo
public CollectDependenciesMojo()
-