The name of the WAR archive file can be important and in Maven & Gradle builds defaults to the artifact + version. However, it can be pre-set to a given name for both Maven and Gradle.
Here is an example Maven pom.xml excerpt, which uses the <warName>attribute to set the name of the WAR archive. This works correctly and the WAR file is built as cics-java-liberty-restapp.war. However, the bundle-war build creates a WAR built using the and elements i.e. cics-java-liberty-restapp-0.1.0.war
The name of the WAR archive file can be important and in Maven & Gradle builds defaults to the artifact + version. However, it can be pre-set to a given name for both Maven and Gradle.
Here is an example Maven pom.xml excerpt, which uses the and elements i.e.
<warName>
attribute to set the name of the WAR archive. This works correctly and the WAR file is built ascics-java-liberty-restapp.war
. However, the bundle-war build creates a WAR built using thecics-java-liberty-restapp-0.1.0.war
A similar problem exists with the Gradle plugin.
This sample repo was used in the above example