Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
SOLVED

I tried to build wknd project using maven but getting missing artifact error

Avatar

Level 1

[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project mysite.core: Could not resolve dependencies for project com.mysite:mysite.core:jar:1.0.0-SNAPSHOT: The following artifacts could not be resolved: org.apache.commons:commons-imaging:jar:1.0-R1534292 (absent): Could not find artifact org.apache.commons:commons-imaging:jar:1.0-R1534292 in adobe-public-repo (https://repo.adobe.com/nexus/content/repositories/public/) -> [Help 1]
[ERROR]

1 Accepted Solution

Avatar

Correct answer by
Administrator

@Bvss24598 Did you find the suggestions from users helpful? Please let us know if more information is required. Otherwise, please mark the answer as correct for posterity. If you have found out solution yourself, please share it with the community.



Kautuk Sahni

View solution in original post

5 Replies

Avatar

Community Advisor

Could you please try with below mvn command 

mvn clean install -Padobe-public -PautoInstallPackage

An existing community thread you can check https://experienceleague communities.adobe.com/t5/adobe-experience-manager/getting-error-during-proj... 

 

 

Avatar

Level 1

Hi Mahedi,

The previous error is solved but now i am getting the error in frontentend

[ERROR] Failed to execute goal com.github.eirslett:frontend-maven-plugin:1.7.6:npm (npm run prod) on project mysite.ui.frontend: Failed to run task: 'npm run prod' failed. org.apache.commons.exec.ExecuteException: Process exited with an error: 2 (Exit value: 2) -> [Help 1]

Bvss24598_0-1703712529255.png

 

Avatar

Community Advisor

@Bvss24598 

 

Please delete the node and node_nodules under ui.frontend.

Refer to the response on https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/error-failed-to-execute-go...

Then execute maven command

 


Aanchal Sikka

Avatar

Level 2

Hi @Bvss24598 ,
Please try to delete all dependencies under your maven .m2 directory and rebuild your project.
mvn clean install -PautoInstallSinglePackage

Avatar

Correct answer by
Administrator

@Bvss24598 Did you find the suggestions from users helpful? Please let us know if more information is required. Otherwise, please mark the answer as correct for posterity. If you have found out solution yourself, please share it with the community.



Kautuk Sahni