Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

maven-2

maven

When I build the project with maven 2.2.1, it download jar from nexus with https connection.

But it seems there is something wrong while downloading the dependency jar, What's the problem , how to solve it ?

Error:

[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

like image 722
Will Avatar asked Oct 23 '25 04:10

Will


1 Answers

I know how to solve this.

Edit java.security file which is in jre/lib/security

comment original ssl and set the them below:

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

like image 60
Will Avatar answered Oct 27 '25 03:10

Will