Interface MavenArtifact

All Known Subinterfaces:
MavenDependency, MavenProtocPlugin
All Known Implementing Classes:
ImmutableMavenDependency, ImmutableMavenProtocPlugin, MavenDependencyBean, MavenProtocPluginBean

public interface MavenArtifact
Base interface for a parameter that references a deployed Maven artifact somewhere.

Implementation interfaces should extend this type rather than using it directly.

Since:
1.2.0
Author:
Ashley Scopes
  • Method Details

    • getGroupId

      String getGroupId()
      Get the group ID.
      Returns:
      the group ID.
    • getArtifactId

      String getArtifactId()
      Get the artifact ID.
      Returns:
      the artifact ID.
    • getVersion

      @Nullable String getVersion()
      Get the artifact version.

      May be null if we expect to discover the version from dependency management.

      Returns:
      the version.
    • getType

      @Nullable String getType()
      Get the artifact type.

      May be null if the default should be used.

      Returns:
      the artifact type.
    • getClassifier

      @Nullable String getClassifier()
      Get the artifact classifier.

      May be null if no classifier is set.

      Returns:
      the artifact classifier.