Class GenerateKeyMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
au.net.causal.maven.plugins.jgitcrypt.GenerateKeyMojo
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo
@Mojo(name="generate-key")
public class GenerateKeyMojo
extends org.apache.maven.plugin.AbstractMojo
Generates a new randomly generated git-crypt key and saves it to file.
-
Field Summary
FieldsFields inherited from interface org.apache.maven.plugin.Mojo
ROLE -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
Field Details
-
keyFile
@Parameter(property="jgitcrypt.key.file", defaultValue="${project.build.directory}/gitcrypt.key", required=true) protected File keyFileThe key file to write. If it already exists, this file is overwritten.
-
-
Constructor Details
-
GenerateKeyMojo
public GenerateKeyMojo()
-
-
Method Details
-
execute
public void execute() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException- Throws:
org.apache.maven.plugin.MojoExecutionExceptionorg.apache.maven.plugin.MojoFailureException
-