Skip to content

Commit 26eba36

Browse files
committed
war naming changed to default behaviour, added ability to modify by setting property
1 parent 60243b9 commit 26eba36

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

Diff for: app-war/pom.xml

+2-2
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@
3030
<Ignore-Scanning-Archives>asm-all-repackaged-2.5.0.jar</Ignore-Scanning-Archives>
3131
</manifestEntries>
3232
</archive>
33-
<!-- warName becomes the context of the application, it avoids container specific configuration -->
34-
<warName>${artifactId}</warName>
33+
<!-- Generated warName defaults to ${project.build.finalName}, but can be modified by setting property -Dapp.warName=app-war -->
34+
<warName>${app.warName}</warName>
3535
</configuration>
3636
</plugin>
3737
</plugins>

Diff for: pom.xml

+2
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616
<failBuildOnCVSS>11</failBuildOnCVSS>
1717
<!-- Update every 168 hours (7 days) -->
1818
<cveValidForHours>168</cveValidForHours>
19+
<app.warName>${project.build.finalName}</app.warName>
20+
<web.warName>${project.build.finalName}</web.warName>
1921
</properties>
2022

2123
<name>sample-app-parent</name>

Diff for: web-war/pom.xml

+2-2
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@
3030
<groupId>org.apache.maven.plugins</groupId>
3131
<artifactId>maven-war-plugin</artifactId>
3232
<configuration>
33-
<!-- warName becomes the context of the application, it avoids container specific configuration -->
34-
<warName>${artifactId}</warName>
33+
<!-- Generated warName defaults to ${project.build.finalName}, but can be modified by setting property -Dweb.warName=web-war -->
34+
<warName>${web.warName}</warName>
3535
</configuration>
3636
</plugin>
3737
</plugins>

0 commit comments

Comments
 (0)