![](/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.