Plugin execution not covered by lifecycle configuration error in Eclipse Juno

后端 未结 3 1763
余生分开走
余生分开走 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:40

    I finally solved it. It appears that the "pluginManagement" section I posted above is required by an Eclipse Maven project in general, even though I resisted it, and even though no documentation that I can find on the internet ever mentions this explicitly.

    ALso, the "versionRange" in the lifecycle exclusion section seems to also require the version number of the "gmaven-plugin" rather than the "version of Maven" which I was trying to give it above.

    
        org.codehaus.gmaven
        gmaven-plugin
        [1.5,)
        
            testCompile
            compile
        
    
    

提交回复
热议问题