Package org.apache.maven.internal.impl
Class DefaultDependencyCoordinates
java.lang.Object
org.apache.maven.internal.impl.AetherDependencyWrapper
org.apache.maven.internal.impl.DefaultDependencyCoordinates
- All Implemented Interfaces:
ArtifactCoordinates
,DependencyCoordinates
public class DefaultDependencyCoordinates
extends AetherDependencyWrapper
implements DependencyCoordinates
-
Field Summary
Fields inherited from class org.apache.maven.internal.impl.AetherDependencyWrapper
dependency, session
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultDependencyCoordinates
(InternalSession session, org.eclipse.aether.graph.Dependency dependency) -
Method Summary
Modifier and TypeMethodDescriptionReturns transitive dependencies to exclude.Returns whether the dependency is optional, mandatory or of unspecified obligation.Returns the specific version, range of versions or meta-version of the artifact.private Exclusion
toExclusion
(org.eclipse.aether.graph.Exclusion exclusion) Methods inherited from class org.apache.maven.internal.impl.AetherDependencyWrapper
getArtifactId, getClassifier, getExtension, getGroupId, getScope, getType, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.apache.maven.api.ArtifactCoordinates
getArtifactId, getClassifier, getExtension, getGroupId, getId
Methods inherited from interface org.apache.maven.api.DependencyCoordinates
getScope, getType
-
Constructor Details
-
DefaultDependencyCoordinates
public DefaultDependencyCoordinates(@Nonnull InternalSession session, @Nonnull org.eclipse.aether.graph.Dependency dependency)
-
-
Method Details
-
getVersionConstraint
Description copied from interface:ArtifactCoordinates
Returns the specific version, range of versions or meta-version of the artifact. A meta-version is a version suffixed with theSNAPSHOT
keyword.- Specified by:
getVersionConstraint
in interfaceArtifactCoordinates
- Returns:
- the specific version, range of versions or meta-version of the artifact
-
getOptional
Description copied from interface:DependencyCoordinates
Returns whether the dependency is optional, mandatory or of unspecified obligation.- Specified by:
getOptional
in interfaceDependencyCoordinates
- Returns:
- the obligation, or
null
if unspecified
-
getExclusions
Description copied from interface:DependencyCoordinates
Returns transitive dependencies to exclude.- Specified by:
getExclusions
in interfaceDependencyCoordinates
- Returns:
- transitive dependencies to exclude
-
toExclusion
-