Fork me on GitHub

crypto:crypto

Full name:

de.m3y.maven:crypto-maven-plugin:1.0:crypto

Description:

Supports de- and encryption of artifacts.

Attributes:

  • Requires a Maven project to be executed.

Required Parameters

Name Type Since Description
cipherOptions MavenCryptoMojo$CipherOptions - Configures the cipher. Example (see javax.security.Cipher for details):
<cipherOptions>
    <operationMode>encrypt</operationMode>
    <algorithm>AES</algorithm>
    <algorithmMode>CBC</algorithmMode>
    <algorithmPadding>PKCS5Padding</algorithmPadding>
    <secret>m3y</secret>
    <keyDigest>MD5<keyDigest/>
    <initVector>5<initVector/>
</cipherOptions>
The keyDigest is recommended, to get a 128bit key.
fileSets List - List of file sets.
Selects which files to encrypt/decrypt.
<filesets>
 <fileset>
   <directory>src/main/some_folder</directory>
  <includes>
  <include>**\/*.foo</include>
  </includes>
 </fileset>
</filesets>

outputDirectory File - Directory containing the encrypted/decrypted JAR.
Default value is: ${project.build.directory}.

Parameter Details

cipherOptions:

Configures the cipher. Example (see javax.security.Cipher for details):
<cipherOptions>
    <operationMode>encrypt</operationMode>
    <algorithm>AES</algorithm>
    <algorithmMode>CBC</algorithmMode>
    <algorithmPadding>PKCS5Padding</algorithmPadding>
    <secret>m3y</secret>
    <keyDigest>MD5<keyDigest/>
    <initVector>5<initVector/>
</cipherOptions>
The keyDigest is recommended, to get a 128bit key.
  • Type: de.m3y.maven.crypto.MavenCryptoMojo$CipherOptions
  • Required: Yes

fileSets:

List of file sets.
Selects which files to encrypt/decrypt.
<filesets>
 <fileset>
   <directory>src/main/some_folder</directory>
  <includes>
  <include>**\/*.foo</include>
  </includes>
 </fileset>
</filesets>
  • Type: java.util.List
  • Required: Yes

outputDirectory:

Directory containing the encrypted/decrypted JAR.
  • Type: java.io.File
  • Required: Yes
  • Default: ${project.build.directory}