85 lines
3.0 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<!--
* This program is free software: you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or (at your
* option) any later version.
*
* This program is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
* more details.
*
* You should have received a copy of the GNU General Public License along
* with this program. If not, see <https://www.gnu.org/licenses/>.
*
-->
<project xmlns="http://tiles.bluetrainsoftware.com/maven/tiles/1.1.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://tiles.bluetrainsoftware.com/maven/tiles/1.1.0 https://git.inteligr8.com/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.6.1</version>
<executions>
<!-- This execution downloads the dependency AMPs in the 'compile' and 'runtime' scopes -->
<execution>
<id>download-amp-modules</id>
<phase>prepare-package</phase>
<goals><goal>copy-dependencies</goal></goals>
<configuration>
<skip>${beedk.amp.notest.empty}</skip>
<includeScope>runtime</includeScope>
<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-webapp</id>
<phase>package</phase>
<goals><goal>install</goal></goals>
<configuration>
<skipAmpInstallation>${beedk.amp.notest.empty}</skipAmpInstallation>
<warLocation>${project.build.warFile}</warLocation>
<ampLocation>${project.build.ampDirectory}</ampLocation>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
<profiles>
<!-- This profile is always active; it defines default values for all optional properties -->
<profile>
<id>default-props</id>
<activation>
<property>
<name>!some-prop-that-never-exists</name>
</property>
</activation>
<properties>
<!-- configurable -->
<project.build.ampDirectory>${project.build.directory}/amps</project.build.ampDirectory>
</properties>
</profile>
</profiles>
<tiles>
<!-- Documentation: https://git.inteligr8.com/inteligr8/ootbee-beedk/src/branch/stable/beedk-acs-webapp-artifact-tile -->
<tile>@project.groupId@:beedk-acs-webapp-artifact-tile:@project.version@</tile>
</tiles>
</project>