Class DefaultDependencyCoordinates

java.lang.Object
org.apache.maven.internal.impl.DefaultDependencyCoordinates
All Implemented Interfaces:
ArtifactCoordinates, DependencyCoordinates

public class DefaultDependencyCoordinates extends Object implements DependencyCoordinates
  • Constructor Details Link icon

    • DefaultDependencyCoordinates Link icon

      public DefaultDependencyCoordinates(@Nonnull InternalSession session, @Nonnull org.eclipse.aether.graph.Dependency dependency)
  • Method Details Link icon

    • getVersionConstraint Link icon

      public VersionConstraint getVersionConstraint()
      Description copied from interface: ArtifactCoordinates
      Returns the specific version, range of versions or meta-version of the artifact.. A meta-version is a version suffixed with the SNAPSHOT keyword.
      Specified by:
      getVersionConstraint in interface ArtifactCoordinates
      Returns:
      the specific version, range of versions or meta-version of the artifact
    • getOptional Link icon

      @Nullable public Boolean getOptional()
      Description copied from interface: DependencyCoordinates
      Returns whether the dependency is optional, mandatory or of unspecified obligation.
      Specified by:
      getOptional in interface DependencyCoordinates
      Returns:
      the obligation, or null if unspecified
    • getExclusions Link icon

      @Nonnull public Collection<Exclusion> getExclusions()
      Description copied from interface: DependencyCoordinates
      Returns transitive dependencies to exclude..
      Specified by:
      getExclusions in interface DependencyCoordinates
      Returns:
      transitive dependencies to exclude
    • getGroupId Link icon

      public String getGroupId()
      Returns the group identifier of the wrapped dependency.. The default implementation delegates to the Eclipse Aether artifact.
      Returns:
      the group identifier of the wrapped dependency
    • getArtifactId Link icon

      public String getArtifactId()
      Returns the artifact identifier of the wrapped dependency.. The default implementation delegates to the Eclipse Aether artifact.
      Returns:
      the artifact identifier of the wrapped dependency
    • getExtension Link icon

      public String getExtension()
      Returns the file extension of the wrapped dependency.. The default implementation delegates to the Eclipse Aether artifact.
      Returns:
      the file extension of the wrapped dependency
    • getType Link icon

      public Type getType()
      Returns the type of the wrapped dependency.. The default implementation infers the type from the properties associated to the Eclipse Aether artifact.
      Returns:
      the type of the wrapped dependency
    • getClassifier Link icon

      @Nonnull public String getClassifier()
      Returns the classifier ("jar", "test-jar", …) of the wrapped dependency.. The default implementation first delegates to the Eclipse Aether artifact. If the latter does not provide a non-empty classifier, then the default value is determined by type.
      Returns:
      the classifier ("jar", "test-jar", …) of the wrapped dependency
    • getScope Link icon

      @Nonnull public DependencyScope getScope()
      Returns the scope (compile, test, …) of this dependency..
      Returns:
      the scope (compile, test, …) of this dependency
    • toString Link icon

      public String toString()
      Returns a string representation of this dependency.. This is for debugging purposes only and may change in any future version.
      Overrides:
      toString in class Object
      Returns:
      a string representation of this dependency