Package org.apache.maven.internal.impl
Class DefaultDependencyCoordinates
java.lang.Object
org.apache.maven.internal.impl.DefaultDependencyCoordinates
- All Implemented Interfaces:
- ArtifactCoordinates,- DependencyCoordinates
- 
Constructor SummaryConstructorsConstructorDescriptionDefaultDependencyCoordinates(InternalSession session, org.eclipse.aether.graph.Dependency dependency) 
- 
Method SummaryModifier and TypeMethodDescriptionReturns the artifact identifier of the wrapped dependency.Returns the classifier ("jar", "test-jar", …) of the wrapped dependency.Returns transitive dependencies to exclude.Returns the file extension of the wrapped dependency.Returns the group identifier of the wrapped dependency.Returns whether the dependency is optional, mandatory or of unspecified obligation.getScope()Returns the scope (compile, test, …) of this dependency.getType()Returns the type of the wrapped dependency.Returns the specific version, range of versions or meta-version of the artifact.toString()Returns a string representation of this dependency.Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.maven.api.ArtifactCoordinatesgetArtifactId, getClassifier, getExtension, getGroupId, getIdMethods inherited from interface org.apache.maven.api.DependencyCoordinatesgetScope, getType
- 
Constructor Details- 
DefaultDependencyCoordinatespublic DefaultDependencyCoordinates(@Nonnull InternalSession session, @Nonnull org.eclipse.aether.graph.Dependency dependency) 
 
- 
- 
Method Details- 
getVersionConstraintDescription 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 interface- ArtifactCoordinates
- Returns:
- the specific version, range of versions or meta-version of the artifact
 
- 
getOptionalDescription copied from interface:DependencyCoordinatesReturns whether the dependency is optional, mandatory or of unspecified obligation.- Specified by:
- getOptionalin interface- DependencyCoordinates
- Returns:
- the obligation, or nullif unspecified
 
- 
getExclusionsDescription copied from interface:DependencyCoordinatesReturns transitive dependencies to exclude.- Specified by:
- getExclusionsin interface- DependencyCoordinates
- Returns:
- transitive dependencies to exclude
 
- 
getGroupIdReturns the group identifier of the wrapped dependency. The default implementation delegates to the Eclipse Aether artifact.- Returns:
- the group identifier of the wrapped dependency
 
- 
getArtifactIdReturns the artifact identifier of the wrapped dependency. The default implementation delegates to the Eclipse Aether artifact.- Returns:
- the artifact identifier of the wrapped dependency
 
- 
getExtensionReturns the file extension of the wrapped dependency. The default implementation delegates to the Eclipse Aether artifact.- Returns:
- the file extension of the wrapped dependency
 
- 
getTypeReturns the type of the wrapped dependency. The default implementation infers the type from the properties associated to the Eclipse Aether artifact.- Returns:
- the type of the wrapped dependency
 
- 
getClassifierReturns the classifier ("jar", "test-jar", …) of the wrapped dependency. The default implementation first delegates to the Eclipse Aether artifact. If the latter does not provide a non-empty classifier, then the default value is determined by type.- Returns:
- the classifier ("jar", "test-jar", …) of the wrapped dependency
 
- 
getScopeReturns the scope (compile, test, …) of this dependency.- Returns:
- the scope (compile, test, …) of this dependency
 
- 
toStringReturns a string representation of this dependency. This is for debugging purposes only and may change in any future version.
 
-