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",
aggregator=true,
requiresProject=false)
public class GenerateKeyMojo
extends org.apache.maven.plugin.AbstractMojo
Generates a new randomly generated git-crypt key and saves it to file.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected FileThe key file to write.protected org.apache.maven.project.MavenProjectFields 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
The key file to write. If it already exists, this file is overwritten. If running with a project, the default is ${project.build.directory}/gitcrypt.key. -
project
@Parameter(defaultValue="${project}", readonly=true) protected org.apache.maven.project.MavenProject project
-
-
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
-