1.maven clean :清除target目录下的之前已经打好的jar包或war包; 2.maven build :重新对该maven项目进行打包 转载于:https://www.cnblogs.com/lchzlp/p/11031469.html