cia-dist-docker/release-test/pom.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/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<artifactId>parent-web-pom</artifactId>
<groupId>com.hack23.cia</groupId>
<version>2022.12.26</version>
<relativePath>../../parent-web-pom/pom.xml</relativePath>
</parent>
<artifactId>cia-dist-docker-release-test</artifactId>
<packaging>jar</packaging>
<name>cia-dist-docker-release-test</name>
<scm>
<connection>scm:git:ssh://git@github.com/Hack23/cia.git</connection>
<developerConnection>scm:git:ssh://git@github.com/Hack23/cia.git</developerConnection>
<tag>HEAD</tag>
<url>https://github.com/Hack23/cia/tree/master/cia-dist-docker-release-test</url>
</scm>
<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>io.fabric8</groupId>
<artifactId>docker-maven-plugin</artifactId>
<version>0.40.3</version>
</plugin>
</plugins>
</pluginManagement>
<plugins>
<plugin>
<groupId>io.fabric8</groupId>
<artifactId>docker-maven-plugin</artifactId>
<executions>
<execution>
<id>start</id>
<phase>pre-integration-test</phase>
<goals>
<goal>start</goal>
</goals>
</execution>
<execution>
<id>stop</id>
<phase>post-integration-test</phase>
<goals>
<goal>stop</goal>
</goals>
</execution>
</executions>
<configuration>
<images>
<image>
<name>hack23/cia:${project.version}</name>
<alias>application</alias>
<run>
<net>bridge</net>
<ports>
<port>8443:8443</port>
</ports>
<wait>
<log>completed</log>
<time>60000</time>
</wait>
<log>
<enabled>true</enabled>
<color>green</color>
</log>
<hostname>cia</hostname>
</run>
</image>
</images>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-enforcer-plugin</artifactId>
<executions>
<execution>
<id>enforce-versions</id>
<goals>
<goal>enforce</goal>
</goals>
<configuration combine.self="override">
<rules>
<requireMavenVersion>
<version>cia.project.versions.maven</version>
</requireMavenVersion>
<requireJavaVersion>
<version>${jdk.src.version}</version>
</requireJavaVersion>
</rules>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
<profiles>
<profile>
<id>push-docker</id>
<build>
<plugins>
<plugin>
<groupId>io.fabric8</groupId>
<artifactId>docker-maven-plugin</artifactId>
<executions>
<execution>
<id>docker:push</id>
<phase>install</phase>
<goals>
<goal>push</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
<distributionManagement>
<repository>
<uniqueVersion>false</uniqueVersion>
<id>hack23docker</id>
<name>hack23docker</name>
<url>https://www.hack23.com/nexus/repository/hack23docker/v1/</url>
<layout>legacy</layout>
</repository>
</distributionManagement>
</profile>
</profiles>
</project>