Interface DependableCoordinate

  • All Known Implementing Classes:
    DefaultDependableCoordinate

    public interface DependableCoordinate

    Represents any instance which may contain Maven Dependencies, both explicit or implicit to (transitively) resolve and calculate its path for either a local or remote Maven repository.

    The version can be a version range. Based on the groupId and artifactId it will be resolved to the actual version.

    The type will be translated to an extension based on the artifact descriptor (pom.xml matching the groupId, artifactId and version.

    A MavenProject is not considered a DependableCoordinate because it should never have a versionRange, and it has packaging instead of type.
    • Method Detail

      • getGroupId

        java.lang.String getGroupId()
        Returns:
        the groupId of the coordinate
      • getArtifactId

        java.lang.String getArtifactId()
        Returns:
        the artifact of the coordinate
      • getVersion

        java.lang.String getVersion()
        A version or versionRange
        Returns:
        the version
      • getType

        java.lang.String getType()
        Returns:
        the type of the coordinate
      • getClassifier

        java.lang.String getClassifier()
        Returns:
        the classifier or null