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

    直接在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 

  • 相关阅读:
    冲刺第九天
    冲刺第八天
    寻找小水王
    冲刺第七天
    冲刺第六天
    冲刺第五天
    寻找水王程序二
    学习进度条(第十二周)
    寻找水王程序一
    学习进度条(第十一周)
  • 原文地址:https://www.cnblogs.com/xunux/p/6670494.html
Copyright © 2011-2022 走看看