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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addArtifact
(Artifact artifact) addMissingArtifact
(Artifact artifact) TODO this needs to accept aOverConstrainedVersionException
as returned bygetVersionRangeViolation(int)
but it's not used like that in DefaultLegacyArtifactCollectorgetVersionRangeViolation
(int i) boolean
boolean
boolean
boolean
boolean
boolean
boolean
void
setArtifactResolutionNodes
(Set<ResolutionNode> resolutionNodes) void
setArtifacts
(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 aOverConstrainedVersionException
as returned bygetVersionRangeViolation(int)
but it's not used like that in DefaultLegacyArtifactCollector- Parameters:
e
- an exception- Returns:
this
-
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
-