Class GenerateKeyToClipboardMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
au.net.causal.maven.plugins.jgitcrypt.GenerateKeyToClipboardMojo
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo
@Mojo(name="generate-key-to-clipboard",
aggregator=true,
requiresProject=false)
public class GenerateKeyToClipboardMojo
extends org.apache.maven.plugin.AbstractMojo
Generates a new randomly generated git-crypt key and saves it to the clipboard as a base64 encoded string.
This can be used to avoid saving sensitive keys to the file system. The data from the clipboard can then be
pasted/saved to a password manager or passed to an encryptor (such as mvn -ep) and the result saved in Maven settings.
-
Field Summary
Fields 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
-
Constructor Details
-
GenerateKeyToClipboardMojo
public GenerateKeyToClipboardMojo()
-
-
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
-