Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Plugin execution not covered by lifecycle configuration for maven-plugin-plugin in m2e 1.5.x / Eclipse Luna

After upgrading to Eclipse Luna or to m2e 1.5.x and opening an existing workspace with Maven plugin projects, Eclipse complains that

Plugin execution not covered by lifecycle configuration:
org.apache.maven.plugins:maven-plugin-plugin ...
like image 866
rec Avatar asked Aug 04 '14 12:08

rec


1 Answers

You need to tell m2eclipse how to treat the plugin execution.

If the message is for instance: Plugin execution not covered by lifecycle configuration: org.apache.maven.plugins:maven-plugin-plugin:3.2:descriptor

Use following snippet:

<build>
    <pluginManagement>
        <plugins>
            <plugin>
                <groupId>org.eclipse.m2e</groupId>
                <artifactId>lifecycle-mapping</artifactId>
                <version>1.0.0</version>
                <configuration>
                    <lifecycleMappingMetadata>
                        <pluginExecutions>
                            <pluginExecution>
                                <pluginExecutionFilter>
                                    <groupId>org.apache.maven.plugins</groupId>
                                    <artifactId>maven-plugin-plugin</artifactId>
                                    <versionRange>[3.2,)</versionRange>
                                    <goals>
                                        <goal>descriptor</goal>
                                    </goals>
                                </pluginExecutionFilter>
                                <action>
                                    <ignore />
                                </action>
                            </pluginExecution>
                        </pluginExecutions>
                    </lifecycleMappingMetadata>
                </configuration>
            </plugin>
        </plugins>
    </pluginManagement>
</build>
like image 134
Ondrej Burkert Avatar answered Sep 29 '22 14:09

Ondrej Burkert