几天前我的手下停止工作了。更具体地说,它停止下载依赖项。下面我记录了一些信息和步骤,这些信息和步骤是我为了找到解决方案而做的。
mvn clean install在调试模式下生成类似于:Could not transfer artifact junit:junit:pom:3.8.1 from/to central...: peer not authenticated 栈迹mvn -Dmaven.wagon.http.ssl.insecure=true -Dmaven.wagon.http.ssl.allowall=true clean install,但也失败了。调试模式下的输出以:Server key: Could not create EC public key: CKR_DOMAIN_PARAMS_INVALID结尾mvn clean install将正确工作。因此,这似乎是一个问题,只下载。有人有什么建议吗?
发布于 2013-08-23 14:50:12
我找到了解决问题的办法。确保您有写入{jdk_directory}/security/java.security文件的权限(在我的例子中是/etc/java-7-openjdk/security/java.security),如果是这样的话,那么用以下方式修改它:
发自:
#security.provider.9=sun.security.ec.SunEC
security.provider.9=sun.security.pkcs11.SunPKCS11 ${java.home}/lib/security/nss.cfg至
security.provider.9=sun.security.ec.SunEC
#security.provider.9=sun.security.pkcs11.SunPKCS11 ${java.home}/lib/security/nss.cfg它解决了我所有计算机上的问题(都用maven 3.0.4)
https://stackoverflow.com/questions/18343751
复制相似问题