Setup ACS AEM Commons in AEM Projects
Published
AEM as a Cloud Service
acs-aem-commons-all
and add it as a dependency in the container package (all module) pom.xml
as shown below.all / pom.xml
<plugins>
<plugin>
<groupId>org.apache.jackrabbit</groupId>
<artifactId>filevault-package-maven-plugin</artifactId>
<configuration>
<embeddeds>
<embedded>
<groupId>com.adobe.acs</groupId>
<artifactId>acs-aem-commons-all</artifactId>
<target>/apps/aem-demo-vendor-packages/container/install</target>
<filter>true</filter>
<isAllVersionsFilter>true</isAllVersionsFilter>
</embedded>
</embeddeds>
</configuration>
</plugin>
</plugins>
<dependencies>
<dependency>
<groupId>com.adobe.acs</groupId>
<artifactId>acs-aem-commons-all</artifactId>
<classifier>cloud</classifier>
<version>6.6.4</version>
<type>zip</type>
</dependency>
</dependencies>
acs-aem-commons-bundle
dependency in your core module.core / pom.xml
<dependency>
<groupId>com.adobe.acs</groupId>
<artifactId>acs-aem-commons-bundle</artifactId>
<version>6.6.4</version>
<scope>provided</scope>
</dependency>
AEM 6.5
cloud
, you don't use any classifier at all. Also instead of embeddeds one leverages subpackages.all / pom.xml
<plugins>
<plugin>
<groupId>org.apache.jackrabbit</groupId>
<artifactId>filevault-package-maven-plugin</artifactId>
<configuration>
<subPackages>
<subPackage>
<groupId>com.adobe.acs</groupId>
<artifactId>acs-aem-commons-all</artifactId>
<filter>true</filter>
<isAllVersionsFilter>true</isAllVersionsFilter>
</subPackage>
</subPackages>
</configuration>
</plugin>
</plugins>
<dependencies>
<dependency>
<groupId>com.adobe.acs</groupId>
<artifactId>acs-aem-commons-all</artifactId>
<version>6.6.4</version>
<type>zip</type>
</dependency>
</dependencies>