Maven Java EE Configuration

前端 未结 12 1335
南方客
南方客 2020-12-08 11:30

In my maven project, I have this Effective POM:




        
12条回答
  •  春和景丽
    2020-12-08 11:46

    GGrec's solution doesn't work for me. I manage to fixed this issue by adding to pom.xml this:

    
         finalName
         
    
            
                maven-compiler-plugin
                3.1
                
                    1.8 
                    1.8 
                
            
    
        
    
    

    UPDATE: In addition I figured out that everytime you run mvn install command on this pom.xml it overrides previous configuration. The right solution is either remove this version from pom.xml and set it up in eclipse options or just use configuration from pom.xml.

提交回复
热议问题