Location of OSGI bundle in AEM | Community
Skip to main content
jamesm77050123
New Participant
April 11, 2018
Solved

Location of OSGI bundle in AEM

  • April 11, 2018
  • 2 replies
  • 3480 views

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.
Best answer by joerghoh

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
April 11, 2018

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

kautuk_sahni
Employee
April 11, 2018

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