title: Maven Error: (repeated) java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty
body: <p>Have to ask again. Someone thought it was a <a href="https://stackoverflow.com/questions/6784463/error-trustanchors-parameter-must-be-non-empty">duplicate question</a> and already answered and removed it from the list.</p>
  
  <p>I'm using maven (mvn) batch command with windows (not m2e with eclipse) to run clean install or resolve dependencies. Sometimes, when pom.xml was changed, it is necessary to download artifacts from our nexus server.
  This used to work for long time for me.</p>
  
  <p>But now the connection to the nexus server (https, the server uses a company owned certificate) fails with "<strong>java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty</strong>"
  I know, I changed the Java release. But I'm pretty sure I maintained the cacerts keystore the same way I did with the previous releases. (at leased I compared the fingerprints in both of the cacerts; they are the same).</p>
  
  <p>When running the command 
  "<strong>mvn -s  -Djavax.net.debug=all -Djava.net.ssl.trustStore="C:/Programme/Java/jre1.8.0_102/lib/security/cacerts" -Djavax.net.ssl.trustStorePassword=changeit dependency:resolve</strong>", the ssl-trace says:</p>
  
  <pre><code>keyStore is :    
  keyStore type is : jks
  keyStore provider is : 
  init keystore
  init keymanager of type SunX509
  trustStore is: No File Available, using empty keystore.
  trustStore type is : jks
  trustStore provider is : 
  init truststore
  </code></pre>
  
  <p>Even if specifying the path and the password of the keystore in the command, the answer in the ssl trace is that it could not be found. </p>
  
  <p>I've no idea what I might have changed to get to this trouble. I changed the Windows PATH-Statement, but this should not matter fro the previously described command.
  Any hint is appreciated</p>