Package aQute.maven.api
Interface Release
- All Superinterfaces:
AutoCloseable,Closeable
- All Known Implementing Classes:
SnapshotReleaser
This object can be used to release a revision. The actual work will be done
when this object is closed. This makes it convenient to do this in a
try/resource block.
-
Method Summary
Modifier and TypeMethodDescriptionvoidabort()Set this release to abortvoidAdd an archive, a copy of the file is madevoidadd(Archive archive, InputStream in) Add an archivevoidadd(String extension, String classifier, InputStream in) Add an archivevoidforce()Force an overwrite even if the artifact existsvoidSet the replacement for the SNAPSHOT partvoidSet the replacement for the SNAPSHOT partvoidEnsure that no remote update is donevoidsetPassphrase(String passphrase) Set a pass phrase and indicate that the files must be signed.
-
Method Details
-
abort
void abort()Set this release to abort -
add
Add an archive- Throws:
Exception
-
add
Add an archive, a copy of the file is made- Throws:
Exception
-
add
Add an archive- Throws:
Exception
-
setBuild
Set the replacement for the SNAPSHOT part- Throws:
Exception
-
setBuild
Set the replacement for the SNAPSHOT part -
setLocalOnly
void setLocalOnly()Ensure that no remote update is done -
force
void force()Force an overwrite even if the artifact exists -
setPassphrase
Set a pass phrase and indicate that the files must be signed.- Parameters:
passphrase- the passphrase
-