Plugin execution not covered by lifecycle configuration

来源:互联网 发布:淘宝达人电脑端入口 编辑:程序博客网 时间:2024/05/16 01:43

refer:

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

  • https://stackoverflow.com/questions/19432073/plugin-execution-not-covered-by-lifecycle-configuration-error-in-eclipse-with-pl


在Eclipse中,在pom文件中,如果加了 execution,会报错误:

Plugin execution not covered by lifecycle configuration: org.codehaus.mojo:build-helper-maven-plugin:1.5:add-source (execution: add-source, phase: generate-sources)

问题如下:

这里写图片描述

这里写图片描述


具体解决方案是,将plugins包在 pluginManagement 中:

<pluginManagement>    <plugins>       <plugin>       </plugin>    </plugins></pluginManagement>
阅读全文
0 0
原创粉丝点击