【发布时间】:2020-03-24 22:09:04
【问题描述】:
启动应用时出现以下错误:
Error:
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2.091 s
[INFO] Finished at: 2019-11-29T09:36:53Z
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.0:compile (default-compile) on project dbproxy: Fatal error compiling: error: invalid target release: 13.0.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
Makefile:53: recipe for target '/root/hue/desktop/libs/librdbms/java-lib/dbproxy-1.0.jar' failed
make[2]: *** [/root/hue/desktop/libs/librdbms/java-lib/dbproxy-1.0.jar] Error 1
make[2]: Leaving directory '/root/hue/desktop/libs/librdbms'
Makefile:106: recipe for target '.recursive-env-install/libs/librdbms' failed
make[1]: *** [.recursive-env-install/libs/librdbms] Error 2
make[1]: Leaving directory '/root/hue/desktop'``
Makefile:148: recipe for target 'desktop' failed
make: *** [desktop] Error 2
mvn --version 阿帕奇 Maven 3.6.0 Maven 主页:/usr/share/maven Java 版本:13.0.1,供应商:Oracle Corporation,运行时:/usr/local/java 默认语言环境:en,平台编码:UTF-8 操作系统名称:“linux”,版本:“4.15.0-52-generic”,arch:“amd64”,家族:“unix”
openjdk 13.0.1 2019-10-15 OpenJDK 运行时环境(内部版本 13.0.1+9) OpenJDK 64-Bit Server VM(build 13.0.1+9,混合模式,共享)
请帮我解决问题。
【问题讨论】:
-
您是否要编译为 Java 13?您的目标
pom.xml中的 Java 版本是什么? -
我们需要将此行增加到 13 吗? github.com/cloudera/hue/blob/master/maven/pom.xml#L41 请随时发送拉取请求
标签: java maven-plugin hue