maven导入eclipse工程,设置默认jdk

参考:http://jingyan.baidu.com/article/84b4f565efc39e60f7da326b.html


修改maven工程下:conf/setting.xml

<profile>  
    <id>jdk-1.7</id>  
     <activation>  
          <activeByDefault>true</activeByDefault>  
          <jdk>1.7</jdk>  
      </activation>  
<properties>  
<maven.compiler.source>1.7</maven.compiler.source>  
<maven.compiler.target>1.7</maven.compiler.target>  
<maven.compiler.compilerVersion>1.7</maven.compiler.compilerVersion>  
</properties>  
</profile>   

保存,刷新项目

猜你喜欢

转载自blog.csdn.net/jiangxuexuanshuang/article/details/51931243