Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/364.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java 无法在项目dbproxy上执行目标org.apache.maven.plugins:maven编译器plugin:3.0:compile(默认编译):_Java_Maven Plugin_Hue - Fatal编程技术网

Java 无法在项目dbproxy上执行目标org.apache.maven.plugins:maven编译器plugin:3.0:compile(默认编译):

Java 无法在项目dbproxy上执行目标org.apache.maven.plugins:maven编译器plugin:3.0:compile(默认编译):,java,maven-plugin,hue,Java,Maven Plugin,Hue,启动应用程序时,我遇到以下错误: Error: [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 2.091 s [INFO] Finished at: 2019-11-29T09:36:53Z [INFO] ------------------------------------------------

启动应用程序时,我遇到以下错误:

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——版本 ApacheMaven 3.6.0 Maven home:/usr/share/Maven Java版本:13.0.1,供应商:Oracle公司,运行时:/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位服务器虚拟机(构建13.0.1+9,混合模式,共享)

请帮助我解决此问题。

您的错误显示

编译时出现致命错误:错误:无效的目标版本:13.0.1

您正在使用
maven编译器插件
3.0,但至少需要3.8才能使用java13。这可以用<代码> <代码>标签进行,尽管您可能应该考虑将Maven更新为3.5:

<plugin>
    <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-compiler-plugin</artifactId>
    <version>3.8.0</version>
    <configuration>
        <source>13</source>
        <target>13</target>
    </configuration>
</plugin>

org.apache.maven.plugins

查看使用Java 13还需要什么。

您是否正在尝试编译为Java 13?您的
pom.xml
中的Java版本是什么?我们需要将这一行增加到13吗?请随时发送拉取请求