Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
SOLVED

How to embed jsoup jar in bundle

Avatar

Community Advisor

Hi Team,

I am trying to embed jsoup jar file in a bundle so that we dont need to install the bundle separately.

Could you please help on the same?

1 Accepted Solution

Avatar

Correct answer by
Employee Advisor

You can either use the jsoup osgi bundle and add it to your content-package for deployment. Then jsoup does exist as a bundle in the OSGI container, but you don't need to install it explicitly.

 

Or you embed the jsoup jar (no bundle required) directly in the bundle, and make your bundle use it. See [1] for details.

 

[1] https://felix.apache.org/documentation/subprojects/apache-felix-maven-bundle-plugin-bnd.html, search for "embedding dependencies"

View solution in original post

4 Replies

Avatar

Community Advisor
Hi, i have seen these links. But i dont want to install jsoup jar to my aem instance manualli rather i want to bundle it up with my bundle and install it to aem server. tried embedding it but it didnt work could pls let me know how would u embed it with pom.xml changed.

Avatar

Correct answer by
Employee Advisor

You can either use the jsoup osgi bundle and add it to your content-package for deployment. Then jsoup does exist as a bundle in the OSGI container, but you don't need to install it explicitly.

 

Or you embed the jsoup jar (no bundle required) directly in the bundle, and make your bundle use it. See [1] for details.

 

[1] https://felix.apache.org/documentation/subprojects/apache-felix-maven-bundle-plugin-bnd.html, search for "embedding dependencies"