Package org.eclipse.aether.resolution
Class ArtifactDescriptorResult
java.lang.Object
org.eclipse.aether.resolution.ArtifactDescriptorResult
The result from reading an artifact descriptor.
- See Also:
- 
Constructor SummaryConstructorsConstructorDescriptionCreates a new result for the specified request.
- 
Method SummaryModifier and TypeMethodDescriptionRecords the specified alias.addDependency(Dependency dependency) Adds the specified direct dependency.addException(Exception exception) Records the specified exception while reading the artifact descriptor.addManagedDependency(Dependency dependency) Adds the specified managed dependency.addRelocation(Artifact artifact) Records the specified relocation hop while locating the artifact descriptor.addRepository(RemoteRepository repository) Adds the specified remote repository.Gets the known aliases for this artifact.Gets the artifact whose descriptor was read.Gets the list of direct dependencies of the artifact.Gets the exceptions that occurred while reading the artifact descriptor.Gets the dependency management information.Gets any additional information about the artifact in form of key-value pairs.Gets the relocations that were processed to read the artifact descriptor.Gets the remote repositories listed in the artifact descriptor.Gets the repository from which the descriptor was eventually resolved.Gets the descriptor request that was made.setAliases(Collection<Artifact> aliases) Sets the aliases of the artifact.setArtifact(Artifact artifact) Sets the artifact whose descriptor was read.setDependencies(List<Dependency> dependencies) Sets the list of direct dependencies of the artifact.setExceptions(List<Exception> exceptions) Sets the exceptions that occurred while reading the artifact descriptor.setManagedDependencies(List<Dependency> dependencies) Sets the dependency management information.setProperties(Map<String, Object> properties) Sets any additional information about the artifact in form of key-value pairs.setRelocations(List<Artifact> relocations) Sets the relocations that were processed to read the artifact descriptor.setRepositories(List<RemoteRepository> repositories) Sets the remote repositories listed in the artifact descriptor.setRepository(ArtifactRepository repository) Sets the repository from which the descriptor was resolved.toString()
- 
Constructor Details- 
ArtifactDescriptorResultCreates a new result for the specified request.- Parameters:
- request- The descriptor request, must not be- null.
 
 
- 
- 
Method Details- 
getRequestGets the descriptor request that was made.- Returns:
- The descriptor request, never null.
 
- 
getExceptionsGets the exceptions that occurred while reading the artifact descriptor.- Returns:
- The exceptions that occurred, never null.
 
- 
setExceptionsSets the exceptions that occurred while reading the artifact descriptor.- Parameters:
- exceptions- The exceptions that occurred, may be- null.
- Returns:
- This result for chaining, never null.
 
- 
addExceptionRecords the specified exception while reading the artifact descriptor.- Parameters:
- exception- The exception to record, may be- null.
- Returns:
- This result for chaining, never null.
 
- 
getRelocationsGets the relocations that were processed to read the artifact descriptor. The returned list denotes the hops that lead to the final artifact coordinates as given bygetArtifact().- Returns:
- The relocations that were processed, never null.
 
- 
setRelocationsSets the relocations that were processed to read the artifact descriptor.- Parameters:
- relocations- The relocations that were processed, may be- null.
- Returns:
- This result for chaining, never null.
 
- 
addRelocationRecords the specified relocation hop while locating the artifact descriptor.- Parameters:
- artifact- The artifact that got relocated, may be- null.
- Returns:
- This result for chaining, never null.
 
- 
getAliasesGets the known aliases for this artifact. An alias denotes a different artifact with (almost) the same contents and can be used to mark a patched rebuild of some other artifact as such, thereby allowing conflict resolution to consider the patched and the original artifact as a conflict.- Returns:
- The aliases of the artifact, never null.
 
- 
setAliasesSets the aliases of the artifact.- Parameters:
- aliases- The aliases of the artifact, may be- null.
- Returns:
- This result for chaining, never null.
 
- 
addAliasRecords the specified alias.- Parameters:
- alias- The alias for the artifact, may be- null.
- Returns:
- This result for chaining, never null.
 
- 
getArtifactGets the artifact whose descriptor was read. This can be a different artifact than originally requested in case relocations were encountered.- Returns:
- The artifact after following any relocations, never null.
 
- 
setArtifactSets the artifact whose descriptor was read.- Parameters:
- artifact- The artifact whose descriptor was read, may be- null.
- Returns:
- This result for chaining, never null.
 
- 
getRepositoryGets the repository from which the descriptor was eventually resolved.- Returns:
- The repository from which the descriptor was resolved or nullif unknown.
 
- 
setRepositorySets the repository from which the descriptor was resolved.- Parameters:
- repository- The repository from which the descriptor was resolved, may be- null.
- Returns:
- This result for chaining, never null.
 
- 
getDependenciesGets the list of direct dependencies of the artifact.- Returns:
- The list of direct dependencies, never null
 
- 
setDependenciesSets the list of direct dependencies of the artifact.- Parameters:
- dependencies- The list of direct dependencies, may be- null
- Returns:
- This result for chaining, never null.
 
- 
addDependencyAdds the specified direct dependency.- Parameters:
- dependency- The direct dependency to add, may be- null.
- Returns:
- This result for chaining, never null.
 
- 
getManagedDependenciesGets the dependency management information.- Returns:
- The dependency management information.
 
- 
setManagedDependenciesSets the dependency management information.- Parameters:
- dependencies- The dependency management information, may be- null.
- Returns:
- This result for chaining, never null.
 
- 
addManagedDependencyAdds the specified managed dependency.- Parameters:
- dependency- The managed dependency to add, may be- null.
- Returns:
- This result for chaining, never null.
 
- 
getRepositoriesGets the remote repositories listed in the artifact descriptor.- Returns:
- The remote repositories listed in the artifact descriptor, never null.
 
- 
setRepositoriesSets the remote repositories listed in the artifact descriptor.- Parameters:
- repositories- The remote repositories listed in the artifact descriptor, may be- null.
- Returns:
- This result for chaining, never null.
 
- 
addRepositoryAdds the specified remote repository.- Parameters:
- repository- The remote repository to add, may be- null.
- Returns:
- This result for chaining, never null.
 
- 
getPropertiesGets any additional information about the artifact in form of key-value pairs. Note: Regardless of their actual type, all property values must be treated as being read-only.- Returns:
- The additional information about the artifact, never null.
 
- 
setPropertiesSets any additional information about the artifact in form of key-value pairs.- Parameters:
- properties- The additional information about the artifact, may be- null.
- Returns:
- This result for chaining, never null.
 
- 
toString
 
-