gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-12-02 10:48:52 25 4
gpt4 key购买 nike

我正在尝试使用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>

关于gwt - Maven GWT插件 “failed with status 1”错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9360289/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com