mirror of
https://github.com/Alfresco/alfresco-transform-core.git
synced 2025-05-26 17:24:47 +00:00
* ATS-695/ATS-675 Add aio boot project - Added the bare bones of a spring boot project to be used by aio. Currently based loosely on transform-misc. * ATS-674/ATS-695 Add forms for each transformer. * ATS-675/ATS-695 add empty test to pass build during dev * ATS-695 remove maven profile to fix build * ATS-675 Define interface and the aio transformer * Fix formatting and rename the module as per review comments * ATS-675/ATS-695 Add ProbeTestTransformation Currenly uses MiscController implementation. * ATS-675/ATS-695 Add logger method, This will be code repeated in the local transform method and the processTransform method * ATS-675/ATS-695 Implement local transform method Minimum implementation for transform method. * ATS-675/ATS-695 Implement processTransform * ATS-675/ATS-695 Rename project to alfresco-transform-core-aio-boot Add alfresco-transform-core-aio dependencies * ATS-675/ATS-695 Fix build Update project location Update imports and variable declarations in TODOs Add error handling. Formatting. * ATS-693: Update transform-misc Dockerfile with newly reserved uid * Revert "ATS-691: Combine the win/linux pathToFile logic" This reverts commit 61fe4820 * ATS-693: Update transform-misc Dockerfile with newly reserved uid * "ATS-693: Add Dockerfile to aio-boot module" * ATS-675/ATS-695 Add resource required for ProbeTestTrasform * ATS-675/ATS-695 Remove test resources, to be added in test implementation * ATS-693: Fix path to jar resources * ATS-675/ATS-703 Moved Options builder to non boot jar. * ATS-675/ATS-703 Rename OptionsBuilder to PdfRendererOptionsBuilder This is to avoid confilct with OptionsBuilders in other T-engines. * ATS-675/ATS-695 Added PdfRendererApadpter.java Added dependency to pom.xml Required transformation of String to Long, method added to Util.java * ATS-675/ ATS-704 Implemented LibreOfficeAdapter * ATS-675 Parity with base aio naming convention * ATS-675/ATS-705 Implemented ImageMagickAdapter Moved and renamed OptionsBuilder. Moved to alfresco-transform-imagemagick, renamed ImageMagickOptionsBuilder. Added dependencies to pom.xml * ATS-693: Implement maven docker build * Initial tests * Add initial tests for config aggregation * Update AbstractTransformerControllerTest to use the new engine config names * Fix up controller * Fix travis tests (#205) * Fix engine specific properties for engine config location * Temporarily add engine configs to test resources for the boot modules. Will need to fix this properly * Resolve some review comments * ATS-675 - Move static strings to util class * Refactor classes for simpler design (#210) * ATS-702 Fix error handling (cherry picked from commit e30cb5fda6ba2ae09c91ef61e69cba4689bcc8d9) * ATS-675 Rename test class (fixes typo) * ATS-675: Add aio transformer to static scan
291 lines
12 KiB
XML
291 lines
12 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-misc-boot</artifactId>
|
|
<name>Alfresco Miscellaneous Transformer Spring Boot</name>
|
|
<packaging>jar</packaging>
|
|
|
|
<parent>
|
|
<groupId>org.alfresco</groupId>
|
|
<artifactId>alfresco-transform-core</artifactId>
|
|
<version>2.2.0-SNAPSHOT</version>
|
|
<relativePath>../../pom.xml</relativePath>
|
|
</parent>
|
|
|
|
<properties>
|
|
<image.name>alfresco/alfresco-transform-misc</image.name>
|
|
<image.registry>quay.io</image.registry>
|
|
<env.project_artifactId>${project.artifactId}</env.project_artifactId>
|
|
</properties>
|
|
|
|
<dependencies>
|
|
<dependency>
|
|
<groupId>org.alfresco</groupId>
|
|
<artifactId>alfresco-transformer-base</artifactId>
|
|
<version>${project.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.alfresco</groupId>
|
|
<artifactId>alfresco-transformer-base</artifactId>
|
|
<version>${project.version}</version>
|
|
<classifier>tests</classifier>
|
|
<type>test-jar</type>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.alfresco</groupId>
|
|
<artifactId>alfresco-transform-misc</artifactId>
|
|
<version>${project.version}</version>
|
|
</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>
|
|
</dependencies>
|
|
|
|
<build>
|
|
<plugins>
|
|
<plugin>
|
|
<groupId>org.springframework.boot</groupId>
|
|
<artifactId>spring-boot-maven-plugin</artifactId>
|
|
<executions>
|
|
<execution>
|
|
<goals>
|
|
<goal>repackage</goal>
|
|
</goals>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.codehaus.mojo</groupId>
|
|
<artifactId>license-maven-plugin</artifactId>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-surefire-plugin</artifactId>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-failsafe-plugin</artifactId>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
|
|
|
|
<profiles>
|
|
<profile>
|
|
<id>docker-it-setup</id>
|
|
<!-- raises an ActiveMq container for the Integration Tests -->
|
|
<build>
|
|
<plugins>
|
|
<plugin>
|
|
<groupId>io.fabric8</groupId>
|
|
<artifactId>docker-maven-plugin</artifactId>
|
|
<configuration>
|
|
<images>
|
|
<image>
|
|
<alias>activemq</alias>
|
|
<name>alfresco/alfresco-activemq:5.15.8</name>
|
|
<run>
|
|
<hostname>activemq</hostname>
|
|
<ports>
|
|
<port>8161:8161</port>
|
|
<port>5672:5672</port>
|
|
<port>61616:61616</port>
|
|
</ports>
|
|
<wait>
|
|
<log>Apache ActiveMQ 5.15.8 .* 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>
|
|
<alias>misc</alias>
|
|
<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>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
</profile>
|
|
|
|
<profile>
|
|
<id>local</id>
|
|
<build>
|
|
<plugins>
|
|
<plugin>
|
|
<groupId>io.fabric8</groupId>
|
|
<artifactId>fabric8-maven-plugin</artifactId>
|
|
<configuration>
|
|
<images>
|
|
<image>
|
|
<name>${image.name}:${image.tag}</name>
|
|
<build>
|
|
<dockerFileDir>${project.basedir}/</dockerFileDir>
|
|
<buildOptions>
|
|
<squash>true</squash>
|
|
</buildOptions>
|
|
</build>
|
|
</image>
|
|
</images>
|
|
</configuration>
|
|
<executions>
|
|
<execution>
|
|
<id>build-image</id>
|
|
<phase>package</phase>
|
|
<goals>
|
|
<goal>build</goal>
|
|
</goals>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
</profile>
|
|
|
|
<profile>
|
|
<id>internal</id>
|
|
<build>
|
|
<plugins>
|
|
<plugin>
|
|
<groupId>io.fabric8</groupId>
|
|
<artifactId>fabric8-maven-plugin</artifactId>
|
|
<configuration>
|
|
<images>
|
|
<!-- QuayIO image -->
|
|
<image>
|
|
<name>${image.name}:${image.tag}</name>
|
|
<registry>${image.registry}</registry>
|
|
<build>
|
|
<dockerFileDir>${project.basedir}/</dockerFileDir>
|
|
<buildOptions>
|
|
<squash>true</squash>
|
|
</buildOptions>
|
|
</build>
|
|
</image>
|
|
<!-- DockerHub image -->
|
|
<image>
|
|
<name>${image.name}:${image.tag}</name>
|
|
<build>
|
|
<dockerFileDir>${project.basedir}/</dockerFileDir>
|
|
<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>fabric8-maven-plugin</artifactId>
|
|
<configuration combine.self="override">
|
|
<images>
|
|
<!-- QuayIO image -->
|
|
<image>
|
|
<name>${image.name}:${project.version}</name>
|
|
<registry>${image.registry}</registry>
|
|
<build>
|
|
<dockerFileDir>${project.basedir}/</dockerFileDir>
|
|
<buildOptions>
|
|
<squash>true</squash>
|
|
</buildOptions>
|
|
</build>
|
|
</image>
|
|
<!-- DockerHub image -->
|
|
<image>
|
|
<name>${image.name}:${project.version}</name>
|
|
<build>
|
|
<dockerFileDir>${project.basedir}/</dockerFileDir>
|
|
<buildOptions>
|
|
<squash>true</squash>
|
|
</buildOptions>
|
|
</build>
|
|
</image>
|
|
</images>
|
|
</configuration>
|
|
<executions>
|
|
<execution>
|
|
<id>build-push-image</id>
|
|
<phase>deploy</phase>
|
|
<goals>
|
|
<goal>build</goal>
|
|
<goal>push</goal>
|
|
</goals>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
</profile>
|
|
</profiles>
|
|
</project> |