Skip to main content
Himanshu_Jain
Community Advisor
Community Advisor
July 17, 2023
Solved

ACS commons maven build error on AEM as a cloud service

Hi All,

We are trying to include acs-commons latest version 6.0.14 but we are getting errors while building the package ( AEM cloud service)

 

Error:

SNAPSHOT: com.adobe.acs:acs-aem-commons-content:zip:min:6.0.14 was not found in https://repo.adobe.com/nexus/content/groups/public during a previous attempt. This failure was cached in the local repository and resolution is not reattempted until the update interval of adobe-public-releases has elapsed or updates are forced.

 

Does anyone faced the same or any suggestions to resolve this issue.

 

Thanks

Himanshu

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Sady_Rifat
Sady_RifatAccepted solution
Community Advisor
July 19, 2023

@sady_rifat  6.0.14 is not available in it.

 

 


So that's the Root Cause. 6.0.14 is not present in either maven public repo or nexus-repo.

Just checked they change their package name from 6.x.x. That's why the old dependency format is not working. Also, I am not sure about the new dependency.

https://github.com/Adobe-Consulting-Services/acs-aem-commons/releases 

If you found the new dependency please let me know also. Otherwise 2 things you can do,

  • Download the zip package(6.0.14) from github and install via package manager. On this case, you need to remove the dependency
  • If your company has own nexus repo then you can deploy the latest version on their and able to resolve it.

10 replies

Nishant-Singh
Adobe Employee
Adobe Employee
July 17, 2023

In you POM please add public repo path with

https://repo.adobe.com/nexus/content/groups/public 

and 

https://repo1.maven.org/maven2 

Translate
ManviSharma
Adobe Employee
Adobe Employee
July 17, 2023

Hi,

 

To resolve the issue, ensure that the repository configuration is correct, check if the desired version is available, force an update by deleting the local cache, or explore alternative repositories.

Translate
Sady_Rifat
Community Advisor
Community Advisor
July 17, 2023

Hello @himanshu_jain ,

Last week I faced the same Nexus Repository error "This failure was cached in the local repository...." for one of my internal project.

My finding was:

  • Double check your .m2/setting.xml file and check the repositories are correct
  • Delete the internal cache repository. .m2/com/adobe/acs
  • Invalid cache for your IDE

Note that in maven public repository ACS Commons version is available up to 5.7.0 https://mvnrepository.com/artifact/com.adobe.acs/acs-aem-commons-content 

Hope in the Nexus repository your desired version is available. Please recheck this.

Translate
Himanshu_Jain
Community Advisor
Community Advisor
July 18, 2023

Issue is with the latest one 6.0.14

Translate
Himanshu Jain
Sady_Rifat
Community Advisor
Community Advisor
July 19, 2023

@himanshu_jain , Sorry for the confusion, My point was in Maven public repository 6.0.14 was not present. That's why it's trying to fetch the acs-aem-commons from nexus repository. 

I think you crossed checked that the 6.0.14 version is present in Nexus repository?

Translate