当我使用 maven 2.2.1 构建项目时,它使用 https 连接从 nexus 下载 jar。

但是下载依赖jar的时候好像有问题,有什么问题,如何解决?

错误:
[WARNING] Unable to get resource 'org.apache.maven.plugins:maven-clean-plugin:pom:2.2' from repository HTSA_BCD_Team-m2 (http://r2alm.ghq.com:7001/alm/proxy/htsu/HTSA_BCD_Team-m2): Error transferring file: java.lang.ClassNotFoundException: Cannot find the specified class com.ibm.websphere.ssl.protocol.SSLSocketFactory

最佳答案

我知道如何解决这个问题。

编辑 jre/lib/security 中的 java.security 文件

评论原始 ssl 并在下面设置它们:

ssl.SocketFactory.provider=com.ibm.jsse2.SSLSocketFactoryImpl
ssl.ServerSocketFactory.provider=com.ibm.jsse2.SSLServerSocketFactoryImpl

关于maven 2.2.1 构建错误 : Cannot find the specified class com. ibm.websphere.ssl.protocol.SSLSocketFactory,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/30906867/

10-12 01:49