Fix POMs, build vanilla .wars instead of Spring Boot ones

This commit is contained in:
2020-11-17 21:47:14 +01:00
parent 3ef7613e33
commit 13de307d94
5 changed files with 71 additions and 8 deletions

View File

@@ -7,7 +7,7 @@
<parent>
<groupId>de.77zzcx7.financer</groupId>
<artifactId>financer-parent</artifactId>
<version>38-SNAPSHOT<</version>
<version>38-SNAPSHOT</version>
</parent>
<artifactId>financer-web-client</artifactId>
@@ -99,7 +99,34 @@
<finalName>financer</finalName>
</properties>
<build>
<finalName>${finalName}-${deploymentProfile}##${parallelDeploymentVersion}</finalName>
<plugins>
<!--
Skip this as we do not need an executable .war file as we are running it in a standalone Tomcat
-->
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<skip>true</skip>
</configuration>
</plugin>
<!--
Instead, package it as regular .war file but with a classifier so we can have multiple artifacts
of the same version matching the deployment profiles (77zzcx7 Nexus does not allow redeploy of
releases for example)
-->
<plugin>
<artifactId>maven-war-plugin</artifactId>
<configuration>
<classifier>${deploymentProfile}</classifier>
<archive>
<manifest>
<addDefaultImplementationEntries>true</addDefaultImplementationEntries>
</manifest>
</archive>
</configuration>
</plugin>
</plugins>
</build>
<dependencies>
<dependency>