![](/img/trans.png)
[英]Not able to get the application deployed on tomcat8 while using cargo plugin
[英]Debug Tomcat deployed code with cargo plugin
任何人都可以告訴如何使用Cargo(Tomcat)插件調試eclipse中的代碼?
我們在Windows 7操作系統中使用Java 8,Tomcat 8,eclipse Juno。
我要提到的另一件事是,我們無法控制修改Tomcat腳本,因為每次執行mvn -P dev clean package cargo:run
,都會從Nexus存儲庫(或本地repo緩存)中新安裝tomcat。
對於調試Cargo,您可以像這樣配置容器:
<container>
<containerId>tomcat4x</containerId>
<home>c:/apps/jakarta-tomcat-4.1.30</home>
<log>target/cargo.log</log>
<logLevel>debug</logLevel>
</container>
如果要調試容器,請使用以下命令設置JVM:
-Xdebug
-Xrunjdwp:transport=dt_socket,server=y,suspend=<suspend>,address=<port>
-Xnoagent
-Djava.compiler=NONE
有關貨物調試的更多信息,請點擊此處 。
我寫了一篇關於使用集成測試的maven貨物插件的博客文章。 也許它會幫助你。 http://hrabosch.com/2016/06/12/how-to-run-integration-tests-with-cargo-maven-plugin-in-a-separate-container/有Jetty,但你可以改成它tomcat的。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.