Highlighted

How does AEM 6 track autoinstalled packages?

Avatar

Avatar

roberth10066577

Avatar

roberth10066577

roberth10066577

07-12-2017

How does AEM 6 keep track of which package files in the crx-quickstart/install folder have already been installed?

I've seen this: How to install CRX packages automatically on server startup but that only seems to tell me that CQ5 tracked them with properties files and I can't find any for AEM 6.

Replies

Avatar

Avatar

smacdonald2008

Total Posts

12.7K

Likes

1.4K

Correct Answer

2.3K

Avatar

smacdonald2008

Total Posts

12.7K

Likes

1.4K

Correct Answer

2.3K
smacdonald2008

07-12-2017

AEM knows which package has been installed.

Installing Packages Automatically on CRX startup

The CRX application includes a directory named crx-quickstart/repository/installthat can be used for installing CRX packages automatically on CRX application startup. This feature is called the CRX Auto Installer. Packages that are copied to this folder will be installed in alphabetical order.

CRX Auto Installer controls this behavior. The exact detail on how it performs this task is handled at the code level and not information that will go into a doc.

Highlighted

Avatar

Avatar

Jörg_Hoh

Employee

Total Posts

3.0K

Likes

910

Correct Answer

1.0K

Avatar

Jörg_Hoh

Employee

Total Posts

3.0K

Likes

910

Correct Answer

1.0K
Jörg_Hoh
Employee

07-12-2017

The files are managed via OSGI using a pretty complex mechanism (I stopped trying to understand it).

You can find the code here: [Apache-SVN] Index of /sling/trunk/installer/providers/file

Jörg

Highlighted

Avatar

Avatar

roberth10066577

Avatar

roberth10066577

roberth10066577

08-12-2017

Ok, sounds like it is not as simple as 'it keeps a list of them here'.