Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,18 @@
public abstract class AbstractScmReleaseMojo
extends AbstractReleaseMojo
{
/**
* The SCM private key to use.
*/
@Parameter( property = "privateKey" )
private String privateKey;

/**
* The SCM Private Key Pass Phrase to use.
*/
@Parameter( property = "passphrase" )
private String passphrase;

/**
* The SCM username to use.
*/
Expand Down Expand Up @@ -149,6 +161,10 @@ protected ReleaseDescriptorBuilder createReleaseDescriptor()
{
ReleaseDescriptorBuilder descriptor = super.createReleaseDescriptor();

//SSH support
descriptor.setScmPrivateKey(privateKey);
descriptor.setScmPrivateKeyPassPhrase(passphrase);

descriptor.setScmPassword( password );
descriptor.setScmReleaseLabel( tag );
descriptor.setScmTagNameFormat( tagNameFormat );
Expand Down