打包报错,如下:(程序没报错,但打包总是不行)
经过千辛万苦,千锤百炼的试验,终于找到了解决的方法(*@ο@*) 哇~:
1.项目,右键,Run As 或 Debug As---Debug Configurations
2.点击左上角的第一个添加图标,会生成一个Configuration,如:
3.点击选择要打包的项目
4.输入"clean package",然后运行(点击Debug)
5.再次打开这个Configuration,Goals里输入“package”,然后运行,出现如下的提示,则打包成功:
-------------------------------------------------------
T E S T S
-------------------------------------------------------
Results :
Tests run: 0, Failures: 0, Errors: 0, Skipped: 0
[INFO]
[INFO] --- maven-war-plugin:2.2:war (default-war) @ 51ququweb ---
[INFO] Packaging webapp
[INFO] Assembling webapp [51ququweb] in [E:\Workspaces\MyEclipseProfessional2014\51ququweb\target\51ququweb]
[INFO] Processing war project
[INFO] Copying webapp resources [E:\Workspaces\MyEclipseProfessional2014\51ququweb\src\main\webapp]
[INFO] Webapp assembled in [110368 msecs]
[INFO] Building war: E:\Workspaces\MyEclipseProfessional2014\51ququweb\target\51ququweb.war
[INFO] WEB-INF\web.xml already added, skipping
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 02:20 min
[INFO] Finished at: 2016-11-14T14:06:15+08:00
[INFO] Final Memory: 29M/351M
[INFO] ------------------------------------------------------------------------