I am using Maven as the build file , this is my below settings for the war file name to be generated
I am using Maven version 2.2.1
<artifactId>TataWeb</artifactId>
<packaging>war</packaging>
<version>1.0</version>
So its actually generating a war file with this name TataWeb-1.0
But i want the war file name to be only TataWeb .
Please let me know how can i avoid the version appeneded to the war file name ??
Thank you .
It is possible to include or exclude certain files from the WAR file, by using the <packagingIncludes> and <packagingExcludes> configuration parameters. They each take a comma-separated list of Ant file set patterns.
Overlays are used to share common resources across multiple web applications. The dependencies of a WAR project are collected in WEB-INF/lib , except for WAR artifacts which are overlayed on the WAR project itself.
The Maven WAR plugin is responsible for collecting and compiling all the dependencies, classes, and resources of the web application into a web application archive.
You should use your artifactid, rather than hard-coding the file name.
<build>
<finalName>${project.artifactId}</finalName>
</build>
Just add this to your pom.xml
:
<build>
<finalName>TataWeb</finalName>
</build>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With