Skip to content

Instantly share code, notes, and snippets.

@rwunsch
Last active October 4, 2016 16:09
Show Gist options
  • Save rwunsch/3abe54da41ef0ace60e49d4ea04beaa0 to your computer and use it in GitHub Desktop.
Save rwunsch/3abe54da41ef0ace60e49d4ea04beaa0 to your computer and use it in GitHub Desktop.
Adobe CQ / AEM - Maven Configurations - Uber.jar (obfuscated / unobfuscated) - AEM-API - content-package-maven-plugin
mvn -Dcrx.host=192.168.99.100 -Dcrx.port=4502 -Dcq.host=192.168.99.100 -Dcq.port=4502 -Dvault.targetURL="http://192.168.99.100:4502/crx/packmgr/service.jsp" -Dvault.username=admin -Dvault.password=admin -Pfull clean install
<!--
URL: https://docs.adobe.com/docs/en/aem/6-0/develop/dev-tools/vlt-mavenplugin.html
-->
<!-- use the vault plugin to create & install the package -->
<plugin>
<groupId>com.day.jcr.vault</groupId>
<artifactId>content-package-maven-plugin</artifactId>
<version>0.0.24</version>
<extensions>true</extensions>
<executions>
<execution>
<id>create-package</id>
<goals>
<goal>package</goal>
<goal>install</goal>
</goals>
</execution>
</executions>
<configuration>
<verbose>true</verbose>
<embeddeds>
<embedded>
<groupId>${project.groupId}</groupId>
<artifactId>company-core</artifactId>
<target>/apps/company/install</target>
</embedded>
</embeddeds>
</configuration>
</plugin>

Maven AEM dependencies

<!-- AEM6.2 -->
<dependency>
<groupId>com.adobe.aem</groupId>
<artifactId>uber-jar</artifactId>
<version>6.2.0</version>
<classifier>apis</classifier>
<scope>provided</scope>
</dependency>
<!-- AEM6.1 -->
<dependency>
<groupId>com.adobe.aem</groupId>
<artifactId>uber-jar</artifactId>
<version>6.1.0</version>
<classifier>apis</classifier>
<scope>provided</scope>
</dependency>
<!-- AEM6.0 -->
<dependency>
<groupId>com.adobe.aem</groupId>
<artifactId>aem-api</artifactId>
<version>6.0.0.1</version>
<scope>provided</scope>
</dependency>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment