I tried to build wknd project using maven but getting missing artifact error | Community
Skip to main content
New Participant
December 27, 2023
Solved

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

  • December 27, 2023
  • 3 replies
  • 2088 views

[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]

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 kautuk_sahni

@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.

3 replies

kautuk_sahni
kautuk_sahniAccepted solution
Employee
January 2, 2024

@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
Hemendra
New Participant
December 28, 2023

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

Mahedi_Sabuj
New Participant
December 27, 2023

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-project-build/m-p/421495 

 

 

Mahedi Sabuj
Bvss24598Author
New Participant
December 27, 2023

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]

 

aanchal-sikka
New Participant
December 28, 2023

@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-goal-com-github-eirslett-frontend-maven/td-p/439761

Then execute maven command

 

Aanchal Sikka