pom reset

This commit is contained in:
ubuntu 2025-10-27 17:58:47 +00:00
parent a98f65aea6
commit 2002870c24

18
pom.xml
View File

@ -10,7 +10,6 @@
<packaging>war</packaging> <packaging>war</packaging>
<properties> <properties>
<docker.registry>nexus-riscv.allarddcs.nl/registry</docker.registry>
<maven.compiler.source>17</maven.compiler.source> <maven.compiler.source>17</maven.compiler.source>
<maven.compiler.target>17</maven.compiler.target> <maven.compiler.target>17</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
@ -100,10 +99,15 @@
</systemPropertyVariables> </systemPropertyVariables>
</configuration> </configuration>
</plugin> </plugin>
<plugin> <plugin>
<groupId>org.codehaus.mojo</groupId> <groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId> <artifactId>exec-maven-plugin</artifactId>
<version>3.3.0</version> <version>3.3.0</version>
<!--
Create new docker image using Dockerfile which must be present in current working directory.
Tag the image using maven project version information.
-->
<executions> <executions>
<execution> <execution>
<id>docker-build</id> <id>docker-build</id>
@ -117,11 +121,12 @@
<arguments> <arguments>
<argument>build</argument> <argument>build</argument>
<argument>-t</argument> <argument>-t</argument>
<argument>${docker.registry}/${project.artifactId}:${project.version}</argument> <argument>${project.groupId}/${project.artifactId}:${project.version}</argument>
<argument>.</argument> <argument>.</argument>
</arguments> </arguments>
</configuration> </configuration>
</execution> </execution>
<!-- Login and Push the image to a docker repo. -->
<execution> <execution>
<id>docker-login</id> <id>docker-login</id>
<phase>install</phase> <phase>install</phase>
@ -134,14 +139,13 @@
<arguments> <arguments>
<argument>login</argument> <argument>login</argument>
<argument>-u</argument> <argument>-u</argument>
<argument>admin</argument> <argument>allardkrings</argument>
<argument>-p</argument> <argument>-p</argument>
<argument>Nexus01@</argument> <argument>Kubernetes01@</argument>
<argument>nexus-riscv.allarddcs.nl</argument> <argument>docker.io</argument>
</arguments> </arguments>
</configuration> </configuration>
</execution> </execution>
<execution> <execution>
<id>docker-push</id> <id>docker-push</id>
<phase>install</phase> <phase>install</phase>
@ -153,7 +157,7 @@
<workingDirectory>${project.basedir}</workingDirectory> <workingDirectory>${project.basedir}</workingDirectory>
<arguments> <arguments>
<argument>push</argument> <argument>push</argument>
<argument>nexus-riscv.allarddcs.nl/registry/${project.artifactId}:${project.version}</argument> <argument>${project.groupId}/${project.artifactId}:${project.version}</argument>
</arguments> </arguments>
</configuration> </configuration>
</execution> </execution>