@Mojo(name="resolve",
requiresDependencyResolution=TEST,
defaultPhase=GENERATE_SOURCES,
threadSafe=true)
public class ResolveDependenciesMojo
extends AbstractResolveMojo
| Modifier and Type | Class and Description |
|---|---|
private class |
ResolveDependenciesMojo.ModuleDescriptor |
| Modifier and Type | Field and Description |
|---|---|
(package private) boolean |
includeParents
Include parent poms in the dependency resolution list.
|
protected boolean |
outputScope
If we should display the scope when resolving
|
(package private) DependencyStatusSets |
results
Only used to store results for integration test validation
|
(package private) boolean |
sort
Sort the output list of resolved artifacts alphabetically.
|
appendOutput, excludeReactor, ignorePermissions, outputFile, useJvmChmodclassifier, excludeArtifactIds, excludeClassifiers, excludeGroupIds, excludeScope, excludeTransitive, excludeTypes, includeArtifactIds, includeClassifiers, includeGroupIds, includeScope, includeTypes, markersDirectory, overWriteIfNewer, overWriteReleases, overWriteSnapshots, prependGroupId, typeoutputAbsoluteArtifactFilename, reactorProjects, session| Constructor and Description |
|---|
ResolveDependenciesMojo() |
| Modifier and Type | Method and Description |
|---|---|
private java.lang.StringBuilder |
buildArtifactListOutput(java.util.Set<org.apache.maven.artifact.Artifact> artifacts,
boolean outputAbsoluteArtifactFilename,
boolean outputScope,
boolean sort) |
protected void |
doExecute()
Main entry into mojo.
|
protected org.apache.maven.shared.artifact.filter.collection.ArtifactsFilter |
getMarkedArtifactFilter()
Return an
ArtifactsFilter indicating which artifacts must be filtered out. |
private ResolveDependenciesMojo.ModuleDescriptor |
getModuleDescriptor(java.io.File artifactFile) |
java.lang.String |
getOutput(boolean outputAbsoluteArtifactFilename,
boolean outputScope,
boolean sort) |
DependencyStatusSets |
getResults() |
getPluginArtifactsFilter, resolveArtifactDependenciesfilterMarkedDependencies, getArtifactResolver, getClassifierTranslatedDependencies, getDependencyResolver, getDependencySets, getDependencySets, getMarkersDirectory, getRepositoryManager, getResolvedDependencies, isPrependGroupId, resolve, setMarkersDirectory, setPrependGroupIdcopyFile, execute, getArchiverManager, getProject, isSilent, isSkip, isUseJvmChmod, newResolveArtifactProjectBuildingRequest, setArchiverManager, setSilent, setSkip, setUseJvmChmod, unpack, unpack, unpack@Parameter(property="mdep.outputScope",
defaultValue="true")
protected boolean outputScope
DependencyStatusSets results
@Parameter(property="sort",
defaultValue="false")
boolean sort
@Parameter(property="includeParents",
defaultValue="false")
boolean includeParents
protected void doExecute()
throws org.apache.maven.plugin.MojoExecutionException
doExecute in class AbstractDependencyMojoorg.apache.maven.plugin.MojoExecutionException - with a message if an error occurs.public DependencyStatusSets getResults()
protected org.apache.maven.shared.artifact.filter.collection.ArtifactsFilter getMarkedArtifactFilter()
AbstractDependencyFilterMojoArtifactsFilter indicating which artifacts must be filtered out.getMarkedArtifactFilter in class AbstractDependencyFilterMojoArtifactsFilter indicating which artifacts must be filtered out.public java.lang.String getOutput(boolean outputAbsoluteArtifactFilename,
boolean outputScope,
boolean sort)
private java.lang.StringBuilder buildArtifactListOutput(java.util.Set<org.apache.maven.artifact.Artifact> artifacts,
boolean outputAbsoluteArtifactFilename,
boolean outputScope,
boolean sort)
private ResolveDependenciesMojo.ModuleDescriptor getModuleDescriptor(java.io.File artifactFile)