Class ArtifactResolutionResult
java.lang.Object
org.apache.maven.artifact.resolver.ArtifactResolutionResult
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 - 
Method Summary
Modifier and TypeMethodDescriptionvoidaddArtifact(Artifact artifact) addMissingArtifact(Artifact artifact) TODO this needs to accept aOverConstrainedVersionExceptionas returned bygetVersionRangeViolation(int)but it's not used like that in DefaultLegacyArtifactCollectorgetVersionRangeViolation(int i) booleanbooleanbooleanbooleanbooleanbooleanbooleanvoidsetArtifactResolutionNodes(Set<ResolutionNode> resolutionNodes) voidsetArtifacts(Set<Artifact> artifacts) setOriginatingArtifact(Artifact originatingArtifact) setRepositories(List<ArtifactRepository> repositories) setUnresolvedArtifacts(List<Artifact> unresolvedArtifacts) toString() 
- 
Constructor Details
- 
ArtifactResolutionResult
public ArtifactResolutionResult() 
 - 
 - 
Method Details
- 
getOriginatingArtifact
 - 
setOriginatingArtifact
 - 
addArtifact
 - 
getArtifacts
 - 
setArtifacts
 - 
getArtifactResolutionNodes
 - 
setArtifactResolutionNodes
 - 
hasMissingArtifacts
public boolean hasMissingArtifacts() - 
getMissingArtifacts
 - 
addMissingArtifact
 - 
setUnresolvedArtifacts
 - 
isSuccess
public boolean isSuccess() - 
hasExceptions
public boolean hasExceptions() - 
getExceptions
 - 
hasVersionRangeViolations
public boolean hasVersionRangeViolations() - 
addVersionRangeViolation
TODO this needs to accept aOverConstrainedVersionExceptionas returned bygetVersionRangeViolation(int)but it's not used like that in DefaultLegacyArtifactCollector - 
getVersionRangeViolation
 - 
getVersionRangeViolations
 - 
hasMetadataResolutionExceptions
public boolean hasMetadataResolutionExceptions() - 
addMetadataResolutionException
 - 
getMetadataResolutionException
 - 
getMetadataResolutionExceptions
 - 
hasErrorArtifactExceptions
public boolean hasErrorArtifactExceptions() - 
addErrorArtifactException
 - 
getErrorArtifactExceptions
 - 
hasCircularDependencyExceptions
public boolean hasCircularDependencyExceptions() - 
addCircularDependencyException
 - 
getCircularDependencyException
 - 
getCircularDependencyExceptions
 - 
getRepositories
 - 
setRepositories
 - 
toString
 
 -