标签: cargo-maven2-plugin

本地调试应用程序在tomcat上启动,货物在IntelliJ中

我正在尝试在我的货物配置中启用调试.我正在使用具有以下配置的cargo-maven2-plugin版本1.4.19.

<plugins>
  <plugin>
    <groupId>org.codehaus.cargo</groupId>
    <artifactId>cargo-maven2-plugin</artifactId>
    <version>1.4.19</version>
    <configuration>
      <container>
        <containerId>tomcat8x</containerId>
      </container>
      <configuration>
        <type>standalone</type>
        <properties>
        <cargo.servlet.port>8080</cargo.servlet.port>
        <cargo.jvmargs>
          -Xmx2048m
          -Xms512m
          -Xdebug
          -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=63342
          -Xnoagent
          -Djava.compiler=NONE
        </cargo.jvmargs>
      </properties>
    </configuration>
    <deployer>
    </deployer>
    <deployables>
      <deployable type="war" file="target/spa.war"></deployable>
      </deployables>
    </configuration>
  </plugin>
Run Code Online (Sandbox Code Playgroud)

应用程序使用此配置启动,但IntelliJ从不连接到JVM以启用debuging.如何使IntelliJ连接到JVM?

java tomcat intellij-idea cargo cargo-maven2-plugin

7
推荐指数
1
解决办法
2715
查看次数

标签 统计

cargo ×1

cargo-maven2-plugin ×1

intellij-idea ×1

java ×1

tomcat ×1