10
Tôi có Eclipse (Galileo) với m2eclipse, plugin GWT Eclispe và plugin GWT Maven từ cài đặt codehaus.Cách thêm tham số/công tắc vào Cấu hình chạy Eclipse/Maven
Tôi đã tạo cấu hình chạy "Xây dựng Maven" mới trong Eclipse và đã đặt mục tiêu thành gwt:debug
. Khi tôi chạy cấu hình, tôi gặp lỗi này trong bảng điều khiển của mình:
[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
Làm cách nào để thêm công tắc -e hoặc -X vào cấu hình "Xây dựng Maven"?
Có vẻ rõ ràng bây giờ mà tôi biết làm thế nào xong rôi. Cảm ơn! – sdoca
Dường như ngược lại rõ ràng ... "- X" KHÔNG phải là mục tiêu, nó là một đối số cho lệnh mvn. – Kricket
Trong các phiên bản gần đây của Eclipse, bạn có thể chỉ cần kiểm tra hộp kiểm "Debug Output" trên hộp thoại debug/run configuration, có thêm -X -e để chạy. –