Package aQute.maven.provider
Class SnapshotReleaser
java.lang.Object
aQute.maven.provider.SnapshotReleaser
- All Implemented Interfaces:
Release,Closeable,AutoCloseable
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionSnapshotReleaser(MavenRepository home, Revision revision, MavenBackingRepository snapshot, Properties context) -
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 archiveprotected voidcheck()voidclose()voidforce()Force an overwrite even if the artifact existsprotected booleanNexus does not like us to update the program metadata but we should do this for file reposprotected MetadataParser.RevisionMetadataprotected ArchivevoidSet 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.voidvoid
-
Field Details
-
localOnly
protected boolean localOnly -
repo
-
-
Constructor Details
-
SnapshotReleaser
public SnapshotReleaser(MavenRepository home, Revision revision, MavenBackingRepository snapshot, Properties context) throws Exception - Throws:
Exception
-
-
Method Details
-
check
protected void check() -
setBuild
Description copied from interface:ReleaseSet the replacement for the SNAPSHOT part -
updateMetadata
- Throws:
Exception
-
resolve
- Throws:
Exception
-
isUpdateProgramMetadata
protected boolean isUpdateProgramMetadata()Nexus does not like us to update the program metadata but we should do this for file repos- Returns:
-
sign
- Throws:
Exception
-
setPassphrase
Description copied from interface:ReleaseSet a pass phrase and indicate that the files must be signed.- Specified by:
setPassphrasein interfaceRelease- Parameters:
passphrase- the passphrase
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
localMetadata
-
add
Description copied from interface:ReleaseAdd an archive -
add
Description copied from interface:ReleaseAdd an archive, a copy of the file is made -
abort
public void abort()Description copied from interface:ReleaseSet this release to abort -
force
public void force()Description copied from interface:ReleaseForce an overwrite even if the artifact exists -
add
Description copied from interface:ReleaseAdd an archive -
setBuild
Description copied from interface:ReleaseSet the replacement for the SNAPSHOT part -
setLocalOnly
public void setLocalOnly()Description copied from interface:ReleaseEnsure that no remote update is done- Specified by:
setLocalOnlyin interfaceRelease
-