环境
OS:
[root@localhost ~]# uname -a
Linux localhost.localdomain 2.6.32-220.el6.x86_64 #1 SMP Tue Dec 6 19:48:22 GMT 2011 x86_64 x86_64 x86_64 GNU/Linux
[root@localhost ~]# head -n 1 /etc/issue
CentOS release 6.2 (Final)
JDK:
[root@localhost ~]# java -version
openjdk version "1.8.0_91"
OpenJDK Runtime Environment (build 1.8.0_91-b14)
OpenJDK 64-Bit Server VM (build 25.91-b14, mixed mode)
操作:
更新Central及Apache Snapshots的索引,索引无法更新。继续在browse remote刷新时,无法获取远程索引tree,查看日志发现错误信息。
错误堆栈信息:
javax.net.ssl.SSLException: java.security.ProviderException: java.security.KeyException
原因:
参考连接:Troubleshooting story - Java HTTP client crashes on connections
解法:
[root@localhost ~]# sudo yum upgrade nss
[root@localhost bin]# ./nexus stop
[root@localhost bin]# ./nexus start
仓库地址
Apache Snapshots:https://repository.apache.org/content/repositories/snapshots/
Central:http://repo.maven.apache.org/maven2/