How to embed jsoup jar in bundle | Community
Skip to main content
Ankur_Khare
Community Advisor
Community Advisor
January 9, 2020
Solved

How to embed jsoup jar in bundle

  • January 9, 2020
  • 2 replies
  • 4954 views

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?

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 joerghoh

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"

2 replies

Ankur_Khare
Community Advisor
Community Advisor
January 10, 2020
Hi,
joerghoh
Adobe Employee
joerghohAdobe EmployeeAccepted solution
Adobe Employee
January 13, 2020

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"