Package org.apache.maven.api
Interface Dependency
- All Superinterfaces:
Artifact
- All Known Implementing Classes:
DefaultDependency
- Since:
- 4.0.0
-
Method Summary
Methods inherited from interface org.apache.maven.api.Artifact
getArtifactId, getBaseVersion, getClassifier, getExtension, getGroupId, getVersion, isSnapshot, key
-
Method Details
-
getType
The dependency type.- Returns:
- the dependency type, never
null
-
getScope
-
isOptional
boolean isOptional() -
toCoordinate
Creates aDependencyCoordinate
based on thisDependency
.- Specified by:
toCoordinate
in interfaceArtifact
- Returns:
- a
DependencyCoordinate
- See Also:
-