maven tomcat7:shutdown

时间:2013-04-10 09:15:06

标签: tomcat7 maven-tomcat-plugin embedded-tomcat-7

我使用mvn tomcat7启动我的应用程序:运行它的工作但是当我使用mvn tomcat7:shutdown来阻止它显示构建成功但嵌入式tomcat没有关闭 我得到了这个结果

[INFO] Scanning for projects...
[WARNING]
[WARNING] Some problems were encountered while building the effective model for
com.xxx.yy.ci:ci:war:1.0.0
[WARNING] 'build.plugins.plugin.(groupId:artifactId)' must be unique but found d
uplicate declaration of plugin org.apache.maven.plugins:maven-dependency-plugin
@ line 95, column 12
[WARNING]
[WARNING] It is highly recommended to fix these problems because they threaten t
he stability of your build.
[WARNING]
[WARNING] For this reason, future Maven versions might no longer support buildin
g such malformed projects.
[WARNING]
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building CI Web Application 1.0.0
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- tomcat7-maven-plugin:2.0:shutdown (default-cli) @ ci ---
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 6.391s
[INFO] Finished at: Wed Apr 10 14:32:04 IST 2013
[INFO] Final Memory: 6M/15M
[INFO] ------------------------------------------------------------------------

任何帮助表示赞赏!

1 个答案:

答案 0 :(得分:2)

mvn tomcat7:运行需要使用ctrl + c关闭,因为它附加到当前的maven运行。 所以你不需要使用关机目标。 也许我错过了什么?