116 lines
4.7 KiB
XML
116 lines
4.7 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 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
|
|
|
<modelVersion>4.0.0</modelVersion>
|
|
<groupId>com.inteligr8</groupId>
|
|
<artifactId>java-dcevm-hotswap</artifactId>
|
|
<version>11.0.11-1.4.1</version>
|
|
<name>Java DCEVM for Rapid Application Development</name>
|
|
<packaging>pom</packaging>
|
|
|
|
<properties>
|
|
<!-- The release version of Ubuntu to use as the base -->
|
|
<!-- See: https://hub.docker.com/_/ubuntu -->
|
|
<!-- This has very little impact and may be replaced -->
|
|
<ubuntu.version>20.04</ubuntu.version>
|
|
|
|
<!-- The version of Java DCEVM to use for executing Apache Tomcat -->
|
|
<!-- See: https://github.com/TravaOpenJDK/trava-jdk-11-dcevm/releases -->
|
|
<dcevm.version>11.0.11+1</dcevm.version>
|
|
<dcevm.majorVersion>11</dcevm.majorVersion>
|
|
<dcevm.os-arch>linux-x64</dcevm.os-arch>
|
|
<!-- v11.0.10
|
|
<dcevm.filename>java${dcevm.majorVersion}-openjdk-dcevm-${dcevm.os-arch}.tar.gz</dcevm.filename>
|
|
-->
|
|
<dcevm.filename>Openjdk${dcevm.majorVersion}u-dcevm-${dcevm.os-arch}.tar.gz</dcevm.filename>
|
|
|
|
<!-- The version of the Hotswap Agent to use -->
|
|
<!-- See: https://github.com/HotswapProjects/HotswapAgent/releases -->
|
|
<hotswap.version>1.4.1</hotswap.version>
|
|
|
|
<!-- The Docker image meta-data for pushing the build -->
|
|
<image.name>inteligr8/${project.artifactId}</image.name>
|
|
<image.tag>${project.version}</image.tag>
|
|
<image.registry>docker.inteligr8.com</image.registry>
|
|
</properties>
|
|
|
|
<build>
|
|
<resources>
|
|
<resource>
|
|
<directory>.</directory>
|
|
<includes>
|
|
<include>*.sh</include>
|
|
<include>*.properties</include>
|
|
</includes>
|
|
<filtering>true</filtering>
|
|
<targetPath>${project.build.directory}</targetPath>
|
|
</resource>
|
|
</resources>
|
|
<plugins>
|
|
<plugin>
|
|
<artifactId>maven-resources-plugin</artifactId>
|
|
<version>3.2.0</version>
|
|
<executions>
|
|
<execution>
|
|
<id>copy-resources</id>
|
|
<phase>process-resources</phase>
|
|
<goals><goal>resources</goal></goals>
|
|
<configuration>
|
|
<encoding>utf-8</encoding>
|
|
<propertiesEncoding>utf-8</propertiesEncoding>
|
|
</configuration>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
<!-- This plugin build and pushes the Docker image -->
|
|
<plugin>
|
|
<groupId>io.fabric8</groupId>
|
|
<artifactId>fabric8-maven-plugin</artifactId>
|
|
<version>4.4.0</version>
|
|
<configuration>
|
|
<images>
|
|
<image>
|
|
<name>${image.name}:${image.tag}</name>
|
|
<registry>${image.registry}</registry>
|
|
</image>
|
|
</images>
|
|
<contextDir>${project.build.directory}</contextDir>
|
|
<buildStrategy>docker</buildStrategy>
|
|
<verbose>true</verbose>
|
|
</configuration>
|
|
<executions>
|
|
<!-- This execution builds the Docker image -->
|
|
<execution>
|
|
<id>docker-build</id>
|
|
<phase>package</phase>
|
|
<goals><goal>build</goal></goals>
|
|
</execution>
|
|
<!-- This execution pushes the built Docker image to the configured Docker Registry -->
|
|
<execution>
|
|
<id>docker-push</id>
|
|
<phase>deploy</phase>
|
|
<goals><goal>push</goal></goals>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
<!-- This plugin prevents the project from deploying to the Maven Repository, as it is pointless -->
|
|
<plugin>
|
|
<artifactId>maven-deploy-plugin</artifactId>
|
|
<version>3.0.0-M1</version>
|
|
<configuration>
|
|
<skip>true</skip>
|
|
</configuration>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
|
|
<profiles>
|
|
<profile>
|
|
<id>no-docker</id>
|
|
<properties>
|
|
<fabric8.build.jib>true</fabric8.build.jib>
|
|
</properties>
|
|
</profile>
|
|
</profiles>
|
|
|
|
</project>
|