我正在尝试使用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)
答案 0 :(得分:0)
在我的情况下,我试图用JDK 1.8构建项目,而pom.xml
中有1.7。出于某种原因,它不是后向兼容的,所以我不得不将其更改为完全匹配:
<maven.compiler.source>1.8</maven.compiler.source>