Plugin execution not covered by lifecycle configuration: org.codehaus.mojo:build-helper-maven-plugin:1.9:add-source (execution: add-source, phase: generate-sources解决方法:
解压 eclipse 安装目录下plugins目录下的org.eclipse.m2e.lifecyclemapping.defaults_1.6.2.20150902-0002.jar
提取:lifecycle-mapping-metadata.xml 文件,在此文件相应处添加如下代码
<pluginExecution> <pluginExecutionFilter> <groupId>org.codehaus.mojo</groupId> <artifactId>build-helper-maven-plugin</artifactId> <goals> <goal>add-source</goal> </goals> <versionRange>[1.9,)</versionRange> </pluginExecutionFilter> <action> <ignore /> </action> </pluginExecution>
如上图导入lifecycle-mapping-metadata.xml文件,点击Reload workspace lifecyle mappings metadata,然后重新Maven -> Update Project...
You're so cute.
Proud of you .