Files

403 lines
12 KiB
XML

<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.inteligr8.activiti</groupId>
<artifactId>cxf-activiti-app-ext</artifactId>
<version>1.4-SNAPSHOT</version>
<packaging>jar</packaging>
<name>CXF-based JAX-RS &amp; JAX-WS enablement for APS App</name>
<description>An Alfresco Process Service App extension providing the missing components for JAX-RS-based client libraries.</description>
<url>https://git.inteligr8.com/inteligr8/cxf-activiti-app-ext</url>
<licenses>
<license>
<name>GNU GENERAL PUBLIC LICENSE, Version 3, 29 June 2007</name>
<url>https://www.gnu.org/licenses/lgpl-3.0.txt</url>
</license>
</licenses>
<scm>
<connection>scm:git:https://git.inteligr8.com/inteligr8/cxf-activiti-app-ext.git</connection>
<developerConnection>scm:git:git@git.inteligr8.com:inteligr8/cxf-activiti-app-ext.git</developerConnection>
<url>https://git.inteligr8.com/inteligr8/cxf-activiti-app-ext</url>
</scm>
<organization>
<name>Inteligr8</name>
<url>https://www.inteligr8.com</url>
</organization>
<developers>
<developer>
<id>brian.long</id>
<name>Brian Long</name>
<email>brian@inteligr8.com</email>
<url>https://twitter.com/brianmlong</url>
</developer>
</developers>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.source>11</maven.compiler.source>
<maven.compiler.target>11</maven.compiler.target>
<aps.majorVersion>26.2</aps.majorVersion>
<aps.version>${aps.majorVersion}.0</aps.version>
<!-- APS v26.2.0 uses CXF v4.2.2 -->
<cxf.version>4.2.2</cxf.version>
</properties>
<dependencyManagement>
<!-- versions need to be explicit for central-publishing-maven-plugin -->
<dependencies>
<dependency>
<groupId>com.activiti</groupId>
<artifactId>activiti-app-root</artifactId>
<version>${aps.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
<dependency>
<groupId>org.apache.cxf</groupId>
<artifactId>cxf-bom</artifactId>
<version>${cxf.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
<dependency>
<groupId>com.activiti</groupId>
<artifactId>activiti-app</artifactId>
<version>${aps.version}</version>
<classifier>classes</classifier>
</dependency>
</dependencies>
</dependencyManagement>
<dependencies>
<!-- Package CXF JAX-RS support -->
<dependency>
<groupId>org.apache.cxf</groupId>
<artifactId>cxf-rt-rs-client</artifactId>
</dependency>
<!-- Package JackSON JAX-RS support -->
<dependency>
<groupId>com.fasterxml.jackson.jakarta.rs</groupId>
<artifactId>jackson-jakarta-rs-json-provider</artifactId>
</dependency>
<!-- Package JackSON XML support -->
<dependency>
<groupId>com.fasterxml.jackson.dataformat</groupId>
<artifactId>jackson-dataformat-xml</artifactId>
</dependency>
<!-- Package JackSON joda-time support -->
<dependency>
<groupId>com.fasterxml.jackson.datatype</groupId>
<artifactId>jackson-datatype-joda</artifactId>
</dependency>
<!-- Provided by APS -->
<dependency>
<groupId>com.activiti</groupId>
<artifactId>activiti-app</artifactId>
<classifier>classes</classifier>
<scope>provided</scope>
<exclusions>
<!-- not needed here and requires a separate repository in APS v24.1.0 -->
<exclusion>
<groupId>org.apache.commons</groupId>
<artifactId>commons-email2-core</artifactId>
</exclusion>
<exclusion>
<groupId>org.apache.commons</groupId>
<artifactId>commons-email2-jakarta</artifactId>
</exclusion>
</exclusions>
</dependency>
</dependencies>
<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>versions-maven-plugin</artifactId>
<version>2.21.0</version>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>flatten-maven-plugin</artifactId>
<version>1.7.0</version>
</plugin>
<plugin>
<artifactId>maven-dependency-plugin</artifactId>
<version>3.11.0</version>
</plugin>
<plugin>
<artifactId>maven-jar-plugin</artifactId>
<version>3.5.0</version>
</plugin>
<plugin>
<artifactId>maven-shade-plugin</artifactId>
<version>3.6.2</version>
</plugin>
<plugin>
<groupId>com.inteligr8</groupId>
<artifactId>merge-maven-plugin</artifactId>
<version>1.0.1</version>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>truezip-maven-plugin</artifactId>
<version>1.2</version>
</plugin>
<plugin>
<groupId>io.repaint.maven</groupId>
<artifactId>tiles-maven-plugin</artifactId>
<version>2.44</version>
</plugin>
</plugins>
</pluginManagement>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>versions-maven-plugin</artifactId>
<configuration>
<property>base.version</property>
</configuration>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>flatten-maven-plugin</artifactId>
<executions>
<execution>
<!-- this is required because we are not creating a new POM when shading -->
<id>flatten-pom</id>
<phase>process-resources</phase>
<goals><goal>flatten</goal></goals>
<configuration>
<flattenMode>ossrh</flattenMode>
</configuration>
</execution>
</executions>
</plugin>
<!-- Several CXF libraries have a bus-extensions.txt file that will overwrite each other during the packaging process -->
<!-- Only the last one packaged will have its contents in tact -->
<!-- We need the contents of all of them and that can be done by simply concatenating them -->
<!-- Extract bus-extensions.txt from all packaged (CXF) libraries -->
<plugin>
<artifactId>maven-dependency-plugin</artifactId>
<executions>
<execution>
<id>copy-deps</id>
<phase>prepare-package</phase>
<goals><goal>copy-dependencies</goal></goals>
<configuration>
<includeScope>runtime</includeScope>
</configuration>
</execution>
<execution>
<id>unpack-bus-extensions</id>
<phase>prepare-package</phase>
<goals><goal>unpack-dependencies</goal></goals>
<configuration>
<includeTypes>jar</includeTypes>
<includeScope>runtime</includeScope>
<includes>META-INF/cxf/bus-extensions.txt</includes>
<useSubDirectoryPerArtifact>true</useSubDirectoryPerArtifact>
<outputDirectory>${project.build.directory}/bus-extensions</outputDirectory>
</configuration>
</execution>
</executions>
</plugin>
<!-- Concatenate the extracted bus-extensions.txt files -->
<plugin>
<groupId>com.inteligr8</groupId>
<artifactId>merge-maven-plugin</artifactId>
<executions>
<execution>
<id>merge-bus-extensions</id>
<phase>prepare-package</phase>
<goals><goal>merge-dirs</goal></goals>
<configuration>
<filesets>
<fileset>
<directory>${project.build.directory}/bus-extensions</directory>
<includes>
<include>*</include>
</includes>
<excludes>
<exclude>META-INF</exclude>
</excludes>
<outputDirectory>${project.build.directory}/bus-extensions</outputDirectory>
</fileset>
</filesets>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-shade-plugin</artifactId>
<executions>
<execution>
<id>shade-jar</id>
<phase>package</phase>
<goals><goal>shade</goal></goals>
<configuration>
<!-- without this, the main artifact is shaded -->
<shadedArtifactAttached>true</shadedArtifactAttached>
<!-- this keeps the dependencies in POM, letting downstream projects know what this library provides -->
<!-- this is necessary as we are not renaming/relocating any packages -->
<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.ServicesResourceTransformer" />
<transformer implementation="org.apache.maven.plugins.shade.resource.DontIncludeResourceTransformer">
<resources>
<resource>.handlers</resource>
<resource>.schemas</resource>
<resource>DEPENDENCIES</resource>
</resources>
</transformer>
</transformers>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>truezip-maven-plugin</artifactId>
<executions>
<execution>
<id>overwrite-bus-extensions</id>
<phase>package</phase>
<goals><goal>copy</goal></goals>
<configuration>
<fileset>
<directory>${project.build.directory}/bus-extensions</directory>
<includes>
<include>META-INF/cxf/bus-extensions.txt</include>
</includes>
<outputDirectory>${project.build.directory}/${project.build.finalName}-shaded.jar</outputDirectory>
</fileset>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>io.repaint.maven</groupId>
<artifactId>tiles-maven-plugin</artifactId>
<extensions>true</extensions>
<configuration>
<tiles>
<!-- Documentation: https://bitbucket.org/inteligr8/ootbee-beedk/src/stable/beedk-aps-ext-rad-tile -->
<tile>com.inteligr8.ootbee:beedk-aps-ext-rad-tile:[1.1.18,2.0.0)</tile>
</tiles>
</configuration>
</plugin>
</plugins>
</build>
<profiles>
<profile>
<id>wsl-is-slow</id>
<activation>
<os>
<family>windows</family>
</os>
</activation>
<properties>
<acs-platform.timeout>1200000</acs-platform.timeout>
</properties>
</profile>
<profile>
<id>central-publish</id>
<properties>
<maven.deploy.skip>true</maven.deploy.skip>
</properties>
<build>
<pluginManagement>
<plugins>
<plugin>
<artifactId>maven-gpg-plugin</artifactId>
<version>3.2.8</version>
</plugin>
<plugin>
<groupId>org.sonatype.central</groupId>
<artifactId>central-publishing-maven-plugin</artifactId>
<version>0.10.0</version>
</plugin>
</plugins>
</pluginManagement>
<plugins>
<plugin>
<artifactId>maven-jar-plugin</artifactId>
<executions>
<!-- `source` is required for deploy to maven-central -->
<execution>
<id>sources-jar</id>
<phase>package</phase>
<goals>
<goal>jar</goal>
</goals>
<configuration>
<classifier>sources</classifier>
</configuration>
</execution>
<!-- `javadoc` is required for deploy to maven-central -->
<execution>
<id>javadoc-jar</id>
<phase>package</phase>
<goals>
<goal>jar</goal>
</goals>
<configuration>
<classifier>javadoc</classifier>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-gpg-plugin</artifactId>
<executions>
<execution>
<id>sign</id>
<phase>verify</phase>
<goals><goal>sign</goal></goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.sonatype.central</groupId>
<artifactId>central-publishing-maven-plugin</artifactId>
<extensions>true</extensions>
<configuration>
<publishingServerId>central</publishingServerId>
<autoPublish>true</autoPublish>
</configuration>
<!-- for some reason this is required... -->
<executions>
<execution>
<id>deploy</id>
<phase>deploy</phase>
<goals><goal>publish</goal></goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
<repositories>
<repository>
<id>activiti-enterprise-releases</id>
<url>https://artifacts.alfresco.com/nexus/repository/activiti-enterprise-releases/</url>
</repository>
</repositories>
</project>