Maven Java EE Configuration

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

In my maven project, I have this Effective POM:




        
12条回答
  •  南方客
    南方客 (楼主)
    2020-12-08 11:47

    The above suggests is helpful for me! Right click on project -> Properties -> Project Facets, then change the Java facets version to 1.7.

    If it doesn't work, add the following code to pom.xml:

    
        finalName
        
            
                org.apache.maven.plugins
                maven-compiler-plugin
                3.1
                
                    1.7 
                    1.7 
                
            
        
    
    

    Save pom.xml.

    And then, right click on project-->Maven-->Update Project.

提交回复
热议问题