Why Maven project is tied to J2SE-1.5 by default?

前端 未结 3 1169
南笙
南笙 2021-02-07 11:48

If I create default empty based on no archetype Maven project in Eclipse, it will be based on J2SE-1.5.

3条回答
  •  清酒与你
    2021-02-07 12:38

    @axtavt is right, add source level configuration to your project. But do not configure maven-compiler-plugin, simply put this properties into pom.xml.

     
      1.7 
      1.7 
    
    

    After this refresh maven configuration in Eclipse.

提交回复
热议问题