Plugin execution not covered by lifecycle configuration error in Eclipse Juno

后端 未结 3 1804
余生分开走
余生分开走 2021-02-07 13:10

Why does my Maven build work perfectly fine on the command line but when I run in Eclipse, it requires I add this section to my pom.xml, otherwise I get this error:

<         


        
3条回答
  •  滥情空心
    2021-02-07 13:27

    1. Help -> Install new Software

      • Install the Groovy Compiler 2.2 / 2.1 Feature

      • Install Groovy-Eclipse M2E integration

    2. Window -> Preferences -> Maven -> Lifecycle Mappings -> Open workspace lifecycle mappings metadata

    Add the following xml:

    
    
        
            
                
                    org.codehaus.gmaven
                    gmaven-plugin
                    [1.3,)
                    
                        compile
                        testCompile
                    
                
                
                    
                
            
        
    
    
    1. Reload the Lifecycle Mappings and invoke a projekt update on your maven project. (ALT+F5)

提交回复
热议问题