m2e: Generated code with exec-maven-plugin

后端 未结 2 1195
陌清茗
陌清茗 2021-02-01 05:54

I have been using m2eclipse for 2 years or so and have now switched to m2e.

Unfortunately, this has broken some functionality for me.

In many projects, I have ge

2条回答
  •  终归单人心
    2021-02-01 06:33

    You have to tell M2E that it's okay to run your code generator as part of the Eclipse build:

    
      
         [...]
         
          
            
            
              org.eclipse.m2e
              lifecycle-mapping
              1.0.0
              
                
                  
                    
                      
                        org.codehaus.mojo
                        exec-maven-plugin
                        [,)
                        
                          java
                        
                      
                      
                        
                      
                    
                  
                
              
            
          
        
      
    
    

    Notes:

    1. It's important to put this configuration in the pluginManagement section, not directly under plugins.
    2. This will cause M2E to perform all java executions specified in your POM as part of every Eclipse build. This means they will run often and be a big nuisance if they are slow. I'm not sure how you would get M2E to run some of them and skip others. You'd probably have to place the unwanted executions in profiles.

提交回复
热议问题