only build WAR for RAD when using RAD

This commit is contained in:
Brian Long 2021-10-28 16:39:11 -04:00
parent fb95cc1464
commit 9fe73068e8

View File

@ -3,49 +3,56 @@
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://tiles.bluetrainsoftware.com/maven/tiles/1.1.0 https://bitbucket.org/inteligr8/maven-tiles/raw/xsd/src/main/resources/maven-tiles.xsd">
<build>
<plugins>
<!-- This plugin downloads the dependency AMPs -->
<plugin>
<artifactId>maven-dependency-plugin</artifactId>
<version>3.1.2</version>
<executions>
<!-- This execution downloads the dependency AMPs in the `compile`, `runtime`, and `test' scopes -->
<execution>
<id>download-test-amp-modules</id>
<phase>${beedk.download.war.phase}</phase>
<goals><goal>copy-dependencies</goal></goals>
<configuration>
<skip>${beedk.amp.test.empty}</skip>
<excludeScope>provided</excludeScope>
<includeTypes>amp</includeTypes>
<outputDirectory>${project.build.ampDirectory}</outputDirectory>
</configuration>
</execution>
</executions>
</plugin>
<!-- This plugin installs the aforementioned AMPs into the aforementioned WAR -->
<plugin>
<groupId>org.alfresco.maven.plugin</groupId>
<artifactId>alfresco-maven-plugin</artifactId>
<version>${alfresco.sdk.version}</version>
<executions>
<execution>
<id>build-test-webapp</id>
<phase>${beedk.download.war.phase}</phase>
<goals><goal>install</goal></goals>
<configuration>
<skipAmpInstallation>${beedk.amp.test.empty}</skipAmpInstallation>
<warLocation>${project.build.warFile}</warLocation>
<ampLocation>${project.build.ampDirectory}</ampLocation>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
<profiles>
<profile>
<id>rad-acs-webapp</id>
<activation>
<property>
<name>rad</name>
</property>
</activation>
<build>
<plugins>
<!-- This plugin downloads the dependency AMPs -->
<plugin>
<artifactId>maven-dependency-plugin</artifactId>
<version>3.1.2</version>
<executions>
<!-- This execution downloads the dependency AMPs in the `compile`, `runtime`, and `test' scopes -->
<execution>
<id>download-test-amp-modules</id>
<phase>${beedk.download.war.phase}</phase>
<goals><goal>copy-dependencies</goal></goals>
<configuration>
<skip>${beedk.amp.test.empty}</skip>
<excludeScope>provided</excludeScope>
<includeTypes>amp</includeTypes>
<outputDirectory>${project.build.ampDirectory}</outputDirectory>
</configuration>
</execution>
</executions>
</plugin>
<!-- This plugin installs the aforementioned AMPs into the aforementioned WAR -->
<plugin>
<groupId>org.alfresco.maven.plugin</groupId>
<artifactId>alfresco-maven-plugin</artifactId>
<version>${alfresco.sdk.version}</version>
<executions>
<execution>
<id>build-test-webapp</id>
<phase>${beedk.download.war.phase}</phase>
<goals><goal>install</goal></goals>
<configuration>
<skipAmpInstallation>${beedk.amp.test.empty}</skipAmpInstallation>
<warLocation>${project.build.warFile}</warLocation>
<ampLocation>${project.build.ampDirectory}</ampLocation>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
<!-- This profile is always active; it defines default values for all optional properties -->
<profile>
<id>default-props</id>