一次性解决Intellij IDEA maven 自动跳到1.5的JDK


说明:文章学习自:https://blog.csdn.net/Zereao/article/details/77427989

一、找到Setting.xml文件

  打开setting.xml

  说明,该文件位于:{IntelliJIDEA安装目录}\plugins\maven\lib\maven3\conf\settings.xml

 

二、修改profiles节点

<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>  

 

三、完成操作。


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM