Class AbstractResolveMojo
- 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
-
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled
,org.apache.maven.plugin.Mojo
- Direct Known Subclasses:
GoOfflineMojo
,ResolveDependenciesMojo
,ResolvePluginsMojo
public abstract class AbstractResolveMojo extends AbstractDependencyFilterMojo
-
-
Field Summary
Fields Modifier and Type Field Description protected boolean
appendOutput
Whether to append outputs into the output file or overwrite it.protected boolean
excludeReactor
Don't resolve plugins that are in the current reactor.protected boolean
ignorePermissions
not used in this goalprotected java.io.File
outputFile
If specified, this parameter will cause the dependencies to be written to the path specified, instead of writing to the console.protected boolean
useJvmChmod
not used in this goal-
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
outputAbsoluteArtifactFilename, reactorProjects, session
-
-
Constructor Summary
Constructors Constructor Description AbstractResolveMojo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.apache.maven.shared.artifact.filter.collection.FilterArtifacts
getArtifactsFilter()
protected java.util.Set<org.apache.maven.artifact.Artifact>
resolveArtifactDependencies(org.apache.maven.shared.transfer.dependencies.DependableCoordinate artifact)
This method resolves all transitive dependencies of an artifact.-
Methods inherited from class org.apache.maven.plugins.dependency.fromDependencies.AbstractDependencyFilterMojo
filterMarkedDependencies, getArtifactResolver, getClassifierTranslatedDependencies, getDependencyResolver, getDependencySets, getDependencySets, getMarkedArtifactFilter, getMarkersDirectory, getRepositoryManager, getResolvedDependencies, isPrependGroupId, resolve, setMarkersDirectory, setPrependGroupId
-
Methods inherited from class org.apache.maven.plugins.dependency.AbstractDependencyMojo
copyFile, doExecute, execute, getArchiverManager, getProject, isSilent, isSkip, isUseJvmChmod, newResolveArtifactProjectBuildingRequest, setArchiverManager, setSilent, setSkip, setUseJvmChmod, unpack, unpack, unpack
-
-
-
-
Field Detail
-
outputFile
@Parameter(property="outputFile") protected java.io.File outputFile
If specified, this parameter will cause the dependencies to be written to the path specified, instead of writing to the console.- Since:
- 2.0
-
appendOutput
@Parameter(property="appendOutput", defaultValue="false") protected boolean appendOutput
Whether to append outputs into the output file or overwrite it.- Since:
- 2.2
-
excludeReactor
@Parameter(property="excludeReactor", defaultValue="true") protected boolean excludeReactor
Don't resolve plugins that are in the current reactor.- Since:
- 2.7
-
useJvmChmod
@Parameter protected boolean useJvmChmod
not used in this goal
-
ignorePermissions
@Parameter protected boolean ignorePermissions
not used in this goal
-
-
Method Detail
-
getArtifactsFilter
protected org.apache.maven.shared.artifact.filter.collection.FilterArtifacts getArtifactsFilter()
- Returns:
FilterArtifacts
-
resolveArtifactDependencies
protected java.util.Set<org.apache.maven.artifact.Artifact> resolveArtifactDependencies(org.apache.maven.shared.transfer.dependencies.DependableCoordinate artifact) throws org.apache.maven.shared.transfer.dependencies.resolve.DependencyResolverException
This method resolves all transitive dependencies of an artifact.- Parameters:
artifact
- the artifact used to retrieve dependencies- Returns:
- resolved set of dependencies
- Throws:
org.apache.maven.shared.transfer.dependencies.resolve.DependencyResolverException
- in case of error while resolving artifacts.
-
-