在Maven根目录中conf文件夹下setting.xml文件中加入如下代码:
<profile>
<id>jdk-1.8</id>
<activation>
<activeByDefault>true</activeByDefault>
<jdk>1.8</jdk>
</activation>
<properties>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
<maven.compiler.compilerVersion>1.8</maven.compiler.compilerVersion>
</properties>
</profile>
原文地址:https://www.cnblogs.com/sealwarm/p/10089828.html
时间: 2024-10-10 09:39:23