I am trying to publish my maven project in the Central repository and I need to sign my artifacts. I downloaded and installed gpg and created my keychain. When I run "maven clean deploy" in Eclipse, I get the following error:
gpg: no default secret key: No secret key gpg: signing failed: No secret key
I searched on the internet and I'm not sure what to do. The only gpg link in my pom.xml file is
<plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-gpg-plugin</artifactId> <version>1.5</version> <executions> <execution> <id>sign-artifacts</id> <phase>verify</phase> <goals> <goal>sign</goal> </goals> </execution> </executions> </plugin>
Thanks!
eclipse maven gnupg
Miguel velez
source share