This is a very silly question, but I'm having trouble configuring the maven-gpg-plugin on my POM to work properly. Basically I want it to sign artifacts only when I run mvn deploy, as to not ask my password (to decrypt my private key) when I run a clean install. It seems reasonable that anyone that download my project on github should be able to run clean install even without my private key.
Ok, so I thought of doing this:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<version>1.6</version>
<executions>
<execution>
<id>sign-artifacts</id>
<phase>deploy</phase>
<goals>
<goal>sign</goal>
</goals>
</execution>
</executions>
</plugin>
But that doesn't work, as the OSS Sonatype will complain the artifacts are not signed. If I replace the deploy (which should work fine) phase with the ìnstall phase, then it signs properly for OSS Sonatype when I run mvn deploy, but then it runs even when I run mvn install (which I do not wish). What am I missing?