Interface ArtifactCoordinates

All Known Subinterfaces:
DependencyCoordinates

@Experimental @Immutable public interface ArtifactCoordinates
Partial identification of an Artifact in a Maven repository. Each ArtifactCoordinates instance is basically a pointer to a file in the Maven repository, except that the exact version may not be known yet.
Since:
4.0.0
  • Method Details

    • groupId

      @Nonnull default String groupId()
      Returns the groupId.
      Returns:
      the groupId
      Since:
      4.0.0
    • getGroupId

      @Nonnull @Deprecated(since="4.0.0", forRemoval=true) String getGroupId()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Use groupId() instead.
      Returns the group identifier of the artifact.
      Returns:
      the group identifier of the artifact
    • artifactId

      @Nonnull default String artifactId()
      Returns the artifactId.
      Returns:
      the artifactId
      Since:
      4.0.0
    • getArtifactId

      @Nonnull @Deprecated(since="4.0.0", forRemoval=true) String getArtifactId()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Use artifactId() instead.
      Returns the identifier of the artifact.
      Returns:
      the identifier of the artifact
    • classifier

      @Nonnull default String classifier()
      Returns the classifier.
      Returns:
      the classifier
      Since:
      4.0.0
    • getClassifier

      @Nonnull @Deprecated(since="4.0.0", forRemoval=true) String getClassifier()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Use classifier() instead.
      Returns the classifier of the artifact.
      Returns:
      the classifier or an empty string if none, never null
    • versionConstraint

      @Nonnull default VersionConstraint versionConstraint()
      Returns the versionConstraint.
      Returns:
      the versionConstraint
      Since:
      4.0.0
    • getVersionConstraint

      @Nonnull @Deprecated(since="4.0.0", forRemoval=true) VersionConstraint getVersionConstraint()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Use versionConstraint() instead.
      Returns the specific version, range of versions or meta-version of the artifact. A meta-version is a version suffixed with the SNAPSHOT keyword.
      Returns:
      the specific version, range of versions or meta-version of the artifact
    • extension

      @Nonnull default String extension()
      Returns the extension.
      Returns:
      the extension
      Since:
      4.0.0
    • getExtension

      @Nonnull @Deprecated(since="4.0.0", forRemoval=true) String getExtension()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Use extension() instead.
      Returns the file extension of the artifact. The dot separator is not included in the returned string.
      Returns:
      the file extension or an empty string if none, never null
    • getId

      @Nonnull default String getId()
      Returns a unique string representation identifying this artifact. The default implementation returns a colon-separated list of group identifier, artifact identifier, extension, classifier and version.
      Returns:
      a unique string representation identifying this artifact
      See Also: