I am getting error when building core bundle. Errors are com.day.cq.wcm.api,version=[1.31,2) -- Cannot be resolved,org.apache.sling.api.request,version=[2.7,3) -- Cannot be resolved org.apache.sling.api.resource,version=[2.13,3) -- Cannot be resolved | Community
Skip to main content
New Participant
September 23, 2024
Solved

I am getting error when building core bundle. Errors are com.day.cq.wcm.api,version=[1.31,2) -- Cannot be resolved,org.apache.sling.api.request,version=[2.7,3) -- Cannot be resolved org.apache.sling.api.resource,version=[2.13,3) -- Cannot be resolved

  • September 23, 2024
  • 2 replies
  • 958 views

I have built the maven project with below command.

mvn -B org.apache.maven.plugins:maven-archetype-plugin:3.8.6:generate -D archetypeGroupId=com.test.aem -D archetypeArtifactId=aem-project-archetype -D archetypeVersion=39 -D appTitle=”Test Project” -D appId=”test” -D groupId=”com.test” -D frontendModule=general -D includeExamples=y

 

 

Tried to add required dependencies in core pom, main pom, still the issue is unresolved. can anyone please help me on this.

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 MukeshYadav_

Hi @mohanbudda ,

Seem need to update the sdk (latest) or check compatiblity.

https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/quot-org-apache-sling-api-request-version-2-7-3-cannot-be/m-p/687254

If it is non cloud version then please make sure to install the required service pack.

https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/com-day-cq-wcm-api-cannot-be-resolved/td-p/385695

Thanks

2 replies

kautuk_sahni
Employee
September 25, 2024

@mohanbudda Did you find the suggestions helpful? Please let us know if you require more information. Otherwise, please mark the answer as correct for posterity. If you've discovered a solution yourself, we would appreciate it if you could share it with the community. Thank you!

Kautuk Sahni
MukeshYadav_
MukeshYadav_Accepted solution
New Participant
September 23, 2024