Package org.basepom.mojo.dvc
Class QualifiedName
java.lang.Object
org.basepom.mojo.dvc.QualifiedName
- All Implemented Interfaces:
Comparable<QualifiedName>
A qualified name for a dependency or artifact. This is everything but a version.
-
Method Summary
Modifier and TypeMethodDescriptionint
compareTo
(QualifiedName other) boolean
static QualifiedName
fromArtifact
(org.apache.maven.artifact.Artifact artifact) static QualifiedName
fromDependency
(org.eclipse.aether.graph.Dependency dependency) static QualifiedName
fromDependencyNode
(org.eclipse.aether.graph.DependencyNode dependencyNode) static QualifiedName
fromProject
(org.apache.maven.project.MavenProject project) getType()
int
hashCode()
boolean
hasTests()
int
length()
toString()
-
Method Details
-
fromDependencyNode
public static QualifiedName fromDependencyNode(org.eclipse.aether.graph.DependencyNode dependencyNode) -
fromDependency
-
fromArtifact
-
fromProject
-
getGroupId
-
getArtifactId
-
getType
-
getClassifier
-
hasTests
- Returns:
- True if this qualified name refers to a test artifact.
-
getFullName
- Returns:
- The full name (group, artifact, type, classifier). Normalizes any test jar to be group:artifact:jar:tests.
-
getShortName
- Returns:
- The short name (group, artifact, optional classifier). Skips absent classifiers. Normalizes test jars to `tests` classifier.
-
length
-
getMinimalName
-
equals
-
hashCode
-
toString
-
compareTo
- Specified by:
compareTo
in interfaceComparable<QualifiedName>
-