我有一个使用Java 10的Maven项目,我想在Eclipse光子中对其进行编辑。它或多或少都可以,但是我确实得到了警告:Build path specifies execution environment J2SE-1.5. There are no JREs installed in the workspace that are strictly compatible with this environment.设置java compiler- >JDK compliance level到10在Eclipse项目属性不会删除此警告。这是maven-compiler-plugin的问题吗?我当前正在使用3.7.0版进行配置,如下所示:<plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <configuration> <source>10</source> <target>10</target> <release>10</release> <encoding>UTF-8</encoding> </configuration> <dependencies> <dependency> <groupId>org.ow2.asm</groupId> <artifactId>asm</artifactId> <version>6.2</version> <!-- Use newer version of ASM --> </dependency> </dependencies></plugin>我们将不胜感激有关如何使用Java 10和Eclipse光子配置Maven项目的提示。
添加回答
举报
0/150
提交
取消