m2e lifecycle-mapping not found

前端 未结 11 768
时光说笑
时光说笑 2020-11-29 00:24

I am trying to use the solution described here to solve the annoying \"Plugin execution not covered by lifecycle configuration: org.codehaus.mojo:build-helper-maven-plugin:1

11条回答
  •  夕颜
    夕颜 (楼主)
    2020-11-29 00:38

    Here's how I do it: I put m2e's lifecycle-mapping plugin in a separate profile instead of the default section. the profile is auto-activated during eclipse builds by presence of a m2e property (instead of manual activation in settings.xml or otherwise). this will handle the m2e cases, while command-line maven will simply skip the profile and the m2e lifecycle-mapping plugin without any warnings, and everybody is happy.

    
      ...
      
        ...
        
          m2e
          
          
            
              m2e.version
            
          
          
            
              
                
                  org.eclipse.m2e
                  lifecycle-mapping
                  1.0.0
                  
                    
                      
                        
                          
                            ...
                            ...
                            [0,)
                            
                              ...
                            
                          
                          
    
                            
    
                            
                            
                              
                              false
                            
    
                            
                            
    
                          
                        
                      
                    
                  
                
              
            
          
        
        ...
      
      ...
    
    

提交回复
热议问题