修改maven 的默認jdk版本解決導入maven 項目出現錯誤

導入其餘maven項目有時候會出現錯誤,說明使用jdk不匹配目前的,或者報錯maven

能夠有其餘方式解決或者不理,可是仍是很差看.net

最有效的方式是在 maven 配置文件裏面進行說明blog

http://blog.csdn.net/kqygww/article/details/12922135get

 

  1. <profile>  
  2.     <id>jdk17</id>  
  3.     <activation>  
  4.         <activeByDefault>true</activeByDefault>  
  5.         <jdk>1.7</jdk>  
  6.     </activation>  
  7.     <properties>  
  8.         <maven.compiler.source>1.7</maven.compiler.source>  
  9.         <maven.compiler.target>1.7</maven.compiler.target>  
  10.         <maven.compiler.compilerVersion>1.7</maven.compiler.compilerVersion>  
  11.     </properties>   
  12. </profile>  

相關文章
相關標籤/搜索