Unable to build wknd project sun.security.provider.certpath.SunCertPathBuilderException | Community
Skip to main content
February 17, 2021
Solved

Unable to build wknd project sun.security.provider.certpath.SunCertPathBuilderException

  • February 17, 2021
  • 3 replies
  • 6102 views

Hi All,

 

I have created Adobe profile in settings.xml file.

 

I am using Intellij / JDK 1.8 and unable to build using : mvn clean install

 

I tried adding the adobe client cert in CACERT  in JRE/JDK ; also manually added the commons-imaging-1.0-alpha2.jar , still getting the same error. 

 

Can anybody help ?

 

Could not resolve dependencies for project com.adobe.aem.guides:aem-guides-wknd.core:jar:0.1.1-SNAPSHOT: Failed to collect dependencies at io.wcm:io.wcm.testing.aem-mock.junit5:jar:3.0.2 -> io.wcm:io.wcm.testing.aem-mock.core:jar:3.0.2 -> org.apache.commons:commons-imaging:jar:1.0-R1534292: Failed to read artifact descriptor for org.apache.commons:commons-imaging:jar:1.0-R1534292: Could not transfer artifact org.apache.commons:commons-imaging:pom:1.0-R1534292 from/to adobe-public-releases (https://repo.adobe.com/nexus/content/groups/public😞 Transfer failed for https://repo.adobe.com/nexus/content/groups/public/org/apache/commons/commons-imaging/1.0-R1534292/commons-imaging-1.0-R1534292.pom: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

 

Thanks.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Ankur_Khare

You can use below command to build your package

mvn clean install -PautoInstallPackage -Dmaven.wagon.http.ssl.insecure=true -Dmaven.wagon.http.ssl.allowall=true 

 

Or you can follow steps mentioned in this thread-

https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/error-while-maven-build-sun-security-validator/td-p/248775

 

 

 

 

3 replies

Shashi_Mulugu
Community Advisor
Community Advisor
February 17, 2021

@aemuser07 can you please post your settings.xml and also output of 

 mvn help:effective-settings
aemuser07Author
February 17, 2021

I am getting a different error now ; I had two profiles ; so I deleted everything from .m2 directory and recreated settings.xml file.

 

Getting the error:

[ERROR] No plugin found for prefix 'help' in the current project and in the plugin groups [org.apache.maven.plugins, org.codehaus.mojo] available from the repositories [local (C:\Users\manab23\.m2\repository), adobe-public-releases (https://repo.adobe.com/nexus/content/groups/public), central (https://repo.maven.apache.org/maven2)] -> [Help 1]

 

I copied the exact settings.xml file from 

https://experienceleague.adobe.com/docs/experience-manager-learn/foundation/development/set-up-a-local-aem-development-environment.html?lang=en#set-up-an-integrated-development-environment

 

Ankur_Khare
Community Advisor
Ankur_KhareCommunity AdvisorAccepted solution
Community Advisor
February 17, 2021

You can use below command to build your package

mvn clean install -PautoInstallPackage -Dmaven.wagon.http.ssl.insecure=true -Dmaven.wagon.http.ssl.allowall=true 

 

Or you can follow steps mentioned in this thread-

https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/error-while-maven-build-sun-security-validator/td-p/248775

 

 

 

 

August 11, 2022

Hoje recebi esse mesmo erro ao iniciar um project test AEM, para a correção segui a dica de um forum:

https://stackoverflow.com/questions/40763263/maven-could-not-find-artifact-when-trying-to-include-a-project-in-another-one-u

 

Usar o comando: mvn clean install

 

Resolveu para mim 😎