首页 > 其他 > 详细

maven 报类似 “Plugin execution not covered by lifecycle configuration: org.antlr:antlr3-maven-plugin:3.4:antlr (execution: default, phase: generate-sources)” 错误 的解决方案

时间:2017-04-05 21:55:05      阅读:599      评论:0      收藏:0      [点我收藏+]

直接在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.4:antlr (execution: default, phase: generate-sources)” 错误 的解决方案

原文:http://www.cnblogs.com/xunux/p/6670494.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!