I am using Apache Maven GPG Plugin maven-gpg-plugin to generate the required signatures to publish in Maven Central through OSSRH. My plug-in definition at pom.xml is theone below, my OSSRH credentials are at Maven conf/settings.xml and everything works fine. But when another developer tries to mvn install
it fails for him because he does not have GPG installed. I want to avoid the need of having GPG installed except for the developer doing the deployment, possibly by ignoring maven-gpg-plugin errors during build or by any other mean so that I do not need to have two pom.xml one with the plug-in and another without it.
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<version>1.6</version>
<executions>
<execution>
<id>sign-artifacts</id>
<phase>verify</phase>
<goals>
<goal>sign</goal>
</goals>
<configuration>
<keyname>${gpg.keyname}</keyname>
<passphraseServerId>${gpg.passphrase}</passphraseServerId>
</configuration>
</execution>
</executions>
</plugin>