Class 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 uses "requiresDependencyCollection" to list 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
  • Constructor Details

    • CollectDependenciesMojo

      @Inject protected CollectDependenciesMojo(org.apache.maven.execution.MavenSession session, org.sonatype.plexus.build.incremental.BuildContext buildContext, org.apache.maven.project.MavenProject project, ResolverUtil resolverUtil, org.apache.maven.project.ProjectBuilder projectBuilder, org.apache.maven.artifact.handler.manager.ArtifactHandlerManager artifactHandlerManager)