title: gpg no default secret key error using maven
body: <p>I am trying to publish my maven project in the Central Repository and I need to sign my artifacts. I have downloaded and installed gpg and created my keyring. When I run a "maven clean deploy" in Eclipse, I get the following error:</p>
  
  <pre><code>gpg: no default secret key: No secret key
  gpg: signing failed: No secret key
  </code></pre>
  
  <p>I have searched online and I am not sure what to do. The only reference about gpg in my pom.xml file is</p>
  
  <pre><code>    &lt;plugin&gt;
          &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
          &lt;artifactId&gt;maven-gpg-plugin&lt;/artifactId&gt;
          &lt;version&gt;1.5&lt;/version&gt;
          &lt;executions&gt;
              &lt;execution&gt;
                  &lt;id&gt;sign-artifacts&lt;/id&gt;
                  &lt;phase&gt;verify&lt;/phase&gt;
                  &lt;goals&gt;
                      &lt;goal&gt;sign&lt;/goal&gt;
                  &lt;/goals&gt;
              &lt;/execution&gt;
          &lt;/executions&gt;
      &lt;/plugin&gt;   
  </code></pre>
  
  <p>Thanks!</p>