我在IntelliJ中有一个简单的Maven Java项目。我在我的项目中使用Java 8,并将语言级别设置为8,为什么maven重新导入将语言级别设置为5?如何避免这种情况?
发布于 2019-11-28 06:02:01
在项目pom.xml中显式地将Java设置为1.8,如下所示
<properties>
<maven.compiler.target>1.8</maven.compiler.target>
<maven.compiler.source>1.8</maven.compiler.source>
</properties>https://stackoverflow.com/questions/59082531
复制相似问题