Location of OSGI bundle in AEM | Community
Skip to main content
jamesm77050123
Level 2
Apr 11, 2018 6:40 AM UTC
Solved

Location of OSGI bundle in AEM

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?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
joerghoh
joerghohAccepted solution
Employee
Apr 11, 2018 8:14 PM UTC

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

2 replies

joerghoh
joerghohAccepted solution
Employee
Apr 11, 2018 8:14 PM UTC

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

Translate
kautuk_sahni
Employee
Apr 11, 2018 10:12 AM UTC

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

Translate
Kautuk Sahni