eclipse - 如何将参数/开关添加到Eclipse/Maven Run Configuration

标签 eclipse m2eclipse

我安装了带有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

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

最佳答案

点击项目

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

目标-> gwt:debug -e -X

运行

关于eclipse - 如何将参数/开关添加到Eclipse/Maven Run Configuration,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3576816/

相关文章:

java - 安装 Google App Engine 插件后 Eclipse 3.5 缺少新的 Web 应用程序选项

eclipse - 为什么eclipse无法为hbase导入软件包?

java - 哪个M2Eclipse

m2eclipse - maven-war-plugin 错误 : Failed to copy file for artifact 的解决方法

eclipse - 如何在 m2eclipse 中导入替代的 pom.xml 文件

java - 在 Eclipse GWT 中调试

java - 我如何知道 eclipse 使用的编译器版本?

java - 为什么当我在另一台计算机上加载我的工作区时 Eclipse 显示错误?

eclipse - Eclipse 中带有 Profile 的多模块 Maven 无法解决对子项的依赖

eclipse - Maven - 在 Eclipse 中禁止覆盖托管版本警告