Class Coordinates
java.lang.Object
org.apache.maven.plugins.dependency.exclusion.Coordinates
- All Implemented Interfaces:
Comparable<Coordinates>
Simple "record" to hold the coordinates of the dependency which is excluded.
When dealing with exclusions the version is not important. Only groupId and artifactId is used.
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
Coordinates
(String groupId, String artifactId, org.apache.maven.model.Dependency dependency, org.apache.maven.model.InputLocation location) -
Method Summary
Modifier and TypeMethodDescriptionint
compareTo
(Coordinates that) static Coordinates
coordinates
(String groupId, String artifactId) static Coordinates
coordinates
(org.apache.maven.model.Dependency dependency) static Coordinates
coordinates
(org.apache.maven.model.Exclusion exclusion) private static Path
createPathProxy
(String value) In order to reuse the glob matcher from the filesystem, we need to create Path instances.boolean
org.apache.maven.model.Dependency
(package private) Predicate
<Coordinates> int
hashCode()
toString()
-
Field Details
-
groupId
-
artifactId
-
dependency
private final org.apache.maven.model.Dependency dependency -
location
private final org.apache.maven.model.InputLocation location
-
-
Constructor Details
-
Coordinates
-
-
Method Details
-
coordinates
-
coordinates
-
coordinates
-
getGroupId
-
getArtifactId
-
getDependency
public org.apache.maven.model.Dependency getDependency() -
getExclusionPattern
Predicate<Coordinates> getExclusionPattern() -
createPathProxy
In order to reuse the glob matcher from the filesystem, we need to create Path instances. Those are only used with the toString method. This hack works because the only system-dependent thing is the path separator which should not be part of the groupId or artifactId. -
equals
-
hashCode
public int hashCode() -
compareTo
- Specified by:
compareTo
in interfaceComparable<Coordinates>
-
toString
-