Skip to content

Commit

Permalink
Further clarify deployment of packages
Browse files Browse the repository at this point in the history
  • Loading branch information
kwin committed Nov 12, 2023
1 parent be48c47 commit 15d5cbc
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ This project is a unified collection of AEM/CQ code generated by the AEM consult

This project uses Maven for building. Common commands:

From the root directory, run `mvn -PautoInstallPackage clean install` to build the bundle and content package and install to an AEM instance.
From the root directory, run `mvn -PautoInstallPackage clean install` (for AEM 6.5) or `mvn -PautoInstallPackage,cloud clean install` (for AEMaaCS) to build the bundles and content packages and install the container package to an AEM instance.

From the bundle directory, run `mvn -PautoInstallBundle clean install` to build *just* the bundle and install to a CQ instance.
From the bundle directory, run `mvn -PautoInstallBundle clean install` to build *just* the bundle and install to an AEM instance. In addition there is the profile `autoInstallUiAppsPackage` to just deploy the `ui.apps` package.

The Maven profile `cloud` is used to both build and deploy the version targeted for AEMaaCS. To build and deploy the version for AEM 6.5.x use the command line option `-P \!cloud` [to deactivate the profile `cloud`](https://maven.apache.org/guides/introduction/introduction-to-profiles.html#deactivating-a-profile).
The Maven profile `cloud` is used to both build both the AEMaaCS and the AEM 6.5 packages/bundles as well as to deploy the version targeted for AEMaaCS. It is automatically active when no other profile is activated via command line or `settings,.xml`. To build and deploy the version for AEM 6.5 use the command line option `-P \!cloud` [to deactivate the profile `cloud`](https://maven.apache.org/guides/introduction/introduction-to-profiles.html#deactivating-a-profile).

## Using with VLT

Expand Down
2 changes: 1 addition & 1 deletion all/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
<!-- ====================================================================== -->

<artifactId>acs-aem-commons-all</artifactId>
<name>ACS AEM Commons Package</name>
<name>ACS AEM Commons Container Package (All)</name>
<description>ACS AEM Commons container content package which delivers acs-aem-commons-ui.apps,
acs-aem-commons-ui.content, the OSGi bundle and configuration.
</description>
Expand Down
6 changes: 6 additions & 0 deletions ui.apps/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,9 @@
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<properties>
<contentPackageFile>${project.build.directory}/${project.build.finalName}-cloud.zip</contentPackageFile>
</properties>
<build>
<plugins>
<plugin>
Expand Down Expand Up @@ -261,6 +264,9 @@
<plugin>
<groupId>com.day.jcr.vault</groupId>
<artifactId>content-package-maven-plugin</artifactId>
<configuration>
<packageFile>${contentPackageFile}</packageFile>
</configuration>
<executions>
<execution>
<id>install-content-package</id>
Expand Down

0 comments on commit 15d5cbc

Please sign in to comment.