首页 > 其他 > 详细

idea maven项目运行时候刷新JDK版本会变

时间:2020-02-27 15:30:53      阅读:334      评论:0      收藏:0      [点我收藏+]

在pom.xml文件中添加这个配置

<profiles>
<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>
</profiles>
<build>
<plugins>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.1</version>
<configuration>
<fork>true</fork>
<executable>
D:\application\jdk\bin\javac.exe
</executable>
</configuration>
</plugin>
</plugins>
</build>

idea maven项目运行时候刷新JDK版本会变

原文:https://www.cnblogs.com/healthinfo/p/12372279.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!