org.apache.commons.lang3 can not be resolved in OSGI console. | Community
Skip to main content
Level 2
Jan 14, 2019 11:31 AM UTC
Solved

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

I have added the below dependency in the pom for my project.

<dependency>

    <groupId>org.apache.commons</groupId>

    <artifactId>commons-lang3</artifactId>

    <version>3.8.1</version>

</dependency>

But in System/console I am getting the below Error. Do i need to export the package. Please help.

org.apache.commons.lang3,version=[3.8,4) -- Cannot be resolved

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
joerghoh
joerghohAccepted solution
Employee
Jan 14, 2019 12:11 PM UTC

This maven dependency applies to an OSGI bundle, thus the version number applies to the bundle version.

OSGI dependencies apply to java package versions; sometimes all packages exported by a certain bundle have the same version as the bundle, but that's not often.

Check in your AEM instance, what version of the OSGI bundle "commons-lang3" you have deployed, and change the maven dependency to the same version.

2 replies

Level 2
Jan 14, 2019 1:00 PM UTC

Thanks, I deleted the older version of common-lang3 and deployed the newer version manually.

Translate
joerghoh
joerghohAccepted solution
Employee
Jan 14, 2019 12:11 PM UTC

This maven dependency applies to an OSGI bundle, thus the version number applies to the bundle version.

OSGI dependencies apply to java package versions; sometimes all packages exported by a certain bundle have the same version as the bundle, but that's not often.

Check in your AEM instance, what version of the OSGI bundle "commons-lang3" you have deployed, and change the maven dependency to the same version.

Translate