141 lines
5.1 KiB
XML
141 lines
5.1 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">
|
|
|
|
<profiles>
|
|
<profile>
|
|
<id>default-props</id>
|
|
<activation>
|
|
<property>
|
|
<name>!some-prop-that-never-exists</name>
|
|
</property>
|
|
</activation>
|
|
<properties>
|
|
<!-- functional -->
|
|
<activiti.shaded.classifier>bundle</activiti.shaded.classifier>
|
|
<activiti.apidoc.name>@project.name@</activiti.apidoc.name>
|
|
<activiti.apidoc.title>Activiti API Documentation</activiti.apidoc.title>
|
|
|
|
<!-- versioning -->
|
|
<activiti-api-doclet.version>1.1.1</activiti-api-doclet.version>
|
|
<maven-clean-plugin.version>@maven-clean-plugin.version@</maven-clean-plugin.version>
|
|
<maven-javadoc-plugin.version>@maven-javadoc-plugin.version@</maven-javadoc-plugin.version>
|
|
<maven-shade-plugin.version>@maven-shade-plugin.version@</maven-shade-plugin.version>
|
|
<flatten-maven-plugin.version>@flatten-maven-plugin.version@</flatten-maven-plugin.version>
|
|
</properties>
|
|
</profile>
|
|
<profile>
|
|
<id>apidoc</id>
|
|
<build>
|
|
<plugins>
|
|
<plugin>
|
|
<artifactId>maven-clean-plugin</artifactId>
|
|
<version>${maven-clean-plugin.version}</version>
|
|
<configuration>
|
|
<filesets>
|
|
<fileset>
|
|
<directory>${basedir}/apidocs</directory>
|
|
</fileset>
|
|
</filesets>
|
|
</configuration>
|
|
</plugin>
|
|
<plugin>
|
|
<artifactId>maven-javadoc-plugin</artifactId>
|
|
<version>${maven-javadoc-plugin.version}</version>
|
|
<executions>
|
|
<execution>
|
|
<id>generate-doclet</id>
|
|
<phase>generate-resources</phase>
|
|
<goals>
|
|
<goal>javadoc</goal>
|
|
</goals>
|
|
<configuration>
|
|
<sourceFileIncludes>**/*.java</sourceFileIncludes>
|
|
<doclet>com.inteligr8.activiti.doclet.ActivitiDoclet</doclet>
|
|
<docletArtifact>
|
|
<groupId>com.inteligr8.activiti</groupId>
|
|
<artifactId>activiti-api-doclet</artifactId>
|
|
<version>${activiti-api-doclet.version}</version>
|
|
</docletArtifact>
|
|
<useStandardDocletOptions>false</useStandardDocletOptions>
|
|
<outputDirectory>${basedir}</outputDirectory>
|
|
<additionalOptions>
|
|
<additionalOption>--apiName '${activiti.apidoc.name}'</additionalOption>
|
|
<additionalOption>--title '${activiti.apidoc.title}'</additionalOption>
|
|
</additionalOptions>
|
|
|
|
<!-- this is required in JDKs before v23 -->
|
|
<disableNoFonts>true</disableNoFonts>
|
|
</configuration>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
</profile>
|
|
<profile>
|
|
<id>bundle</id>
|
|
<build>
|
|
<plugins>
|
|
<!-- This allows other depending projects to not bundle duplicate libraries -->
|
|
<plugin>
|
|
<groupId>org.codehaus.mojo</groupId>
|
|
<artifactId>flatten-maven-plugin</artifactId>
|
|
<version>${flatten-maven-plugin.version}</version>
|
|
<executions>
|
|
<execution>
|
|
<id>flatten-pom</id>
|
|
<phase>process-resources</phase>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
<!-- this is the bundling -->
|
|
<plugin>
|
|
<artifactId>maven-shade-plugin</artifactId>
|
|
<version>${maven-shade-plugin.version}</version>
|
|
<executions>
|
|
<execution>
|
|
<id>shade-deps</id>
|
|
<phase>package</phase>
|
|
<goals><goal>shade</goal></goals>
|
|
<configuration>
|
|
<shadedArtifactAttached>true</shadedArtifactAttached>
|
|
<shadedClassifierName>${activiti.shaded.classifier}</shadedClassifierName>
|
|
|
|
<!-- This allows other depending projects to not bundle duplicate libraries -->
|
|
<createDependencyReducedPom>false</createDependencyReducedPom>
|
|
|
|
<transformers>
|
|
<transformer implementation="org.apache.maven.plugins.shade.resource.ApacheLicenseResourceTransformer" />
|
|
<transformer implementation="org.apache.maven.plugins.shade.resource.ApacheNoticeResourceTransformer">
|
|
<addHeader>false</addHeader>
|
|
</transformer>
|
|
<transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer" />
|
|
</transformers>
|
|
</configuration>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
</profile>
|
|
</profiles>
|
|
|
|
</project>
|