Class ArtifactResolutionResult

java.lang.Object
org.apache.maven.artifact.resolver.ArtifactResolutionResult

@Deprecated public class ArtifactResolutionResult extends Object
Deprecated.
Specific problems during resolution that we want to account for:
  • missing metadata
  • version range violations
  • version circular dependencies
  • missing artifacts
  • network/transfer errors
  • file system errors: permissions
TODO carlos: all these possible has*Exceptions and get*Exceptions methods make the clients too complex requiring a long list of checks, need to create a parent/interface/encapsulation for the types of exceptions
  • Constructor Details

    • ArtifactResolutionResult

      public ArtifactResolutionResult()
      Deprecated.
  • Method Details

    • getOriginatingArtifact

      public org.apache.maven.artifact.Artifact getOriginatingArtifact()
      Deprecated.
    • setOriginatingArtifact

      public ArtifactResolutionResult setOriginatingArtifact(org.apache.maven.artifact.Artifact originatingArtifact)
      Deprecated.
    • addArtifact

      public void addArtifact(org.apache.maven.artifact.Artifact artifact)
      Deprecated.
    • getArtifacts

      public Set<org.apache.maven.artifact.Artifact> getArtifacts()
      Deprecated.
    • setArtifacts

      public void setArtifacts(Set<org.apache.maven.artifact.Artifact> artifacts)
      Deprecated.
    • getArtifactResolutionNodes

      public Set<ResolutionNode> getArtifactResolutionNodes()
      Deprecated.
    • setArtifactResolutionNodes

      public void setArtifactResolutionNodes(Set<ResolutionNode> resolutionNodes)
      Deprecated.
    • hasMissingArtifacts

      public boolean hasMissingArtifacts()
      Deprecated.
    • getMissingArtifacts

      public List<org.apache.maven.artifact.Artifact> getMissingArtifacts()
      Deprecated.
    • addMissingArtifact

      public ArtifactResolutionResult addMissingArtifact(org.apache.maven.artifact.Artifact artifact)
      Deprecated.
    • setUnresolvedArtifacts

      public ArtifactResolutionResult setUnresolvedArtifacts(List<org.apache.maven.artifact.Artifact> unresolvedArtifacts)
      Deprecated.
    • isSuccess

      public boolean isSuccess()
      Deprecated.
    • hasExceptions

      public boolean hasExceptions()
      Deprecated.
    • getExceptions

      public List<Exception> getExceptions()
      Deprecated.
    • hasVersionRangeViolations

      public boolean hasVersionRangeViolations()
      Deprecated.
    • addVersionRangeViolation

      public ArtifactResolutionResult addVersionRangeViolation(Exception e)
      Deprecated.
      TODO this needs to accept a OverConstrainedVersionException as returned by getVersionRangeViolation(int) but it's not used like that in DefaultLegacyArtifactCollector
      Parameters:
      e - an exception
      Returns:
      this
    • getVersionRangeViolation

      public org.apache.maven.artifact.versioning.OverConstrainedVersionException getVersionRangeViolation(int i)
      Deprecated.
    • getVersionRangeViolations

      public List<Exception> getVersionRangeViolations()
      Deprecated.
    • hasMetadataResolutionExceptions

      public boolean hasMetadataResolutionExceptions()
      Deprecated.
    • addMetadataResolutionException

      public ArtifactResolutionResult addMetadataResolutionException(org.apache.maven.artifact.resolver.ArtifactResolutionException e)
      Deprecated.
    • getMetadataResolutionException

      public org.apache.maven.artifact.resolver.ArtifactResolutionException getMetadataResolutionException(int i)
      Deprecated.
    • getMetadataResolutionExceptions

      public List<org.apache.maven.artifact.resolver.ArtifactResolutionException> getMetadataResolutionExceptions()
      Deprecated.
    • hasErrorArtifactExceptions

      public boolean hasErrorArtifactExceptions()
      Deprecated.
    • addErrorArtifactException

      public ArtifactResolutionResult addErrorArtifactException(org.apache.maven.artifact.resolver.ArtifactResolutionException e)
      Deprecated.
    • getErrorArtifactExceptions

      public List<org.apache.maven.artifact.resolver.ArtifactResolutionException> getErrorArtifactExceptions()
      Deprecated.
    • hasCircularDependencyExceptions

      public boolean hasCircularDependencyExceptions()
      Deprecated.
    • addCircularDependencyException

      public ArtifactResolutionResult addCircularDependencyException(org.apache.maven.artifact.resolver.CyclicDependencyException e)
      Deprecated.
    • getCircularDependencyException

      public org.apache.maven.artifact.resolver.CyclicDependencyException getCircularDependencyException(int i)
      Deprecated.
    • getCircularDependencyExceptions

      public List<org.apache.maven.artifact.resolver.CyclicDependencyException> getCircularDependencyExceptions()
      Deprecated.
    • getRepositories

      public List<org.apache.maven.artifact.repository.ArtifactRepository> getRepositories()
      Deprecated.
    • setRepositories

      public ArtifactResolutionResult setRepositories(List<org.apache.maven.artifact.repository.ArtifactRepository> repositories)
      Deprecated.
    • toString

      public String toString()
      Deprecated.
      Overrides:
      toString in class Object