2010-08-26 105 views
10

我有Eclipse(伽利略)m2eclipse,GWT Eclispe插件和安装codehaus的GWT Maven插件。如何添加参数/开关到Eclipse/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 

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

回答

18

单击该项目

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

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

运行

+0

似乎是显而易见的,现在我知道如何完成。谢谢! – sdoca 2010-08-30 17:04:21

+14

看起来很明显......“ - X”不是目标,它是mvn命令的一个参数。 – Kricket 2012-07-04 12:26:38

+0

在最新版本的Eclipse中,只需选中调试/运行配置对话框上的“调试输出”复选框,即可将-X -e添加到您的运行中。 – 2017-04-27 20:52:56