110 lines
3.6 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 disables the WAR packaging if packaging is 'war'. -->
<plugin>
<artifactId>maven-war-plugin</artifactId>
<version>3.0.0</version> <!-- Need v3+ -->
<configuration>
<failOnMissingWebXml>false</failOnMissingWebXml>
<skip>true</skip>
</configuration>
</plugin>
<!-- This plugin overrides the default install and uses the built WAR from the dependent tile. -->
<plugin>
<artifactId>maven-install-plugin</artifactId>
<version>3.0.0-M1</version>
<configuration>
<!-- do not install the normal WAR -->
<skip>true</skip>
</configuration>
<executions>
<!-- install the AMPified WAR -->
<execution>
<id>install-alt-file</id>
<phase>install</phase>
<goals><goal>install-file</goal></goals>
<configuration>
<groupId>${project.groupId}</groupId>
<artifactId>${project.artifactId}</artifactId>
<version>${project.version}</version>
<packaging>war</packaging>
<file>${project.build.warFile}</file>
<skip>false</skip>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
<profiles>
<!-- This translates 'edition' into a functional property -->
<profile>
<id>acs-community</id>
<activation>
<property>
<name>edition</name>
<value>!enterprise</value>
</property>
</activation>
<properties>
<!-- configuring beedk-acs-webapp-artifact-tile -->
<alfresco.war.artifactId>content-services-community</alfresco.war.artifactId>
</properties>
</profile>
<!-- This translates 'edition' into a functional property -->
<profile>
<id>acs-enterprise</id>
<activation>
<property>
<name>edition</name>
<value>enterprise</value>
</property>
</activation>
<properties>
<!-- configuring beedk-acs-webapp-artifact-tile -->
<alfresco.war.artifactId>content-services</alfresco.war.artifactId>
</properties>
</profile>
<profile>
<id>default-props</id>
<activation>
<property>
<name>!some-prop-that-never-exists</name>
</property>
</activation>
<properties>
<!-- configuring beedk-acs-webapp-artifact-tile -->
<alfresco.platform.war.version>${alfresco.platform.version}</alfresco.platform.war.version>
<alfresco.war.version>${alfresco.platform.war.version}</alfresco.war.version>
</properties>
</profile>
</profiles>
<tiles>
<!-- Documentation: https://git.inteligr8.com/inteligr8/ootbee-beedk/src/branch/stable/beedk-acs-webapp-artifact-build-tile -->
<tile>@project.groupId@:beedk-acs-webapp-artifact-build-tile:@project.version@</tile>
</tiles>
</project>