Introduce 'fileName' property in POM to enable adjustments of later deployment
This commit is contained in:
11
pom.xml
11
pom.xml
@@ -29,6 +29,14 @@
|
||||
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>000001</parallelDeploymentVersion>
|
||||
<!-- 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>
|
||||
</properties>
|
||||
|
||||
<dependencies>
|
||||
@@ -125,9 +133,10 @@
|
||||
<properties>
|
||||
<packaging.type>war</packaging.type>
|
||||
<activeProfiles>postgres</activeProfiles>
|
||||
<finalName>financer</finalName>
|
||||
</properties>
|
||||
<build>
|
||||
<finalName>${project.artifactId}##${parallelDeploymentVersion}</finalName>
|
||||
<finalName>${finalName}##${parallelDeploymentVersion}</finalName>
|
||||
</build>
|
||||
<dependencies>
|
||||
<dependency>
|
||||
|
||||
Reference in New Issue
Block a user