Package org.eclipse.aether.deployment
Class DeployResult
java.lang.Object
org.eclipse.aether.deployment.DeployResult
The result of deploying artifacts and their accompanying metadata into the a remote repository.
- See Also:
-
Constructor Summary
ConstructorDescriptionDeployResult
(DeployRequest request) Creates a new result for the specified request. -
Method Summary
Modifier and TypeMethodDescriptionaddArtifact
(Artifact artifact) Adds the specified artifacts to the result.addMetadata
(Metadata metadata) Adds the specified metadata to this result.Gets the artifacts that got deployed.Gets the metadata that got deployed.Gets the deploy request that was made.setArtifacts
(Collection<Artifact> artifacts) Sets the artifacts that got deployed.setMetadata
(Collection<Metadata> metadata) Sets the metadata that got deployed.toString()
-
Constructor Details
-
DeployResult
Creates a new result for the specified request.- Parameters:
request
- The deployment request, must not benull
.
-
-
Method Details
-
getRequest
Gets the deploy request that was made.- Returns:
- The deploy request, never
null
.
-
getArtifacts
Gets the artifacts that got deployed.- Returns:
- The deployed artifacts, never
null
.
-
setArtifacts
Sets the artifacts that got deployed.- Parameters:
artifacts
- The deployed artifacts, may benull
.- Returns:
- This result for chaining, never
null
.
-
addArtifact
Adds the specified artifacts to the result.- Parameters:
artifact
- The deployed artifact to add, may benull
.- Returns:
- This result for chaining, never
null
.
-
getMetadata
Gets the metadata that got deployed. Note that due to automatically generated metadata, there might have been more metadata deployed than originally specified in the deploy request.- Returns:
- The deployed metadata, never
null
.
-
setMetadata
Sets the metadata that got deployed.- Parameters:
metadata
- The deployed metadata, may benull
.- Returns:
- This result for chaining, never
null
.
-
addMetadata
Adds the specified metadata to this result.- Parameters:
metadata
- The deployed metadata to add, may benull
.- Returns:
- This result for chaining, never
null
.
-
toString
-