pom.xml配置打包格式
<packaging>war</packaging>

在工程主目录下执行
mvn clean install -Dmaven.test.skip=true -Dmaven.javadoc.skip=true

生成位置如下
Maven 打包 项目 war

相关文章: