问题
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
- What is the cause of this problem?
- Is this issue due to anything change in SVN server?
- Even no any change in local machine why this build fail error?
- 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