mirror of
https://github.com/Alfresco/alfresco-transform-core.git
synced 2025-10-01 14:41:17 +00:00
471 lines
22 KiB
XML
471 lines
22 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<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 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
|
<modelVersion>4.0.0</modelVersion>
|
|
<artifactId>alfresco-transform-core-aio</artifactId>
|
|
<name>- All-In-One</name>
|
|
|
|
<parent>
|
|
<groupId>org.alfresco</groupId>
|
|
<artifactId>alfresco-transform-core</artifactId>
|
|
<version>5.2.2-A.3-SNAPSHOT</version>
|
|
<relativePath>../../pom.xml</relativePath>
|
|
</parent>
|
|
|
|
<properties>
|
|
<image.name>alfresco/alfresco-transform-core-aio</image.name>
|
|
<env.project_artifactId>${project.artifactId}</env.project_artifactId>
|
|
</properties>
|
|
|
|
<dependencies>
|
|
<dependency>
|
|
<groupId>org.alfresco</groupId>
|
|
<artifactId>alfresco-base-t-engine</artifactId>
|
|
<version>${project.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.alfresco</groupId>
|
|
<artifactId>alfresco-base-t-engine</artifactId>
|
|
<version>${project.version}</version>
|
|
<classifier>tests</classifier>
|
|
<type>test-jar</type>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.springframework.boot</groupId>
|
|
<artifactId>spring-boot-starter-thymeleaf</artifactId>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.springframework.boot</groupId>
|
|
<artifactId>spring-boot-starter-test</artifactId>
|
|
<scope>test</scope>
|
|
<exclusions>
|
|
<exclusion>
|
|
<groupId>com.vaadin.external.google</groupId>
|
|
<artifactId>android-json</artifactId>
|
|
</exclusion>
|
|
</exclusions>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.dom4j</groupId>
|
|
<artifactId>dom4j</artifactId>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.alfresco</groupId>
|
|
<artifactId>alfresco-jodconverter-core</artifactId>
|
|
<exclusions>
|
|
<exclusion>
|
|
<groupId>commons-io</groupId>
|
|
<artifactId>commons-io</artifactId>
|
|
</exclusion>
|
|
</exclusions>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.apache.pdfbox</groupId>
|
|
<artifactId>pdfbox</artifactId>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.alfresco</groupId>
|
|
<artifactId>alfresco-transform-misc</artifactId>
|
|
<version>${project.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.alfresco</groupId>
|
|
<artifactId>alfresco-transform-misc</artifactId>
|
|
<version>${project.version}</version>
|
|
<classifier>tests</classifier>
|
|
<type>test-jar</type>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.alfresco</groupId>
|
|
<artifactId>alfresco-transform-tika</artifactId>
|
|
<version>${project.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.alfresco</groupId>
|
|
<artifactId>alfresco-transform-tika</artifactId>
|
|
<version>${project.version}</version>
|
|
<classifier>tests</classifier>
|
|
<type>test-jar</type>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.alfresco</groupId>
|
|
<artifactId>alfresco-transform-pdf-renderer</artifactId>
|
|
<version>${project.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.alfresco</groupId>
|
|
<artifactId>alfresco-transform-pdf-renderer</artifactId>
|
|
<version>${project.version}</version>
|
|
<classifier>tests</classifier>
|
|
<type>test-jar</type>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.alfresco</groupId>
|
|
<artifactId>alfresco-transform-libreoffice</artifactId>
|
|
<version>${project.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.alfresco</groupId>
|
|
<artifactId>alfresco-transform-libreoffice</artifactId>
|
|
<version>${project.version}</version>
|
|
<classifier>tests</classifier>
|
|
<type>test-jar</type>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.alfresco</groupId>
|
|
<artifactId>alfresco-transform-imagemagick</artifactId>
|
|
<version>${project.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.alfresco</groupId>
|
|
<artifactId>alfresco-transform-imagemagick</artifactId>
|
|
<version>${project.version}</version>
|
|
<classifier>tests</classifier>
|
|
<type>test-jar</type>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>com.google.guava</groupId>
|
|
<artifactId>guava</artifactId>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.testcontainers</groupId>
|
|
<artifactId>testcontainers</artifactId>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
</dependencies>
|
|
|
|
<build>
|
|
<plugins>
|
|
<!-- Extract classes and licenses from fat Spring Boot jars. -->
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-dependency-plugin</artifactId>
|
|
<version>3.8.1</version>
|
|
<configuration>
|
|
<includeGroupIds>${project.groupId}</includeGroupIds>
|
|
<includeArtifactIds>alfresco-transform-imagemagick,alfresco-transform-libreoffice,alfresco-transform-misc,alfresco-transform-pdf-renderer,alfresco-transform-tika</includeArtifactIds>
|
|
<excludeTransitive>true</excludeTransitive>
|
|
<excludeClassifiers>tests</excludeClassifiers>
|
|
<outputDirectory>${project.build.directory}</outputDirectory>
|
|
<outputAbsoluteArtifactFilename>true</outputAbsoluteArtifactFilename>
|
|
<overWriteReleases>true</overWriteReleases>
|
|
<overWriteSnapshots>true</overWriteSnapshots>
|
|
<fileMappers>
|
|
<org.codehaus.plexus.components.io.filemappers.RegExpFileMapper>
|
|
<pattern>BOOT-INF\/</pattern>
|
|
<replacement>./</replacement>
|
|
</org.codehaus.plexus.components.io.filemappers.RegExpFileMapper>
|
|
</fileMappers>
|
|
</configuration>
|
|
<executions>
|
|
<execution>
|
|
<id>unpack-classes</id>
|
|
<phase>generate-sources</phase>
|
|
<goals>
|
|
<goal>unpack-dependencies</goal>
|
|
</goals>
|
|
<configuration>
|
|
<includes>**/org/alfresco/transform/**/*.class</includes>
|
|
</configuration>
|
|
</execution>
|
|
<execution>
|
|
<id>unpack-resources</id>
|
|
<phase>generate-resources</phase>
|
|
<goals>
|
|
<goal>unpack-dependencies</goal>
|
|
</goals>
|
|
<configuration>
|
|
<excludes>**/*.class,BOOT-INF/lib/**,META-INF/**,org/**,**/*.idx,docker/**,**/application-default.yaml</excludes>
|
|
</configuration>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.springframework.boot</groupId>
|
|
<artifactId>spring-boot-maven-plugin</artifactId>
|
|
<configuration>
|
|
<mainClass>org.alfresco.transform.base.Application</mainClass>
|
|
<excludes> <!-- Don't include source t-engine fat Spring jars. Required files have been extracted -->
|
|
<exclude>
|
|
<groupId>org.alfresco</groupId>
|
|
<artifactId>alfresco-transform-imagemagick</artifactId>
|
|
</exclude>
|
|
<exclude>
|
|
<groupId>org.alfresco</groupId>
|
|
<artifactId>alfresco-transform-libreoffice</artifactId>
|
|
</exclude>
|
|
<exclude>
|
|
<groupId>org.alfresco</groupId>
|
|
<artifactId>alfresco-transform-misc</artifactId>
|
|
</exclude>
|
|
<exclude>
|
|
<groupId>org.alfresco</groupId>
|
|
<artifactId>alfresco-transform-pdf-renderer</artifactId>
|
|
</exclude>
|
|
<exclude>
|
|
<groupId>org.alfresco</groupId>
|
|
<artifactId>alfresco-transform-tika</artifactId>
|
|
</exclude>
|
|
</excludes>
|
|
</configuration>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.codehaus.mojo</groupId>
|
|
<artifactId>license-maven-plugin</artifactId>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-source-plugin</artifactId>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
|
|
<profiles>
|
|
<profile>
|
|
<id>docker-it-setup</id>
|
|
<!-- raises an ActiveMq container for the Integration Tests -->
|
|
<build>
|
|
<plugins>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-failsafe-plugin</artifactId>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>io.fabric8</groupId>
|
|
<artifactId>docker-maven-plugin</artifactId>
|
|
<executions>
|
|
<execution>
|
|
<id>integration-tests</id>
|
|
<goals>
|
|
<goal>start</goal>
|
|
<goal>stop</goal>
|
|
</goals>
|
|
<configuration>
|
|
<images>
|
|
<image>
|
|
<name>alfresco/alfresco-activemq:5.18.3-jre17-rockylinux8</name>
|
|
<run>
|
|
<hostname>activemq</hostname>
|
|
<ports>
|
|
<port>8161:8161</port>
|
|
<port>5672:5672</port>
|
|
<port>61616:61616</port>
|
|
</ports>
|
|
<wait>
|
|
<log>Apache ActiveMQ .* started</log>
|
|
<time>20000</time>
|
|
<kill>500</kill>
|
|
<shutdown>100</shutdown>
|
|
<exec>
|
|
<preStop>kill 1</preStop>
|
|
<preStop>kill -9 1</preStop>
|
|
</exec>
|
|
</wait>
|
|
</run>
|
|
</image>
|
|
<image>
|
|
<name>${image.name}:${image.tag}</name>
|
|
<run>
|
|
<ports>
|
|
<port>8090:8090</port>
|
|
</ports>
|
|
<wait>
|
|
<http>
|
|
<url>http://localhost:8090/transform/config</url>
|
|
<method>GET</method>
|
|
<status>200...299</status>
|
|
</http>
|
|
<time>300000</time>
|
|
<kill>500</kill>
|
|
<shutdown>100</shutdown>
|
|
<exec>
|
|
<preStop>kill 1</preStop>
|
|
<preStop>kill -9 1</preStop>
|
|
</exec>
|
|
</wait>
|
|
</run>
|
|
</image>
|
|
</images>
|
|
</configuration>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
</profile>
|
|
|
|
<profile>
|
|
<id>local</id>
|
|
<build>
|
|
<plugins>
|
|
<plugin>
|
|
<groupId>io.fabric8</groupId>
|
|
<artifactId>docker-maven-plugin</artifactId>
|
|
<executions>
|
|
<execution>
|
|
<id>build-image</id>
|
|
<phase>package</phase>
|
|
<goals>
|
|
<goal>build</goal>
|
|
</goals>
|
|
<configuration>
|
|
<images>
|
|
<image>
|
|
<name>${image.name}:${image.tag}</name>
|
|
<build>
|
|
<contextDir>${project.basedir}</contextDir>
|
|
<buildOptions>
|
|
<squash>true</squash>
|
|
</buildOptions>
|
|
</build>
|
|
</image>
|
|
</images>
|
|
</configuration>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
</profile>
|
|
|
|
<profile>
|
|
<id>internal</id>
|
|
<build>
|
|
<plugins>
|
|
<plugin>
|
|
<groupId>io.fabric8</groupId>
|
|
<artifactId>docker-maven-plugin</artifactId>
|
|
<configuration>
|
|
<images>
|
|
<!-- QuayIO image -->
|
|
<image>
|
|
<name>${image.name}:${image.tag}</name>
|
|
<registry>${image.registry}</registry>
|
|
<build>
|
|
<buildx>
|
|
<platforms>
|
|
<platform>linux/amd64</platform>
|
|
<platform>linux/arm64</platform>
|
|
</platforms>
|
|
<attestations>
|
|
<provenance>false</provenance>
|
|
</attestations>
|
|
</buildx>
|
|
<contextDir>${project.basedir}</contextDir>
|
|
<buildOptions>
|
|
<squash>true</squash>
|
|
</buildOptions>
|
|
</build>
|
|
</image>
|
|
<!-- DockerHub image -->
|
|
<image>
|
|
<name>${image.name}:${image.tag}</name>
|
|
<build>
|
|
<buildx>
|
|
<platforms>
|
|
<platform>linux/amd64</platform>
|
|
<platform>linux/arm64</platform>
|
|
</platforms>
|
|
<attestations>
|
|
<provenance>false</provenance>
|
|
</attestations>
|
|
</buildx>
|
|
<contextDir>${project.basedir}</contextDir>
|
|
<buildOptions>
|
|
<squash>true</squash>
|
|
</buildOptions>
|
|
</build>
|
|
</image>
|
|
</images>
|
|
</configuration>
|
|
<executions>
|
|
<execution>
|
|
<id>build-image</id>
|
|
<phase>package</phase>
|
|
<goals>
|
|
<goal>build</goal>
|
|
</goals>
|
|
</execution>
|
|
<execution>
|
|
<id>push-image</id>
|
|
<phase>install</phase>
|
|
<goals>
|
|
<goal>push</goal>
|
|
</goals>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
</profile>
|
|
|
|
<profile>
|
|
<id>release</id>
|
|
<build>
|
|
<plugins>
|
|
<plugin>
|
|
<groupId>io.fabric8</groupId>
|
|
<artifactId>docker-maven-plugin</artifactId>
|
|
<configuration>
|
|
<images>
|
|
<!-- QuayIO image -->
|
|
<image>
|
|
<name>${image.name}:${project.version}</name>
|
|
<registry>${image.registry}</registry>
|
|
<build>
|
|
<buildx>
|
|
<platforms>
|
|
<platform>linux/amd64</platform>
|
|
<platform>linux/arm64</platform>
|
|
</platforms>
|
|
<attestations>
|
|
<provenance>false</provenance>
|
|
</attestations>
|
|
</buildx>
|
|
<contextDir>${project.basedir}</contextDir>
|
|
<buildOptions>
|
|
<squash>true</squash>
|
|
</buildOptions>
|
|
</build>
|
|
</image>
|
|
<!-- DockerHub image -->
|
|
<image>
|
|
<name>${image.name}:${project.version}</name>
|
|
<build>
|
|
<buildx>
|
|
<platforms>
|
|
<platform>linux/amd64</platform>
|
|
<platform>linux/arm64</platform>
|
|
</platforms>
|
|
<attestations>
|
|
<provenance>false</provenance>
|
|
</attestations>
|
|
</buildx>
|
|
<contextDir>${project.basedir}</contextDir>
|
|
<buildOptions>
|
|
<squash>true</squash>
|
|
</buildOptions>
|
|
</build>
|
|
</image>
|
|
</images>
|
|
</configuration>
|
|
<executions>
|
|
<execution>
|
|
<goals>
|
|
<goal>build</goal>
|
|
<goal>push</goal>
|
|
</goals>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
</profile>
|
|
</profiles>
|
|
</project>
|