假设以下pom.xml
maven 将构建一个client.war
文件,该文件在部署到 Tomcat 时将具有 URLwww.server.com:8080/client/
必须进行哪些更改才能在服务器根目录访问应用程序www.server.com:8080/
?
<project> <modelVersion>4.0.0</modelVersion> <groupId>...</groupId> <artifactId>client</artifactId> <packaging>war</packaging> <version>1.0-SNAPSHOT</version> <name>...</name> <url>http://maven.apache.org</url> <build> <resources> <resource> <directory>target/generated-resources</directory> </resource> <resource> <directory>src/main/resources</directory> <filtering>true</filtering> </resource> </resources> <plugins> ... </plugins> <finalName>client</finalName> </build> ... </project>