91 lines
3.7 KiB
XML
91 lines
3.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>tomcat-rad</artifactId>
|
|
<version>9-1.2</version>
|
|
<name>Apache Tomcat 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.10+4</dcevm.version>
|
|
<dcevm.majorVersion>11</dcevm.majorVersion>
|
|
|
|
<!-- The version of Apache Tomcat to serve as the basis of this Docker image -->
|
|
<!-- See: https://tomcat.apache.org/download-90.cgi -->
|
|
<tomcat.version>9.0.44</tomcat.version>
|
|
<tomcat.majorVersion>9</tomcat.majorVersion>
|
|
<tomcat.mirror.baseUrl>https://apache.osuosl.org/tomcat</tomcat.mirror.baseUrl>
|
|
|
|
<!-- 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>
|
|
<plugins>
|
|
<!-- 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>${basedir}</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>
|