Maven GAE插件 - 无法运行gae:debug

时间:2010-01-31 04:57:13

标签: java google-app-engine maven-2 maven-gae-plugin

我无法运行gae:Maven GAE Plugin的调试目标。我收到的错误如下。有什么想法吗?

我用“mvn gae:debug”运行它。

[INFO] Packaging webapp
[INFO] Assembling webapp[test-gae] in [C:\development\test-gae\target\test-gae-0.0.1-SNAPSHOT]
[INFO] Processing war project
[INFO] Webapp assembled in[56 msecs]
[INFO] Building war: C:\development\test-gae\target\test-gae-0.0.1-SNAPSHOT.war
[INFO] [statemgmt:end-fork]
[INFO] Ending forked execution [fork id: -2101914270]
[INFO] [gae:debug]
Usage: <dev-appserver> [options] <war directory>

Options:
 --help, -h                 Show this help message and exit.
 --server=SERVER            The server to use to determine the latest
  -s SERVER                   SDK version.
 --address=ADDRESS          The address of the interface on the local machine
  -a ADDRESS                  to bind to (or 0.0.0.0 for all interfaces).
 --port=PORT                The port number to bind to on the local machine.
  -p PORT
 --sdk_root=root            Overrides where the SDK is located.
 --disable_update_check     Disable the check for newer SDK versions.

编辑: gae:使用jvmFlags选项运行也会在下面的配置中给出相同的结果。

    <plugin>
        <groupId>net.kindleit</groupId>
        <artifactId>maven-gae-plugin</artifactId>
        <version>0.5.0</version>
        <configuration>
            <jvmFlags>
                <jvmFlag>-Xdebug</jvmFlag>
                <jvmFlag>-Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=8000</jvmFlag>
            </jvmFlags>
        </configuration>
    </plugin>

1 个答案:

答案 0 :(得分:1)

看起来这是一个开放的issue。我已为此提交了一个补丁(请参阅Issue 38)。