adding a dependency of jsoup-1.14.3 in our project bundle- bundle is not resolving | Community
Skip to main content
July 21, 2022
Solved

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

  • July 21, 2022
  • 2 replies
  • 1639 views

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.
Best answer by SantoshSai

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

2 replies

Adobe Employee
July 21, 2022

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

SantoshSai
Community Advisor
SantoshSaiCommunity AdvisorAccepted solution
Community Advisor
July 21, 2022

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
Niraj2Author
July 22, 2022

Hi Santosh,

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

 

Regards,

Niraj