Maven : PKIX path building failed

徘徊边缘 提交于 2019-11-27 07:25:36

问题


Maven build throwing this exception

Failed to execute goal on project mdf-portal-3rdParty: Could not resolve dependencies for project com.alu.ipprd.bsm.soa:mdf-portal-3rdParty:jar:0.0.1-SNAPSHOT: Failed to collect dependencies at com.alu.ipprd.bsm.soa.portal.soo:common:jar:0.0.1-SNAPSHOT: Failed to read artifact descriptor for com.alu.ipprd.bsm.soa.portal.soo:common:jar:0.0.1-SNAPSHOT: Could not transfer artifact com.alu.ipprd.bsm.soa.portal.soo:common:pom:0.0.1-SNAPSHOT from/to googlecode.com (http://gmaps4jsf.googlecode.com/svn/trunk/gmaps4jsf-repo): sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target -> [Help 1]

I did not made any single change in pom.xml file ,suddenly after taking update from SVN i am getting this exception.

I will want to know

  1. What is the cause of this problem?
  2. Is this issue due to anything change in SVN server?
  3. Even no any change in local machine why this build fail error?
  4. Something wrong with Gmaps4jsf repository ?(May be due to closing of Google code)

回答1:


you need to add ssl certificate to your jre installation

Please refer this answer and follow steps!

Step 1 - Get Root CA certificate

Step 2 - install that certificate at jre cacerts file




回答2:


maybe your maven version isnot the proper version. I encounter this problem in 3.2.3. and resolve it in 3.3.9 version.



来源:https://stackoverflow.com/questions/33676059/maven-pkix-path-building-failed

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!