Skip to content

Instantly share code, notes, and snippets.

@lklement
Last active February 16, 2017 05:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lklement/37e163fc77848e2600602ae504202fd3 to your computer and use it in GitHub Desktop.
Save lklement/37e163fc77848e2600602ae504202fd3 to your computer and use it in GitHub Desktop.
Clip file for Extend and Customize AEM 6.2
Updated 170215
Chapter 3, Lab Activity 3, before Task 1 (Windows)
(on ReadyTech) Replace the values of these environment variables:
JAVA_HOME
C:\Program Files\Java\jdk1.8.0_91
Path
C:\ProgramData\Oracle\Java\javapath;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;%JAVA_HOME%\bin
Chapter 3, Activity 3, Task 3
Page 58 - PROJECT SETUP
Path for Remote Archetype Catalog:
Catalog File: https://repo.adobe.com/nexus/content/groups/public/archetype-catalog.xml
Description: AEM Archetype Catalog
page 65 - POM FILE UPDATES
Fix for javax.inject version dependency issues
Addition to core/pom.xml: (search on maven-bundle)
inside <build><plugins><plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
<configuration>
<instructions>
Add these two lines inside the instructions block:
<!-- Import any version of javax.inject, to allow running on multiple versions of AEM -->
<Import-Package>javax.inject;version=0.0.0,*</Import-Package>
page 66
Corrected UberJar Dependency:
In parent POM: (search on aem-api)
<dependency>
    <groupId>com.adobe.aem</groupId>
    <artifactId>uber-jar</artifactId>
    <version>6.2.0</version>
    <classifier>apis</classifier>
    <scope>provided</scope>
</dependency>
In child POMs: (search on aem-api)
(exclude training.it.launcher/pom.xml)
<dependency>
<groupId>com.adobe.aem</groupId>
<artifactId>uber-jar</artifactId>
<classifier>apis</classifier>
</dependency>
Chapter 4, Lab Activity 1, Task 1: Create and Consume an OSGi Service
page 92
In training.core/pom.xml add the line below to the maven bundle plugin instructions block:
<Bundle-Activator>com.adobe.training.core.Activator</Bundle-Activator>
Chapter 5, Task 2,: Create Service User
page 129
Under /apps/trainingproject/config create a node named:
org.apache.sling.serviceusermapping.impl.ServiceUserMapperImpl.amended-training
of type sling:OsgiConfig
service.ranking (long) 0
user.mapping (string) com.adobe.training.core:training=training-user
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment