org.apache.maven.artifact.resolver
Class ArtifactResolutionResult
java.lang.Object
org.apache.maven.artifact.resolver.ArtifactResolutionResult
public class ArtifactResolutionResult
- extends Object
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
- Author:
- Jason van Zyl
ArtifactResolutionResult
public ArtifactResolutionResult()
getOriginatingArtifact
public Artifact getOriginatingArtifact()
setOriginatingArtifact
public ArtifactResolutionResult setOriginatingArtifact(Artifact originatingArtifact)
addArtifact
public void addArtifact(Artifact artifact)
getArtifacts
public Set<Artifact> getArtifacts()
setArtifacts
public void setArtifacts(Set<Artifact> artifacts)
getArtifactResolutionNodes
public Set<ResolutionNode> getArtifactResolutionNodes()
setArtifactResolutionNodes
public void setArtifactResolutionNodes(Set<ResolutionNode> resolutionNodes)
hasMissingArtifacts
public boolean hasMissingArtifacts()
getMissingArtifacts
public List<Artifact> getMissingArtifacts()
addMissingArtifact
public ArtifactResolutionResult addMissingArtifact(Artifact artifact)
setUnresolvedArtifacts
public ArtifactResolutionResult setUnresolvedArtifacts(List<Artifact> unresolvedArtifacts)
isSuccess
public boolean isSuccess()
hasExceptions
public boolean hasExceptions()
getExceptions
public List<Exception> getExceptions()
hasVersionRangeViolations
public boolean hasVersionRangeViolations()
addVersionRangeViolation
public ArtifactResolutionResult addVersionRangeViolation(Exception e)
getVersionRangeViolation
public OverConstrainedVersionException getVersionRangeViolation(int i)
getVersionRangeViolations
public List<Exception> getVersionRangeViolations()
hasMetadataResolutionExceptions
public boolean hasMetadataResolutionExceptions()
addMetadataResolutionException
public ArtifactResolutionResult addMetadataResolutionException(ArtifactResolutionException e)
getMetadataResolutionException
public ArtifactResolutionException getMetadataResolutionException(int i)
getMetadataResolutionExceptions
public List<ArtifactResolutionException> getMetadataResolutionExceptions()
hasErrorArtifactExceptions
public boolean hasErrorArtifactExceptions()
addErrorArtifactException
public ArtifactResolutionResult addErrorArtifactException(ArtifactResolutionException e)
getErrorArtifactExceptions
public List<ArtifactResolutionException> getErrorArtifactExceptions()
hasCircularDependencyExceptions
public boolean hasCircularDependencyExceptions()
addCircularDependencyException
public ArtifactResolutionResult addCircularDependencyException(CyclicDependencyException e)
getCircularDependencyException
public CyclicDependencyException getCircularDependencyException(int i)
getCircularDependencyExceptions
public List<CyclicDependencyException> getCircularDependencyExceptions()
getRepositories
public List<ArtifactRepository> getRepositories()
setRepositories
public ArtifactResolutionResult setRepositories(List<ArtifactRepository> repositories)
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2001–2013 The Apache Software Foundation. All rights reserved.