An abridged list of AEM 6.4 development resources.

Note:

Community supported tooling is denoted with an *

AEM 6.4 Release Notes

Java Virtual Machines

AEM 6.4 projects should target Java 8.

API Docs

Testing APIs and frameworks

Service packs

Ensure the latest Service Packs are in use for AEM 6.4.

See the Recommended Updates row on the AEM 6.4 release notes introductory table for availability.

Maven project generation

  • Adobe AEM Archetype 13
    • $ mvn org.apache.maven.plugins:maven-archetype-plugin:2.4:generate \
          -DarchetypeGroupId=com.adobe.granite.archetypes \
          -DarchetypeArtifactId=aem-project-archetype \
          -DarchetypeVersion=13 \
          -DarchetypeCatalog=https://repo.adobe.com/nexus/content/groups/public/
  • AEM Lazybones Template*

Maven dependencies and plugins

6.4 UberJar

<dependency>
    <groupId>com.adobe.aem</groupId>
    <artifactId>uber-jar</artifactId>
    <version>6.4.0</version>
    <classifier>apis</classifier>
    <scope>provided</scope>
</dependency>
    

OSGi R6 annotations

The Apache Felix SCR annotations can be replaced in AEM projects with OSGi R6 annotations. Both sets of annotations can be used in the same project if needed. The new OSGi R6 annotations API docs can be found in the above API Docs section.

Note:

Apache Felix SCR annotations are still supported in AEM and can be used along with OSGi R6 annotations in an AEM project (though a single OSGi Component or Service cannot use both).

<dependency>
    <groupId>org.osgi</groupId>
    <artifactId>osgi.cmpn</artifactId>
    <version>6.0.0</version>
</dependency>

To process the OSGi R6 annotations, version 3.3.0+ of the maven-bundle-plugin is required.

<plugin>
    <groupId>org.apache.felix</groupId>
    <artifactId>maven-bundle-plugin</artifactId>
    <version>3.5.0</version>
</plugin>

HTL Maven plugin

The Apache Sling HTL Maven plugin validates HTL templates during the maven build cycle. Add the following plugin definition to the ui.apps project's pom.xml.

<plugin>
    <groupId>org.apache.sling</groupId>
    <artifactId>htl-maven-plugin</artifactId>
    <version>1.1.4-1.3.1</version>
    <configuration>
        <sourceDirectory>${basedir}/src/main/content/jcr_root</sourceDirectory>
        <failOnWarnings>false</failOnWarnings>
    </configuration>
    <executions>
        <execution>
            <id>validate-scripts</id>
            <goals>
                <goal>validate</goal>
            </goals>
            <phase>compile</phase>
        </execution>
    </executions>
</plugin>

Dispatcher

Developer tools and artifacts

Other developer resources

Developing for previous versions of AEM

This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License  Twitter™ and Facebook posts are not covered under the terms of Creative Commons.

Legal Notices   |   Online Privacy Policy