Fix the file name of war to the one set in Maven

When using Maven2, the version is automatically added to the file name of war that is output if it is the default pom.xml.

ex) sampleapp-0.0.0.war

If you want to deploy to tomcat's webapps, it's annoying to have such a file name, so In such a case, add the following settings in pom.xml to fix the file name.

pom.xml


<build>
(Omitted)
     <finalName>sampleapp</finalName>
     <!--↑ Add this line-->
</build>

Recommended Posts

Fix the file name of war to the one set in Maven
Access the war file in the root directory of Tomcat
How to set environment variables in the properties file of Spring boot application
It doesn't respond to the description in .js of the packs file
How to set the IP address and host name of CentOS8
The milliseconds to set in /lib/calendars.properties of Java jre is UTC
Add a time stamp to the JAR file name in Gradle
How to get the length of an audio file in java
How to increment the value of Map in one line in Java
How to set the indent to 2 single-byte spaces in the JAXB implementation of the JDK
The story of forgetting to close a file in Java and failing
Procedure to make the value of the property file visible in Spring Boot
Java-database connection Java-MySQL connection ③-2: How to set CLASSPATH to the build bus of Eclipse (Pleiades All in One) / September 2017
[Order method] Set the order of data in Rails
Set the time of LocalDateTime to a specific time
Rename the package name of the existing jar file
Conditional branching of the result of SQL statement to search only one in Java
How to set the display time to Japan time in Rails
[Java] Check the JDK version of the built war file
Get the name of the test case in the JUnit test class
Understand the characteristics of Scala in 5 minutes (Introduction to Scala)
How to get the class name of the argument of LoggerFactory.getLogger when using SLF4J in Java
How to set the log level to be displayed in the release version of orhanobut / logger
[Rails] How to change the column name of the table
Mandels to create an image of the Mandelbrot set
JavaFX-Specify the location of the CSS file relative to the fxml file
[Java] Get the file in the jar regardless of the environment
[Java] [Maven] Template of pom.xml to register 3rd party jar file in local repository
Set the maximum number of characters in UITextField in RxSwift
How to debug the generated jar file in Eclipse
Sample code to assign a value in a property file to a field of the expected type
Summary of how to use the proxy set in IE when connecting with Java
When I switched to IntelliJ, I got a lot of differences in the encoding of the properties file.
How to specify an array in the return value / argument of the method in the CORBA IDL file
How to get the class name / method name running in Java
How to correctly check the local HTML file in the browser
I want to set the conditions to be displayed in collection_check_boxes
Put the file in the properties of string in spring xml configuration
Change the file name and output destination of the JavaVM error file
Set the time zone in the JVM of your Azure application
Set up Gradle multi-project in IntelliJ to build JAR file
How to derive the last day of the month in Java
How to change the contents of the jar file without decompressing
[Rails] Where to be careful in the description of validation
Set up Multipart Resolver to allow file uploads in Spring
How to change the file name with Xcode (Refactor Rename)
802.1X authentication to the network of Bonding setting in CentOS7
How to create a jar file or war file using the jar command
How to make a jar file with no dependencies in Maven
[Swift] Set the Style of TableViewCell to something other than Custom
How to get the id of PRIMAY KEY auto_incremented in MyBatis
Get the public URL of a private Flickr file in Java
[Java] Returns a Japanese name file in filename of HTTP header
[chown] How to change the owner of a file or directory
Overwrite upload of file with the same name with BOX SDK (java)
I made a tool to output the difference of CSV file
I want to change the value of Attribute in Selenium of Ruby
A fix to prevent the increase in the number of DB connections in the custom authentication provider of the Cognos SDK sample
How to set an image in the drawable Left / Right of a button using an icon font (Iconics)
Add Extended Attributes to the file
SCP transfer War file to Tomcat