2010-08-26 26 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

相關問題