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

sdo*_*oca 10 eclipse m2eclipse

我有Eclipse(Galileo)与m2eclipse,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
Run Code Online (Sandbox Code Playgroud)

如何将-e或-X开关添加到"Maven Build"配置?

IAd*_*ter 18

单击项目

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

目标 - > gwt:debug -e -X

  • 看起来明显相反......" - X"不是目标,它是mvn命令的参数. (14认同)