How can we load a 3rd party library that is not an OSGi? bundle.
You can use sling bootdelegation in sling.properties.
Add the com.some.package package to the org.osgi.framework.system.packages property:
sling.system.packages.simple = com.some.package
Checks whether the com.some.other.Main class is known. If so, the com.some.other package is added to the org.osgi.framework.system.packages property.
sling.system.packages.class.com.some.other.Main = com.some.other
Please refer to Sling documentation for more information.
Sign in to your account