The CRX application includes a directory named
crx-quickstart/repository/install that 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.
From CRX2.3 OR Later
Please use directory named <cq_home>/crx-quickstart/install for installing packages automatically on application startup.
You may also have packages automatically installed when CRX is first installed. This can be done by creating a custom CRX Quickstart jar that will auto install your packages. To do this we must add the package files to the jar file under
This can be done with the jdk jar command:
jar uf [quickstart jar filename] static/repository/install/[package filename 1] static/repository/install/[package filename 2]
For example from the same directory as the quickstart jar file:
mkdir static mkdir static/repository mkdir static/repository/install mv myapp.zip static/repository/install mv mycontent.zip static/repository/install jar uf quickstart.jar static/repository/install/myapp.zip static/repository/install/mycontent.zip
To provide a more in depth understanding, we will take a look at how CQ5 uses this feature.
CQ5.3 uses the install folder for auto-installing its packages. If you run
java -jar cq-author-4502.jar -unpack on a CQ5.3 jar then you will see the following CRX packages in
crx-quickstart/repository/install before you start the server for the first time:
After starting CQ5 for the first time you will see that 2 property files are generated under
crx-quickstart/repository/install. These files track that the packages have already been installed by the CRX Auto Installer:
Contents of a sample
#CRX Auto Installer #Fri Jul 09 11:51:04 PDT 2010 installed=2010-07-09T11\:51\:04.733-07\:00
crx-quickstart/repository/installare automatically installed on the next start of the CRX application.
/static/repository/install/. This can be done with the jdk jar command
jar uf [quickstart jar filename] static/repository/install/[package filename 1] static/repository/install/[package filename 2].