adding a dependency of jsoup-1.14.3 in our project bundle- bundle is not resolving | Community
Skip to main content
New Participant
Jul 21, 2022 12:53 PM UTC
Solved

adding a dependency of jsoup-1.14.3 in our project bundle- bundle is not resolving

when I am adding a dependency of jsoup-1.12.2 in my project bundle, I dont face any issue, the project bundle is resolved and active. But Veracode security scan found a security issue in jsoup 1.12.2 version and recommended to use latest version.

When I am using jsoup-1.14.2 or any other higher version, my project bundle is not resolving. There is no compile time issue. I get the below error while resolving

 

javax.annotation.meta,version=[3.0,4) -- Cannot be resolved

 

I think this javax.annotation.meta package is getting added internally in latest jsoup (1.14.2 or higher).

 

Has anyone faced similar issue or know how to fix this?

 

Regards,

Niraj

 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
SantoshSai
SantoshSaiAccepted solution
New Participant
Jul 21, 2022 1:49 PM UTC

Hi @niraj2 ,

With jsoup - since it's third party jar bundle, even if you have included in dependency you still have to add the jsoup Jar to AEM as well through system console eg. http://localhost:4502/system/console/bundles 

Please check this: https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/jsoup-jar-does-not-installed-in-osgi-bundle/td-p/276271

Hope that helps!

Regards,

Santosh

Santosh Sai

3 replies

SantoshSai
SantoshSaiAccepted solution
New Participant
Jul 21, 2022 1:49 PM UTC

Hi @niraj2 ,

With jsoup - since it's third party jar bundle, even if you have included in dependency you still have to add the jsoup Jar to AEM as well through system console eg. http://localhost:4502/system/console/bundles 

Please check this: https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/jsoup-jar-does-not-installed-in-osgi-bundle/td-p/276271

Hope that helps!

Regards,

Santosh

Translate
Santosh Sai
Niraj2Author
New Participant
Jul 22, 2022 10:42 AM UTC

Hi Santosh,

Thanks for the suggestion. I will try this today and check. I will update after that.

 

Regards,

Niraj

Translate
Employee
Jul 21, 2022 1:15 PM UTC

Please check similar query being resolved @ https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/jsoup-not-getting-resolved/td-p/398458.

Hope this helps.

 

Thanks

Anika

Translate