Search code examples
aemosgi-bundle

OSGi jar restricted inside a CQ5/ AEM component


Is it possible to install a OSGi jar to Felix by keeping the jar as a part of the cq5 component and install it on build?


Solution

  • You cannot restrict an OSGi bundle so that only one CQ component can use it. If an OSGi bundle exports a java package, that will be visible from all java and scripting code.