org.apache.sling.api.resource,version=[2.11,2.12) -- Cannot be resolved | Community
Skip to main content
jerinraj5555
Level 3
Apr 10, 2023 3:35 PM UTC
Solved

org.apache.sling.api.resource,version=[2.11,2.12) -- Cannot be resolved

I've installed the latest service pack 6.5.16 and after the installation, I got the below error

org.apache.sling.api.resource,version=[2.11,2.12) -- Cannot be resolved

the "Exported Packages" list of the bundle - Apache Sling API (org.apache.sling.api) in my instance is below,

 

 What am I missing?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
jerinraj5555
jerinraj5555Accepted solution
Level 3
Apr 20, 2023 5:40 AM UTC

Resolved this issue. This issue is due to the transitive dependency and I've excluded this dependency from org.apache.sling.testing.sling-mock.junit4.

6 replies

jerinraj5555
jerinraj5555AuthorAccepted solution
Level 3
Apr 20, 2023 5:40 AM UTC

Resolved this issue. This issue is due to the transitive dependency and I've excluded this dependency from org.apache.sling.testing.sling-mock.junit4.

Translate
neeraj_24412
Level 4
Apr 11, 2023 7:27 AM UTC

Hi @jerinraj5555,
You need to update the SDK version property in your Parent POM to your current SDK version after that it will be Resolved.

 

 

 

<aem.sdk.api>2023.2.11289.20230224T170559Z-230100</aem.sdk.api>

 

 

 

Translate
jerinraj5555
Level 3
Apr 12, 2023 7:50 AM UTC

I'm currently using AEM On-Prem, and this dependency issue has come from some other (transitive) dependencies.

Translate
neeraj_24412
Level 4
Apr 12, 2023 7:57 AM UTC

Can you please share the XML snippet

Translate
DPrakashRaj
New Participant
Apr 10, 2023 4:21 PM UTC

Do your project Pom.xml has any dependencies defined for 

org.apache.sling.api.resource

and can you also check if your bundle is in active state after service pack upgrade?

Translate
jerinraj5555
Level 3
Apr 11, 2023 4:15 AM UTC

I couldn't find any dependency in the pom file and the bundle isn't active due to this issue.

Translate