Skip to content

Commit

Permalink
Refactoring and README update
Browse files Browse the repository at this point in the history
  • Loading branch information
arumsey committed Sep 20, 2016
1 parent 50e6150 commit 9230d44
Show file tree
Hide file tree
Showing 65 changed files with 50 additions and 190 deletions.
7 changes: 7 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
target/*
*/target
*/*/target
*/*/*/target
*.iml
.idea/
.vlt
50 changes: 29 additions & 21 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,30 @@
# aem.mobile.commons AEM Mobile Project
# AEM Mobile Commons Project

This a content package project generated using the AEM Multimodule Lazybones template.
## Dependencies

- ACS AEM Commons (v. 3.0.2)
- we.Pharma Sales

### We Pharma Sales

**You need to have the we-healthcare-sales package installed before proceeding.**

It can be obtained following the AEM Mobile [End to End Demo](https://internal.adobedemo.com/content/demo-hub/en/demos/external/wesellpharma-demo.html)

After installing the code, please install the aem-mobile-commons-we-pharma-sales-<version>.zip package.
This pacakge will give you some sample page components and templates to be used with the we-healthcare-sales project.

To use, create a page in AEM with the template "weSellPharma Test Latest Innovations"

## Components

The following components are included with this project.

### Lightbox

### Slideshow

### Video

## Building

Expand All @@ -10,39 +34,23 @@ From the root directory, run ``mvn -PautoInstallPackage clean install`` to build

From the bundle directory, run ``mvn -PautoInstallBundle clean install`` to build *just* the bundle and install to a CQ instance.

## Using with AEM Developer Tools for Eclipse
### Using with AEM Developer Tools for Eclipse

To use this project with the AEM Developer Tools for Eclipse, import the generated Maven projects via the Import:Maven:Existing Maven Projects wizard. Then enable the Content Package facet on the _content_ project by right-clicking on the project, then select Configure, then Convert to Content Package... In the resulting dialog, select _src/main/content_ as the Content Sync Root.

## Using with VLT
### Using with VLT

To use vlt with this project, first build and install the package to your local CQ instance as described above. Then cd to `content/src/main/content/jcr_root` and run

vlt --credentials admin:admin checkout -f ../META-INF/vault/filter.xml --force http://localhost:4502/crx

Once the working copy is created, you can use the normal ``vlt up`` and ``vlt ci`` commands.

## Specifying CRX Host/Port
### Specifying CRX Host/Port

The CRX host and port can be specified on the command line with:
mvn -Dcrx.host=otherhost -Dcrx.port=5502 <goals>

## Content Sync Configuration

Please make sure you copy the nodes under /etc/contentsync/tempates/aem-mobile-commons under your contentsync template.

## ACS AEM Commons

There is code that depends uses ACS AEM Commons APIs and widgets.

## We Pharma Sales

**You need to have the we-healthcare-sales package installed before proceeding.**

It can be obtained following the AEM Mobile [End to End Demo](https://internal.adobedemo.com/content/demo-hub/en/demos/external/wesellpharma-demo.html)

After installing the code, please install the aem-mobile-commons-we-pharma-sales-<version>.zip package.
This pacakge will give you some sample page components and templates to be used with the we-healthcare-sales project.

To use, create a page in AEM with the template "weSellPharma Test Latest Innovations"

Binary file not shown.
4 changes: 2 additions & 2 deletions core/pom.xml → bundles/core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<!-- P A R E N T P R O J E C T D E S C R I P T I O N -->
<!-- ====================================================================== -->
<parent>
<groupId>com.aem.mobile.commons</groupId>
<groupId>com.adobe.aem.mobile.commons</groupId>
<artifactId>aem-mobile-commons</artifactId>
<version>0.0.1-SNAPSHOT</version>
</parent>
Expand All @@ -17,7 +17,7 @@

<artifactId>aem-mobile-commons.core</artifactId>
<packaging>bundle</packaging>
<name>aem.mobile.commons AEM Mobile Project Bundle</name>
<name>Core AEM Mobile Commons Bundle</name>

<dependencies>
<dependency>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.aem.mobile.commons.core.impl.contentsync;
package com.adobe.aem.mobile.commons.core.impl.contentsync;

import com.day.cq.commons.jcr.JcrUtil;
import com.day.cq.contentsync.config.ConfigEntry;
Expand Down Expand Up @@ -31,14 +31,12 @@
import java.util.*;

/**
* Created by kmall on 7/21/16
* TODO: update to use reference provider aka referenceProvider.getReferences(currentPage.getContentResource()); instead of the query.
* TODO: remove deprecated class JcrResourceResolverFactory
* TODO: Convert to use AbstractSlingResourceUpdateHandler. But this would require a dependency on the unobfuscated jar.
*/

@Component(metatype = false, factory = "com.day.cq.contentsync.handler.ContentUpdateHandler/referencedassets")

@SuppressWarnings("unused")
public class ReferencedAssetUpdateHandler implements ContentUpdateHandler {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.aem.mobile.commons.core.impl.rewriter;
package com.adobe.aem.mobile.commons.core.impl.rewriter;

import com.adobe.acs.commons.rewriter.AbstractTransformer;
import com.adobe.acs.commons.util.ParameterUtil;
Expand All @@ -21,8 +21,6 @@
import java.util.Map;

/**
* Created by kmall on 7/28/16
*
* TODO: Convert to use AbstractSlingResourceUpdateHandler. But this would require a dependency on the unobfuscated jar.
*/
@Component(
Expand All @@ -39,7 +37,6 @@
propertyPrivate = true)
})
@Service

@SuppressWarnings("unused")
public class AssetsPathRewriterTransformerFactory implements TransformerFactory {

Expand Down
8 changes: 4 additions & 4 deletions ui.apps/pom.xml → content/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<!-- P A R E N T P R O J E C T D E S C R I P T I O N -->
<!-- ====================================================================== -->
<parent>
<groupId>com.aem.mobile.commons</groupId>
<groupId>com.adobe.aem.mobile.commons</groupId>
<artifactId>aem-mobile-commons</artifactId>
<version>0.0.1-SNAPSHOT</version>
</parent>
Expand All @@ -15,13 +15,13 @@
<!-- P R O J E C T D E S C R I P T I O N -->
<!-- ====================================================================== -->

<artifactId>aem-mobile-commons.ui.apps</artifactId>
<artifactId>aem-mobile-commons.content</artifactId>
<packaging>content-package</packaging>
<name>aem.mobile.commons AEM Mobile Project Content Package</name>
<name>AEM Mobile Commons Content Package</name>

<dependencies>
<dependency>
<groupId>com.aem.mobile.commons</groupId>
<groupId>com.adobe.aem.mobile.commons</groupId>
<artifactId>aem-mobile-commons.core</artifactId>
<version>${project.version}</version>
</dependency>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<workspaceFilter version="1.0">

<filter root="/apps/aem-mobile-commons"/>

<filter root="/etc/clientlibs/aem-mobile-commons"/>
Expand Down
22 changes: 5 additions & 17 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@
<!-- P A R E N T P R O J E C T D E S C R I P T I O N -->
<!-- ====================================================================== -->

<groupId>com.aem.mobile.commons</groupId>
<groupId>com.adobe.aem.mobile.commons</groupId>
<artifactId>aem-mobile-commons</artifactId>
<version>0.0.1-SNAPSHOT</version>
<packaging>pom</packaging>

<name>aem.mobile.commons - Reactor Project</name>
<description>Maven Multimodule project for aem.mobile.commons Project.</description>
<name>AEM Mobile Commons - Reactor Project</name>
<description>Maven Multimodule project for AEM Mobile Commons Project.</description>

<prerequisites>
<maven>3.0.2</maven>
Expand Down Expand Up @@ -185,12 +185,6 @@
<url>https://repo.adobe.com/nexus/content/groups/public/</url>
<layout>default</layout>
</repository>
<repository>
<id>adobe-internal</id>
<name>Adobe Internal Repo</name>
<url>https://artifactory.corp.adobe.com/artifactory/maven-aem-dev</url>
<layout>default</layout>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
Expand All @@ -199,12 +193,6 @@
<url>https://repo.adobe.com/nexus/content/groups/public/</url>
<layout>default</layout>
</pluginRepository>
<pluginRepository>
<id>adobe-internal</id>
<name>Adobe Internal Repo</name>
<url>https://artifactory.corp.adobe.com/artifactory/maven-aem-dev</url>
<layout>default</layout>
</pluginRepository>
</pluginRepositories>

<build>
Expand Down Expand Up @@ -486,7 +474,7 @@

</profiles>
<modules>
<module>core</module>
<module>ui.apps</module>
<module>bundles/core</module>
<module>content</module>
</modules>
</project>
77 changes: 0 additions & 77 deletions ui.apps/src/main/content/META-INF/vault/config.xml

This file was deleted.

27 changes: 0 additions & 27 deletions ui.apps/src/main/content/META-INF/vault/definition/.content.xml

This file was deleted.

8 changes: 0 additions & 8 deletions ui.apps/src/main/content/META-INF/vault/nodetypes.cnd

This file was deleted.

13 changes: 0 additions & 13 deletions ui.apps/src/main/content/META-INF/vault/properties.xml

This file was deleted.

6 changes: 0 additions & 6 deletions ui.apps/src/main/content/jcr_root/.content.xml

This file was deleted.

4 changes: 0 additions & 4 deletions ui.apps/src/main/content/jcr_root/apps/.content.xml

This file was deleted.

4 changes: 0 additions & 4 deletions ui.apps/src/main/content/jcr_root/etc/.content.xml

This file was deleted.

0 comments on commit 9230d44

Please sign in to comment.