gwt - Maven GWT插件 “failed with status 1”错误

我正在尝试使用gwt-maven-plugin设置GWT项目,但努力做到这一点。
已经解决了有关m2eclispe和生命周期的问题,但是由于Maven报告任务状态为1失败,因此在构建过程中遇到了错误。我们将提出任何建议。

Command [[
/bin/sh -c /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/bin/java 
-Xmx512m 
-classpath 
/Users/jdoe/Documents/gwt-nesstarvester/src/main/java
:/Users/jdoe/Documents/gwt-nesstarvester/target/generated-sources/gwt
:/Users/jdoe/Documents/gwt-nesstarvester/src/main/resources
:/Users/jdoe/Documents/gwt-nesstarvester/target/gwt-nesstarvester-1.0-SNAPSHOT/WEB-INF/classes
:/Users/jdoe/.m2/repository/com/google/gwt/gwt-user/2.4.0/gwt-user-2.4.0.jar
:/Users/jdoe/.m2/repository/com/google/gwt/gwt-user/2.4.0/gwt-user-2.4.0.jar
:/Users/jdoe/.m2/repository/javax/validation/validation-api/1.0.0.GA/validation-api-1.0.0.GA.jar
:/Users/jdoe/.m2/repository/javax/validation/validation-api/1.0.0.GA/validation-api-1.0.0.GA-sources.jar
:/Users/jdoe/.m2/repository/com/google/gwt/gwt-dev/2.4.0/gwt-dev-2.4.0.jar com.google.gwt.dev.Compiler 
-gen /Users/jdoe/Documents/gwt-nesstarvester/target/.generated 
-logLevel INFO 
-style OBF 
-war /Users/jdoe/Documents/gwt-nesstarvester/target/gwt-nesstarvester-1.0-SNAPSHOT 
-localWorkers 8 
org.openmetadata.gwt.nesstarvester.nesstarvester
]] 
failed with status 1 (org.codehaus.mojo:gwt-maven-plugin:2.4.0:compile:default:prepare-package)

最佳答案

在我的情况下,我尝试使用JDK 1.8构建项目,同时在pom.xml中使用1.7。由于某种原因,它不向后兼容,因此我不得不将其更改为完全匹配:

<maven.compiler.source>1.8</maven.compiler.source>

https://stackoverflow.com/questions/9360289/

相关文章:

iphone - iPhone openssl无法编译

c# - 仅当从网络驱动器进行编译时,编译问题[“Root activity type is inv

VBA:在 Excel 中创建宏 - 编译错误 -- 'Sub or function is not

eclipse - Eclipse无法解决传递依赖项目?

android - Android : How to tell where an error is

compiler-errors - libdft_api.h :36:25: fatal error

visual-studio-code - 如何更改 VS Code 设置以使用 JetBrains

gcc - 使用gcc 4.6在内核3.0上编译LLVM 2.9的gcc 4.2

gcc - 交叉 mingw 编译因未知伪操作而失败

compilation - 在 CentOS 6.0 上编译单声道时 undefined refer