Bouncy Castle Maven Plugin

A plugin that supports signing artifacts using Bouncy Castle.

License

License

Categories

Categories

Maven Build Tools
GroupId

GroupId

com.deciphernow
ArtifactId

ArtifactId

bouncycastle-maven-plugin
Last Version

Last Version

1.1.1
Release Date

Release Date

Type

Type

maven-plugin
Description

Description

Bouncy Castle Maven Plugin
A plugin that supports signing artifacts using Bouncy Castle.
Project URL

Project URL

https://github.com/deciphernow/bouncycastle-maven-plugin
Source Code Management

Source Code Management

https://github.com/deciphernow/bouncycastle-maven-plugin

Download bouncycastle-maven-plugin

How to add to project

<plugin>
    <groupId>com.deciphernow</groupId>
    <artifactId>bouncycastle-maven-plugin</artifactId>
    <version>1.1.1</version>
</plugin>

Dependencies

compile (4)

Group / Artifact Type Version
org.apache.maven : maven-plugin-api jar 3.3.9
org.bouncycastle : bcpg-jdk15on jar 1.56
org.bouncycastle : bcprov-jdk15on jar 1.56
org.sonatype.plexus : plexus-sec-dispatcher jar 1.4

provided (1)

Group / Artifact Type Version
org.apache.maven.plugin-tools : maven-plugin-tools-annotations jar 3.5

test (1)

Group / Artifact Type Version
junit : junit jar 4.12

Project Modules

There are no modules declared in this project.

bouncycastle-maven-plugin

This project provides a Maven plugin for generating PGP signature files for project artifacts using BouncyCastle.

Overview

This plugin provides the same functionality as the maven-gpg-plugin when executing the gpg:sign goal. The only difference in functionality is that this plugin does not rely upon GPG (or another command line utility) which allows us to provide PGP keys and passphrases via Maven properties. As a result, your cryptographic material does not have to exist on the build server's disk.

Usage

In order to use this plugin add the following to your pom.xml file:

<plugin>
    <groupId>com.deciphernow</groupId>
    <artifactId>bouncycastle-maven-plugin</artifactId>
    <version>1.0.0-SNAPSHOT</version>
    <configuration>
        <passphrase>${env.PGP_PASSPHRASE}</passphrase>
        <rings>${env.PGP_RINGS}</rings>
        <userId>${env.PGP_USER_ID}</userId>
    </configuration>
    <executions>
        <execution>
            <id>sign-artifacts</id>
            <phase>verify</phase>
            <goals>
                <goal>sign</goal>
            </goals>
        </execution>
    </executions>
</plugin>

Building

This build uses standard Maven build commands but assumes that the following are installed and configured locally:

  1. Java (1.8 or greater)
  2. Maven (3.0 or greater)

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request
com.deciphernow

Decipher Technology Studios

Software for your sixth sense

Versions

Version
1.1.1
1.1.0
1.0.0