maven工程通过命令打包

dos下cd到pom.xml所在的目录,输入maven命令:mvn clean package,回车即可。 会打成一个.war包在target文件夹下。
原文地址:https://www.cnblogs.com/kzfy/p/5280350.html