#3 Restore parallel deployment stuff
This commit is contained in:
@@ -141,35 +141,7 @@
|
||||
<activeProfiles>postgres,${deploymentProfile}</activeProfiles>
|
||||
</properties>
|
||||
<build>
|
||||
<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>
|
||||
<mainClass>${start-class}</mainClass>
|
||||
<addDefaultImplementationEntries>true</addDefaultImplementationEntries>
|
||||
</manifest>
|
||||
</archive>
|
||||
</configuration>
|
||||
</plugin>
|
||||
</plugins>
|
||||
<finalName>${project.artifactId}-${deploymentProfile}##${parallelDeploymentVersion}</finalName>
|
||||
</build>
|
||||
<dependencies>
|
||||
<dependency>
|
||||
|
||||
@@ -19,6 +19,14 @@
|
||||
<properties>
|
||||
<packaging.type>jar</packaging.type>
|
||||
<activeProfiles>dev</activeProfiles>
|
||||
<!-- Property to define the final name of the build artifact.
|
||||
This used in combination with the build-war profile to change the .war file name
|
||||
to e.g. financer##00004.war so that the application is accessible via the /financer
|
||||
context path once deployed in a standalone servlet container instance. This also enables multiple
|
||||
deployments of the application in the same servlet container just with different context
|
||||
paths. Default is the artifactId, the build-war profile defines its own default.
|
||||
Can be changed at build time via 'mvn ... -DfinalName=financer ...-->
|
||||
<finalName>${project.artifactId}</finalName>
|
||||
<deploymentProfile>mk</deploymentProfile>
|
||||
</properties>
|
||||
|
||||
@@ -91,34 +99,7 @@
|
||||
<finalName>financer</finalName>
|
||||
</properties>
|
||||
<build>
|
||||
<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>
|
||||
<finalName>${finalName}-${deploymentProfile}##${parallelDeploymentVersion}</finalName>
|
||||
</build>
|
||||
<dependencies>
|
||||
<dependency>
|
||||
|
||||
4
pom.xml
4
pom.xml
@@ -23,6 +23,10 @@
|
||||
<maven.compiler.source>1.9</maven.compiler.source>
|
||||
<maven.compiler.target>1.9</maven.compiler.target>
|
||||
<java.version>1.9</java.version>
|
||||
<!-- Property to define the parallel deployment version.
|
||||
See e.g. https://tomcat.apache.org/tomcat-8.5-doc/config/context.html
|
||||
Should be the same as the project.version but padded with zeros to six digits. -->
|
||||
<parallelDeploymentVersion>000041</parallelDeploymentVersion>
|
||||
</properties>
|
||||
|
||||
<modules>
|
||||
|
||||
Reference in New Issue
Block a user