Maven GPG Plugin Fixage

If you are trying to use maven’s gpg plugin, and maven just hangs when it gets to the signing part, there is a workaround.

The easiest way is to add some configuration to the build plugins section of your pom:

<plugin>
    <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-release-plugin</artifactId>
    <version>2.0</version>
    <configuration>
        <mavenExecutorId>forked-path</mavenExecutorId>
    </configuration>
</plugin>

You can see this in JDBI’s pom.xml. With that, it should properly ask you for your gpg passphrase.