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.

Deploying zip file of dependency aem project (Similar to acs-aem-commons project)

Avatar

Level 7

I have foundation-project ( AEM project with bundle, components modules). foundation-project is added as <dependency> in the pom file of CompanyProject.

When I do autoInstallPackage on CompanyProject, I would like to have foundation-project bundle, components deployed to local AEM instance.

How to achieve this using Maven?

acs-aem-commons project .zip file uploaded to package manager when I do my project build, in the similar way, I would like to have foundation project zip file to be uploaded to package manager and bundle also gets deployed to admin console.

Thanks,

Sri

2 Replies

Avatar

Employee

You have to add foundation-project as a sub package in the content package maven plugin configuration in the pom file. If you have a separate bundle, you can embed it in the plugin configuration.

Example:

<subPackages>

     <subPackage>

          <groupId>com.adobe.cq</groupId>

          <artifactId>core.wcm.components.all</artifactId>

          <filter>true</filter>

     </subPackage>

</subPackages>

Avatar

Level 7

It is correct. It needs one more configuration in filter.xml of ui.apps for zip package to be exported to File system/crxde