Compiling Java 7 code via Maven

前端 未结 18 1436
夕颜
夕颜 2020-12-04 07:10

My pom file lists


  
    
        
            
                

        
18条回答
  •  無奈伤痛
    2020-12-04 08:03

    Try to change Java compiler settings in Properties in Eclipse-

    Goto: Preferences->Java->Compiler->Compiler Compliance Level-> 1.7 Apply Ok

    Restart IDE.

    Confirm Compiler setting for project- Goto: Project Properties->Java Compiler-> Uncheck(Use Compliance from execution environment 'JavaSE-1.6' on the java Build path.) and select 1.7 from the dropdown. (Ignore if already 1.7)

    Restart IDE.

    If still the problem persist- Run individual test cases using command in terminal-

    mvn -Dtest= test
    

提交回复
热议问题