How do I configure the Maven deployment phase to talk to RAM which is using https ?
Hi,
How do I configure the Maven deployment phase to talk to RAM which is using https ?
I am getting following Error. How can I get the Certificates to access https:// RAM server?
[INFO] --- maven-deploy-plugin:2.7:deploy (default-deploy) @ Hello ---
Downloading: https://vlrtp454:9443/ram.ws/maven2/com/roshitech/fid/Hello/1.0-SNAPSHOT/maven-metadata.xml
[WARNING] Could not transfer metadata com.roshitech.fid:Hello:1.0-SNAPSHOT/maven-metadata.xml from/to internal.repo (https://vlrtp454:9443/ram.ws/mave
n2/): sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find
valid certification path to requested target
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
Accepted answer
Hi,
if Maven repository is running under https with a self-signed certificate , please follow the following steps
1.download InstallCert.java file and compile it
2.run InstallCert.java with your hostname and https port , Example (java InstallCert yourhostname:port)
3.this generates a jssecerts file
4.copy the generated file under your JAVA_HOME\jre\lib\security
if using a Certificate authority signed certificate please check the following link for step by step approach
http://maven.apache.org/guides/mini/guide-repository-ssl.html