1
我使用MVN tomcat7開始我的應用程序:運行和工作,但是當我使用MVN tomcat7:關機停止它的展示搭建成功,但嵌入式Tomcat沒有關閉 我得到這樣的結果行家tomcat7:關機
[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] ------------------------------------------------------------------------
任何幫助讚賞!
感謝您的回答! 但在這種情況下,我可以使用關機目標? –
如果您在執行測試後分叉運行mojo,請使用shutdown。 –
但是當我在fork模式下運行插件時,在線程「hudson initialization thread」中得到此錯誤異常java.lang.NoClassDefFoundError:hudson/util/HudsonFailedToLoad at hudson.WebAppMain $ 2.run(WebAppMain.java:234) :拋出java.lang.ClassNotFoundException:hudson.util.HudsonFailedToLoad在org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoa der.java:1713) 在org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoa DER .java:1558) ... 1更多 –