How do I include bundles in my CRX package or install them by dropping them in the JCR repository via webdav?
You can install OSGi bundles via CRX packages or by dropping them in the CRX repository via webdav. This can be done by including the bundle in a folder named install under your application directory.
For example if you had an application "testapp" and a bundle you wanted to install called testappbundle-1.0.jar you could drop the bundle in the following folder /apps/testapp/install/testappbundle-1.0.jar
.
See detailed info about this here [1].
To include an OSGi bundle in a CRX package do the following:
/apps/<appname>/install/
/apps/<appname>
, define the following include and exclude rulesinclude pattern="/apps/<appname>(/.*)?"
exclude pattern="/apps/<appname>/install(/.*)?"
Note: these rules ensure that your bundle will be reinstalled upon every reinstall of the package. See here for more info on this issue here [3]
CQ5.X
[1] http://sling.apache.org/site/jcr-installer-jcrjcrinstall-and-osgiinstaller.html
[2] http://dev.day.com/docs/en/crx/current/developing/accessing_the_crx.html#WebDAV Access
[3] Bundle fails to install
Přihlaste se ke svému účtu.