maven 2.2.1 build error : Cannot find the specified class com.ibm.websphere.ssl.protocol.SSLSocketFactory

maven 2.2.1 build error : Cannot find the specified class com.ibm.websphere.ssl.protocol.SSLSocketFactory

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

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

错误:

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

我知道怎么解决了。

编辑 java.security 文件,该文件位于 jre/lib/security

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

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