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 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 Summary
Constructors Constructor Description ArtifactResolutionResult()
-
Method Summary
-
-
-
Method Detail
-
getOriginatingArtifact
public Artifact getOriginatingArtifact()
-
setOriginatingArtifact
public ArtifactResolutionResult setOriginatingArtifact(Artifact originatingArtifact)
-
addArtifact
public void addArtifact(Artifact artifact)
-
getArtifactResolutionNodes
public Set<ResolutionNode> getArtifactResolutionNodes()
-
setArtifactResolutionNodes
public void setArtifactResolutionNodes(Set<ResolutionNode> resolutionNodes)
-
hasMissingArtifacts
public boolean hasMissingArtifacts()
-
addMissingArtifact
public ArtifactResolutionResult addMissingArtifact(Artifact artifact)
-
setUnresolvedArtifacts
public ArtifactResolutionResult setUnresolvedArtifacts(List<Artifact> unresolvedArtifacts)
-
isSuccess
public boolean isSuccess()
-
hasExceptions
public boolean hasExceptions()
-
hasVersionRangeViolations
public boolean hasVersionRangeViolations()
-
addVersionRangeViolation
public ArtifactResolutionResult addVersionRangeViolation(Exception e)
TODO this needs to accept aOverConstrainedVersionException
as returned bygetVersionRangeViolation(int)
but it's not used like that in DefaultLegacyArtifactCollector
-
getVersionRangeViolation
public OverConstrainedVersionException getVersionRangeViolation(int i)
-
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)
-
-