@Mojo(name="generateKeyPair", requiresProject=true) public class GenerateKeyPairMojo extends AbstractKeyToolRequestWithKeyStoreAndAliasParametersMojo<KeyToolGenerateKeyPairRequest>
keytool -genkey
(jdk 1.5) keytool -genkeypair
(jdk 1.6)
command.
See keystore documentation.Constructor and Description |
---|
GenerateKeyPairMojo()
Default contructor.
|
Modifier and Type | Method and Description |
---|---|
protected KeyToolGenerateKeyPairRequest |
createKeytoolRequest()
To prepare the incoming request, says fill it with mojo parameters.
|
void |
execute() |
protected String |
getCommandlineInfo(org.apache.maven.shared.utils.cli.Commandline commandLine)
Gets a string representation of a
Commandline . |
createParentDirIfNecessary, getFile, getKeystoreFile
consumeResult
getMessage, getMessage, getMessage, isSkip, isVerbose, setSkip, setVerbose
public void execute() throws org.apache.maven.plugin.MojoExecutionException
AbstractKeyToolRequestMojo
execute
in interface org.apache.maven.plugin.Mojo
execute
in class AbstractKeyToolRequestMojo<KeyToolGenerateKeyPairRequest>
org.apache.maven.plugin.MojoExecutionException
protected KeyToolGenerateKeyPairRequest createKeytoolRequest()
createKeytoolRequest
in class AbstractKeyToolRequestWithKeyStoreAndAliasParametersMojo<KeyToolGenerateKeyPairRequest>
KeyToolRequest
protected String getCommandlineInfo(org.apache.maven.shared.utils.cli.Commandline commandLine)
Commandline
.
This method creates the string representation by calling commandLine.toString()
by default.
getCommandlineInfo
in class AbstractKeyToolRequestWithKeyStoreParametersMojo<KeyToolGenerateKeyPairRequest>
commandLine
- The Commandline
to get a string representation of (can not be null).commandLine
.Copyright © 2005–2016 MojoHaus. All rights reserved.