step1:右键项目,选择debug as,然后 Debug configurations

step2:先Browse Workspace  选择需要打包的项目 ,然后在Goals:中输入clean install  命令  Debug执行后,会在target目录下生成打的war包

Eclipse打war包

相关文章: