#3 Restore parallel deployment stuff
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user