Expand my Community achievements bar.

SOLVED

Not able to build project using maven command -mvn clean install and I am getting the below error

Avatar

Level 1

[ERROR] Failed to execute goal on project myproject.core: Could not resolve dependencies for project com.adobe.myproject:myproject.core:jar:1.0.0-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/c...: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn <args> -rf :myproject.core

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Hi @aparnarevi 

 Sometimes when you work on secured network , you get this error with maven build. Similar issue answered here:

https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/unable-to-build-wknd-proje...

 

Please check if this help you.

 

Thanks

Dipti

View solution in original post

4 Replies

Avatar

Correct answer by
Community Advisor

Hi @aparnarevi 

 Sometimes when you work on secured network , you get this error with maven build. Similar issue answered here:

https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/unable-to-build-wknd-proje...

 

Please check if this help you.

 

Thanks

Dipti

Avatar

Level 1

Hi @Dipti_Chauhan,

 

The steps provided in the link helped me. Thank you so much

 

Regards

Aparna Revi

Avatar

Community Advisor

Hi,

can you try to run with -X flag, it will tell you what exactly is misisng.

try to add correct wcm io dependency in pom 

https://github.com/arunpatidar02/aemaacs-aemlab/commit/b8414eb0fcf89a2a1056de8bda940d0fe5b57c6f



Arun Patidar