title: Use a secure maven repository over https
body: <p>I read the <a href="https://maven.apache.org/guides/mini/guide-repository-ssl.html" rel="nofollow">documentation</a> but I can't figure out what's wrong.</p>
  
  <p>I configured my POM to declare the repository:</p>
  
  <pre><code>&lt;repositories&gt;
      &lt;repository&gt;
          &lt;id&gt;snmp4j&lt;/id&gt;
          &lt;url&gt;https://oosnmp.net/dist&lt;/url&gt;
      &lt;/repository&gt;
  &lt;/repositories&gt;
  
      &lt;dependency&gt;
          &lt;groupId&gt;org.snmp4j&lt;/groupId&gt;
          &lt;artifactId&gt;snmp4j&lt;/artifactId&gt;
          &lt;version&gt;2.2.2&lt;/version&gt;
      &lt;/dependency&gt;
  </code></pre>
  
  <p>Then I used Firefox to export the certificate. Click on the Lock -> More Information -> View Certificate -> Details -> Export ... -> snmp4j.crt</p>
  
  <p>Then I imported the public key to my truststore</p>
  
  <pre><code>keytool -importcert -file snmp4j.crt -keystore trust.jks -alias "snmp4j"
  </code></pre>
  
  <p>The I configured maven options</p>
  
  <pre><code>-Xmx512m -XX:MaxPermSize=128m -Djavax.net.ssl.trustStore=k:\home\ssl\trust.jks -Djavax.net.debug=ssl:handshake:data
  </code></pre>
  
  <p>But when I run the <code>mvn compile</code> command, the dependency is not downloaded. At least I should see the SSL debug trace.</p>