我在 Eclipse 中使用 Maven,我想用 Java13 运行我的项目。每次我构建我的项目时,我都会收到以下错误消息:
Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project subscriptionsmanager: Fatal error compiling: invalid target release: 13 -> [Help 1]
我在里面配置了我的 pom.xml 文件<properties>
,如下所示:
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.source>13</maven.compiler.source>
<maven.compiler.target>13</maven.compiler.target>
和 Java13 作为来自 Eclipse“Java 构建路径”部分的 Eclipse 的 JRE。
有没有我没有考虑过的设置?