It's all about the answers!

Ask a question

How do I configure the Maven deployment phase to talk to RAM which is using https ?


Prasad Tadi (1535) | asked Jan 29 '13, 3:57 p.m.
converted to question Jan 30 '13, 4:48 p.m. by Rich Kulp (3.6k38)

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


permanent link
Rich Kulp (3.6k38) | answered Jan 30 '13, 4:50 p.m.
FORUM MODERATOR / JAZZ DEVELOPER
edited Jan 30 '13, 4:54 p.m.
(This is actually from mohamed muzammil but I couldn't move his answer to this question when I moved the question to be a separate question, instead of being imbedded in another question)

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
Prasad Tadi selected this answer as the correct answer

Your answer


Register or to post your answer.


Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.