maven 报类似 “Plugin execution not covered by lifecycle configuration: org.antlr:antlr3-maven-plugin:3.

Posted Loi

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了maven 报类似 “Plugin execution not covered by lifecycle configuration: org.antlr:antlr3-maven-plugin:3.相关的知识,希望对你有一定的参考价值。

直接在plugins 外层加上 pluginManagement 即可。

 

In my case of a similar problem, instead of using Andrew‘s suggestion for the fix, it worked simply after I introduced <pluginManagement> tag to the pom.xml in question.

It looks like that error is due to a missing <pluginManagement> tag. So, in order to avoid the exceptions in Eclipse, it looks like one needs to simply enclose all the plugin tags inside a <pluginManagement> tag, like so:

<build>
    <pluginManagement>
        <plugins>
            <plugin> ... </plugin>
            <plugin> ... </plugin>
                  ....
        </plugins>
    </pluginManagement>
</build>

Once this structure is in place, the error goes away.

 

 

参考资料:

1、 http://stackoverflow.com/questions/6352208/how-to-solve-plugin-execution-not-covered-by-lifecycle-configuration-for-sprin 

以上是关于maven 报类似 “Plugin execution not covered by lifecycle configuration: org.antlr:antlr3-maven-plugin:3.的主要内容,如果未能解决你的问题,请参考以下文章

maven项目出现红色感叹号报错

maven 编译项目时:报com.sun.image.codec.jpeg不存在

maven编译项目报错了?

maven入门项目报错

maven项目报错 pom

myeclipse创建maven项目后pom文件报错,