I am building a webapplication with maven
. I want to change the name of the generated warfile to get a different context path.
To clarify misunderstandings: It is not about changing the name during development, it should be possible without touching any code (e.g. for customers). Also it should be possible to deploy those war on different servers (like WildFly, Tomcat etc.).
Example:
Hello.war
= Hello.war -> URL: localhost:8080/Hello
stupid.war
= stupid.war -> URL: localhost:8080/stupid
How can I achieve this? Is that even possible?