如何向 Eclipse/Maven 运行配置添加参数/开关

发布于 2024-09-16 03:12:29 字数 1228 浏览 10 评论 0原文

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

我在 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

How do I add the -e or -X switch to a “Maven Build”configuration?

I have Eclipse (Galileo) with m2eclipse, GWT Eclispe plugin and the GWT Maven plugin from codehaus installed.

I created a new "Maven Build" run configuration in Eclipse and have set the goal to gwt:debug. When I run the configuration I get this error in my console:

[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

How do I add the -e or -X switch to a "Maven Build" configuration?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

小帐篷 2024-09-23 03:12:29

点击项目

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

目标 -> gwt:调试-e -X

运行

Click on the Project

Run As -> Maven build...

Goal -> gwt:debug -e -X

Run

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文