Plugin execution not covered by lifecycle configuration: org.codehaus.mojo:build-helper-maven-plugin:1.9:add-source

项目报错:
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...
115

评论

  1. You're so cute.

  2. Proud of you .

发表评论

电子邮件地址不会被公开。 必填项已用*标注

点击更换