1

我使用 mvn tomcat7:run 启动我的应用程序及其工作,但是当我使用 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] ------------------------------------------------------------------------

任何帮助表示赞赏!

4

1 回答 1

2

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

于 2013-04-11T12:57:21.677 回答