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

Location of OSGI bundle in AEM

Avatar

Level 3

I created an OSGI bundle which I installed in AEM using system/console. I'm now creating a package to be installed in the testing and production environments. As a security precaution I can't install OSGI bundles in this environments. How can I create a package that can install an OSGI package without accessing system console? My idea was to add the location of the OSGI bundle in AEM to a package and install that but I can't find the location of the bundle. Any ideas?

1 Accepted Solution

Avatar

Correct answer by
Employee Advisor

Hi,

When you install a bundle directly via webconsole, it is not stored in the repository. You should package your bundle into a content-package and then install the content-package, then the bundle will be stored in the repository. That is the recommended approach and the maven archetypes create such a build structure.

Jörg

View solution in original post

2 Replies

Avatar

Administrator

If you have bundle in the JCR then you can export it otherwise you can not.

How did you first install this OSGI bundle to the AEM instance which have it? Was it via Package? If so, then check the /apps/<appname>/install/ folder, the bundle might be there. Otherwise you can not.

-Kautuk



Kautuk Sahni

Avatar

Correct answer by
Employee Advisor

Hi,

When you install a bundle directly via webconsole, it is not stored in the repository. You should package your bundle into a content-package and then install the content-package, then the bundle will be stored in the repository. That is the recommended approach and the maven archetypes create such a build structure.

Jörg