一次性解決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