Assuming the following pom.xml maven would build a client.war file which when deployed to Tomcat will have the URL www.server.com:8080/client/
What would one have to change so the application can be reached at the server root www.server.com:8080/?
4.0.0
...
client
war
1.0-SNAPSHOT
...
http://maven.apache.org
target/generated-resources
src/main/resources
true
...
client
...
解决方案
I believe you can leave the war named client.war if you'd like. Then configure the tomcat6 plugin, setting the path like this:
org.apache.tomcat.maven
tomcat6-maven-plugin
2.0-beta-1
/
${project.build.directory}/client.war
I haven't used tomcat7 version of the plugin, but I'm guessing it's similar.