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 SummaryConstructors
- 
Method SummaryModifier 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- 
ArtifactResolutionResultpublic ArtifactResolutionResult()
 
- 
- 
Method Details- 
getOriginatingArtifact
- 
setOriginatingArtifact
- 
addArtifact
- 
getArtifacts
- 
setArtifacts
- 
getArtifactResolutionNodes
- 
setArtifactResolutionNodes
- 
hasMissingArtifactspublic boolean hasMissingArtifacts()
- 
getMissingArtifacts
- 
addMissingArtifact
- 
setUnresolvedArtifacts
- 
isSuccesspublic boolean isSuccess()
- 
hasExceptionspublic boolean hasExceptions()
- 
getExceptions
- 
hasVersionRangeViolationspublic boolean hasVersionRangeViolations()
- 
addVersionRangeViolationTODO this needs to accept aOverConstrainedVersionExceptionas returned bygetVersionRangeViolation(int)but it's not used like that in DefaultLegacyArtifactCollector
- 
getVersionRangeViolation
- 
getVersionRangeViolations
- 
hasMetadataResolutionExceptionspublic boolean hasMetadataResolutionExceptions()
- 
addMetadataResolutionException
- 
getMetadataResolutionException
- 
getMetadataResolutionExceptions
- 
hasErrorArtifactExceptionspublic boolean hasErrorArtifactExceptions()
- 
addErrorArtifactException
- 
getErrorArtifactExceptions
- 
hasCircularDependencyExceptionspublic boolean hasCircularDependencyExceptions()
- 
addCircularDependencyException
- 
getCircularDependencyException
- 
getCircularDependencyExceptions
- 
getRepositories
- 
setRepositories
- 
toString
 
-