Skip to content

Commit 0b18752

Browse files
steffenrosicjelgerherzog31
committed
Add maven profile "autoInstallAll" (#174)
* Add profile "autoInstallAll" to easy installation of all modules * Replace tabs with spaces * Add feedback Co-authored-by: Christophe Jelger <jelger@adobe.com> Co-authored-by: Mark J. Becker <herzog31@users.noreply.github.com>
1 parent 1b5c987 commit 0b18752

File tree

2 files changed

+42
-0
lines changed

2 files changed

+42
-0
lines changed

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,18 @@ Starting with 2.3.2, Magento supports cache-able GraphQL requests and starting w
7171

7272
Here is a full [video walk-through of the setup process](https://www.adobe.io/apis/experiencecloud/commerce-integration-framework/getting-started.html).
7373

74+
### Easy install with the "all" package
75+
76+
If you want to build all the modules yourself and get all the latest (yet) **unreleased** changes, just build and install all the modules with the following command at the root of the repository:
77+
78+
```
79+
mvn clean install -PautoInstallAll
80+
```
81+
This installs everything by default to `localhost:4502` without any context path. You can also configure the install location with the following maven properties:
82+
* `aem.host`: the name of the AEM instance
83+
* `aem.port`: the port number of the AEM instance
84+
* `aem.contextPath`: the context path of your AEM instance (if not `/`)
85+
7486
### UberJar
7587

7688
This project relies on the AEM 6.4.4 `cq-quickstart` UberJar. This is publicly available on https://repo.adobe.com

all/pom.xml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,4 +113,34 @@
113113
<scope>provided</scope>
114114
</dependency>
115115
</dependencies>
116+
117+
<profiles>
118+
<profile>
119+
<id>autoInstallAll</id>
120+
<activation>
121+
<activeByDefault>false</activeByDefault>
122+
</activation>
123+
<build>
124+
<plugins>
125+
<plugin>
126+
<groupId>com.day.jcr.vault</groupId>
127+
<artifactId>content-package-maven-plugin</artifactId>
128+
<executions>
129+
<execution>
130+
<id>install-package</id>
131+
<goals>
132+
<goal>install</goal>
133+
</goals>
134+
<configuration>
135+
<targetURL>${quickstart.url}/crx/packmgr/service.jsp</targetURL>
136+
<failOnError>true</failOnError>
137+
</configuration>
138+
</execution>
139+
</executions>
140+
</plugin>
141+
</plugins>
142+
</build>
143+
</profile>
144+
</profiles>
145+
116146
</project>

0 commit comments

Comments
 (0)