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 ExclusiontoExclusion(org.eclipse.aether.graph.Exclusion exclusion) Methods inherited from class org.apache.maven.internal.impl.AetherDependencyWrapper
getArtifactId, getClassifier, getExtension, getGroupId, getScope, getType, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.maven.api.ArtifactCoordinates
getArtifactId, getClassifier, getExtension, getGroupId, getIdMethods 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:ArtifactCoordinatesReturns the specific version, range of versions or meta-version of the artifact. A meta-version is a version suffixed with theSNAPSHOTkeyword.- Specified by:
getVersionConstraintin interfaceArtifactCoordinates- Returns:
- the specific version, range of versions or meta-version of the artifact
-
getOptional
Description copied from interface:DependencyCoordinatesReturns whether the dependency is optional, mandatory or of unspecified obligation.- Specified by:
getOptionalin interfaceDependencyCoordinates- Returns:
- the obligation, or
nullif unspecified
-
getExclusions
Description copied from interface:DependencyCoordinatesReturns transitive dependencies to exclude.- Specified by:
getExclusionsin interfaceDependencyCoordinates- Returns:
- transitive dependencies to exclude
-
toExclusion
-