Interface MavenArtifact

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

public interface MavenArtifact
Base interface for a parameter that consumes Maven artifact details.
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.
    • getDependencyResolutionDepth

      @Nullable DependencyResolutionDepth getDependencyResolutionDepth()
      Get the preferences for the depth of dependency resolution.

      May be null if the default should be used.

      Returns:
      the preference for the depth of dependency resolution.
    • getExclusions

      Set<MavenExclusionBean> getExclusions()
      Get a set of dependency exclusions to apply when resolving dependencies.
      Returns:
      the exclusions, which by default is empty.