How to eliminate the “maven-enforcer-plugin (goal ”enforce“) is ignored by m2e” warning by eclipse?

后端 未结 6 1949

I am configuring a multi-module parent child maven project using maven and eclipse m2e, I am using the latest stuff from eclipse Juno SR1 which is m2e 1.2.0

the par

6条回答
  •  北荒
    北荒 (楼主)
    2020-12-23 20:14

    Another pitfall exists when having several pluginExecutionFilters. These must be at the right spot in the pom.xml! For me it was gnarly to find as no error or warning of the displacement existed.

    This is the right code for having several pluginExecutionFilters:

    
      
        
          
            org.eclipse.m2e
            lifecycle-mapping
            1.0.0
            
            
                
                    
                        
                            org.apache.maven.plugins
                            maven-enforcer-plugin
                            [1.0.0,)
                            
                               enforce
                            
                        
                        
                    
    
                    
                        
                            com.googlecode.maven-java-formatter-plugin
                            ...
    

提交回复
热议问题