org.apache.sling.api.resource,version=[2.11,2.12) -- Cannot be resolved | Adobe Higher Education
Skip to main content
jerinraj5555
Level 3
April 10, 2023
解決済み

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

  • April 10, 2023
  • 3 の返信
  • 2054 ビュー

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?

このトピックへの返信は締め切られました。
ベストアンサー jerinraj5555

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.

3 の返信

DPrakashRaj
Community Advisor
Community Advisor
April 10, 2023

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?

jerinraj5555
jerinraj5555作成者
Level 3
April 11, 2023

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

neeraj_24412
Level 4
April 11, 2023

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>

 

 

 

jerinraj5555
jerinraj5555作成者
Level 3
April 12, 2023

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

neeraj_24412
Level 4
April 12, 2023

Can you please share the XML snippet

jerinraj5555
jerinraj5555作成者回答
Level 3
April 20, 2023

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.