【问题标题】:How to add parameters/switches to Eclipse/Maven Run Configuration如何向 Eclipse/Maven 运行配置添加参数/开关
【发布时间】:2010-08-26 15:45:32
【问题描述】:

我安装了带有 m2eclipse、GWT Eclispe 插件和 codehaus 的 GWT Maven 插件的 Eclipse (Galileo)。

我在 Eclipse 中创建了一个新的“Maven Build”运行配置,并将目标设置为gwt:debug。当我运行配置时,我在控制台中收到此错误:

[ERROR] Failed to execute goal org.codehaus.mojo:gwt-maven-plugin:1.2:debug (default-cli) on project GWTExample: Command [[
C:\Java\jdk1.6.0_18\jre\bin\java -Xmx512m -Xdebug -Xnoagent -Djava.compiler=NONE     -Xrunjdwp:transport=dt_socket,server=y,address=8000,suspend=y -classpath 
...
<snip>
...
com.google.gwt.dev.DevMode -war "C:\Devel\EclipseProjects\GWTExample\war" -gen 
"C:\Devel\EclipseProjects\GWTExample\target\.generated" -logLevel INFO -port 8888
-startupUrl "my.test.Application/Application.html" my.test.Application
]] failed with status 1
-> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException

如何将 -e 或 -X 开关添加到“Maven 构建”配置?

【问题讨论】:

    标签: eclipse m2eclipse


    【解决方案1】:

    点击项目

    运行方式 -> Maven 构建...

    目标 -> gwt:debug -e -X

    运行

    【讨论】:

    • 似乎与明显相反......“-X”不是目标,它是 mvn 命令的参数。
    • 在最新版本的 Eclipse 中,您可以简单地选中调试/运行配置对话框中的“调试输出”复选框,这会将 -X -e 添加到您的运行中。
    猜你喜欢
    • 2013-01-02
    • 1970-01-01
    • 2011-10-14
    • 1970-01-01
    • 2014-08-21
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-07-04
    相关资源
    最近更新 更多