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.
Author:
Robert Scholte
  • Method Details

    • getGroupId

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

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

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

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

      String getClassifier()
      Returns:
      the classifier or null