java.lang.Object
org.basepom.mojo.duplicatefinder.artifact.MavenCoordinates

public class MavenCoordinates extends Object
  • Constructor Details

    • MavenCoordinates

      public MavenCoordinates(org.apache.maven.model.Dependency dependency) throws org.apache.maven.artifact.versioning.InvalidVersionSpecificationException
      Throws:
      org.apache.maven.artifact.versioning.InvalidVersionSpecificationException
    • MavenCoordinates

      public MavenCoordinates(org.apache.maven.artifact.Artifact artifact) throws org.apache.maven.artifact.versioning.OverConstrainedVersionException
      Throws:
      org.apache.maven.artifact.versioning.OverConstrainedVersionException
  • Method Details

    • getArtifactId

      public String getArtifactId()
    • getGroupId

      public String getGroupId()
    • getVersion

      public Optional<? extends org.apache.maven.artifact.versioning.ArtifactVersion> getVersion()
    • getVersionRange

      public Optional<org.apache.maven.artifact.versioning.VersionRange> getVersionRange()
    • getType

      public String getType()
    • getClassifier

      public Optional<String> getClassifier()
    • matches

      public boolean matches(org.apache.maven.artifact.Artifact artifact) throws org.apache.maven.artifact.versioning.OverConstrainedVersionException
      Throws:
      org.apache.maven.artifact.versioning.OverConstrainedVersionException
    • matches

      public boolean matches(MavenCoordinates other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object other)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object