There are three ways to do this:
1. If you do not use Eclipse / MyEclipse to deploy the application to the application server -
You need to use the maven-war plugin, you can specify warName in the configuration section.
<plugin>
<artifactId>maven-war-plugin</artifactId>
<version>3.0.0</version>
<configuration>
<warName>customwarname</warName>
</configuration>
</plugin>
2. Eclipse/MyEclipse -
eclipse eclipse, maven.
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-eclipse-plugin</artifactId>
<version>2.10</version>
<configuration>
<wtpversion>2.0</wtpversion>
<wtpContextName>customwarname</wtpContextName>
</configuration>
</plugin>
eclipse.
mvn eclipse:eclipse -Dwtpversion=2.0
Eclipse, , Properties- > Web, , .
, m2eclipse, .
3. :
, , URL- .