Reputation: 2027
A few days ago my maven stopped working. To be more specific it stops download dependencies. Below I note bunch of information and steps which I did in order to find solution.
mvn clean install
generates in debug mode something like that: Could not transfer artifact junit:junit:pom:3.8.1 from/to central...: peer not authenticated
stacktracemvn -Dmaven.wagon.http.ssl.insecure=true -Dmaven.wagon.http.ssl.allowall=true clean install
but it fails also. Output in debug mode ends with: Server key: Could not create EC public key: CKR_DOMAIN_PARAMS_INVALID
mvn clean install
works correctly. So, it seems to be a problem only with downloading.Does anyone have any suggestions what can be wrong?
Upvotes: 2
Views: 5369
Reputation: 2027
I found a solution for my problem. Be sure you have rights to write into {jdk_directory}/security/java.security
file (in my case /etc/java-7-openjdk/security/java.security)
and if so, then modify it this way:
from:
#security.provider.9=sun.security.ec.SunEC
security.provider.9=sun.security.pkcs11.SunPKCS11 ${java.home}/lib/security/nss.cfg
to
security.provider.9=sun.security.ec.SunEC
#security.provider.9=sun.security.pkcs11.SunPKCS11 ${java.home}/lib/security/nss.cfg
It fixed problem on all my computers (all with maven 3.0.4)
Upvotes: 1