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
|
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. -->
|
Should be the same as the project.version but padded with zeros to six digits. -->
|
||||||
<parallelDeploymentVersion>000001</parallelDeploymentVersion>
|
<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>
|
</properties>
|
||||||
|
|
||||||
<dependencies>
|
<dependencies>
|
||||||
@@ -125,9 +133,10 @@
|
|||||||
<properties>
|
<properties>
|
||||||
<packaging.type>war</packaging.type>
|
<packaging.type>war</packaging.type>
|
||||||
<activeProfiles>postgres</activeProfiles>
|
<activeProfiles>postgres</activeProfiles>
|
||||||
|
<finalName>financer</finalName>
|
||||||
</properties>
|
</properties>
|
||||||
<build>
|
<build>
|
||||||
<finalName>${project.artifactId}##${parallelDeploymentVersion}</finalName>
|
<finalName>${finalName}##${parallelDeploymentVersion}</finalName>
|
||||||
</build>
|
</build>
|
||||||
<dependencies>
|
<dependencies>
|
||||||
<dependency>
|
<dependency>
|
||||||
|
|||||||
@@ -1,2 +1,4 @@
|
|||||||
# Hibernate
|
# Hibernate
|
||||||
spring.jpa.show-sql=true
|
spring.jpa.show-sql=true
|
||||||
|
|
||||||
|
financer.serverUrl=http://localhost:8089/financer-server/
|
||||||
@@ -5,6 +5,9 @@
|
|||||||
|
|
||||||
spring.profiles.active=@activeProfiles@
|
spring.profiles.active=@activeProfiles@
|
||||||
|
|
||||||
|
# This properties are just for the embedded Tomcat used while developing
|
||||||
|
# In a standalone servlet container instance the context path is usually defined by the name
|
||||||
|
# of the .war file. See property 'finalName' in the POM for more info.
|
||||||
server.servlet.context-path=/financer-web-client
|
server.servlet.context-path=/financer-web-client
|
||||||
server.port=8090
|
server.port=8090
|
||||||
|
|
||||||
@@ -20,6 +23,6 @@ logging.file=financer-web-client.log
|
|||||||
# The date format of the client-supplied date string, used to parse the string into a proper object
|
# The date format of the client-supplied date string, used to parse the string into a proper object
|
||||||
financer.dateFormat=dd.MM.yyyy
|
financer.dateFormat=dd.MM.yyyy
|
||||||
financer.version=@project.version@
|
financer.version=@project.version@
|
||||||
financer.serverUrl=http://localhost:8089/financer-server/
|
financer.serverUrl=http://localhost:8080/financer-server/
|
||||||
|
|
||||||
spring.messages.basename=i18n/message
|
spring.messages.basename=i18n/message
|
||||||
Reference in New Issue
Block a user