Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
SOLVED

Deploying content-package-maven-plugin subPackages to author instances based on runmode

Avatar

Level 1

I have a content package that contains some translation software that I would like to deploy to author instances only.  I would like to use content-package-maven-plugin to do this, but although it's possible to embed bundles into a /apps/app/install.author folder so that they are deployed only to author instances, I'm not sure the same is possible for subPackages.  

I can't find much documentation for the content-package-maven-plugins, so I wondered whether anyone knew of a way of achieving this?

1 Accepted Solution

Avatar

Correct answer by
Employee

Hi Chris,

I don't think this is possible using subPackages. What you should be able to do, however, is to embed the package in /apps/app/install.author just as you would a JAR file. Have never tried this myself (and honestly, I would try to avoid this case in general, but I'm sure you've considered that already), but it should theoretically work.

Regards,

Justin

View solution in original post

4 Replies

Avatar

Correct answer by
Employee

Hi Chris,

I don't think this is possible using subPackages. What you should be able to do, however, is to embed the package in /apps/app/install.author just as you would a JAR file. Have never tried this myself (and honestly, I would try to avoid this case in general, but I'm sure you've considered that already), but it should theoretically work.

Regards,

Justin

Avatar

Level 1

Hi Justin,

Thanks, I hadn't tried that as I thought it would be the jcrinstaller that would be looking for OSGI bundles - didn't think it would handle content packages.  I might give it a try just to see.  I might just add a package deployment step to the chef scripts after the author is created.  Just looking at the options at the moment, but thanks for your suggestion.

Regards,

 

Chris

Avatar

Employee

The JCR Installer will definitely handle packages; it just isn't as common as using it for bundles and configs.