org.apache.commons.lang3 can not be resolved in OSGI Issue | Community
Skip to main content
touseefk2181136
Level 3
July 23, 2024
Solved

org.apache.commons.lang3 can not be resolved in OSGI Issue

  • July 23, 2024
  • 3 replies
  • 1562 views

I have generated my AEM project by aem maven archetype. I am getting following issue in our project's core bundle in OSGI console on adobe cloud.

 

I have added following dependency in our core project pom. But still this issue is occurring. 


<dependency>
  <groupId>org.apache.commons</groupId>
  <artifactId>commons-lang3</artifactId>
  <version>3.13.0</version>
</dependency>

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 aanchal-sikka

@touseefk2181136 

 

Requesting you to please verify following:

  • Your local SDK is the same version as the Cloud server
  • The aem-sdk dependency in pomxml has the same version as server. If you need to update it, refresh/update maven depdency from your IDE.

commons-lang3 is a frequently used dependency. You might need to declare it explicitly in pom commons-lang3, rather it might already be available via aem-sdk dependency

3 replies

MukeshYadav_
Community Advisor
Community Advisor
July 23, 2024
aanchal-sikka
Community Advisor
aanchal-sikkaCommunity AdvisorAccepted solution
Community Advisor
July 24, 2024

@touseefk2181136 

 

Requesting you to please verify following:

  • Your local SDK is the same version as the Cloud server
  • The aem-sdk dependency in pomxml has the same version as server. If you need to update it, refresh/update maven depdency from your IDE.

commons-lang3 is a frequently used dependency. You might need to declare it explicitly in pom commons-lang3, rather it might already be available via aem-sdk dependency

Aanchal Sikka
touseefk2181136
Level 3
July 24, 2024

Thank you, I downgraded my uber jar version to match with on adobe cloud environment and it resolved this issue.

arunpatidar
Community Advisor
Community Advisor
July 24, 2024

Hi @touseefk2181136 

 

Also change the dependency scope to provided

 

<dependency> <groupId>org.apache.commons</groupId> <artifactId>commons-lang3</artifactId> <version>3.13.0</version> <scope>provided</scope> </dependency>

 

 

Also always use same dependency as per run time.
Go to  http://localhost:4502/system/console/depfinder and check the installed version of commons-lang3 and add the same version in your POM

https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/wknd-osgi-bundle-dependency-issue/m-p/378759 

 

 

 

 

 

Arun Patidar