Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

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

0 votes


Accepted answer

Permanent link
(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

0 votes

Your answer

Register or log in 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details

Question asked: Jan 29 '13, 3:57 p.m.

Question was seen: 3,872 times

Last updated: Jan 30 '13, 4:54 p.m.

Confirmation Cancel Confirm