In this article, we will investigate various possibilities to suppress/resolve “Plugin execution not covered by lifecycle configuration” error
1. Plugin execution not covered by lifecycle configuration:
After configuring/installing Maven with Eclipse IDE, you may still get some issues –> one such issue is “Plugin execution not covered by lifecycle configuration”
2. Solution:
There are two ways available to fix this issue
- Ignore plugin
- Add this plugin to Lifecycle Mapping
2.1 Ignore Plugin:
Add below <pluginManagement> under <build> tag in the same pom.xml
For our example,
- groupId –> org.jvnet.jax-ws-commons
- artifactId –> jaxws-maven-plugin
- versionRange –> [1.0.0,)
- goal –> wsimport
Note: Above parameters changes according to the plugin, for which it throws this error
pom.xml (partial)
<pluginManagement>
<plugins>
<plugin>
<groupId>org.eclipse.m2e</groupId>
<artifactId>lifecycle-mapping</artifactId>
<version>1.0.0</version>
<configuration>
<lifecycleMappingMetadata>
<pluginExecutions>
<pluginExecution>
<pluginExecutionFilter>
<groupId>org.jvnet.jax-ws-commons</groupId>
<artifactId>jaxws-maven-plugin</artifactId>
<versionRange>[1.0.0,)</versionRange>
<goals>
<goal>wsimport</goal>
</goals>
</pluginExecutionFilter>
<action>
<execute>
<runOnIncremental>false</runOnIncremental>
</execute>
</action>
</pluginExecution>
</pluginExecutions>
</lifecycleMappingMetadata>
</configuration>
</plugin>
</plugins>
</pluginManagement>
2.2 Add this plugin to Lifecycle Mapping
Another way is to add this particular plugin to “Lifecycle Mapping” of Maven
- Step 1: Open Eclipse –> Windows –> Preferences
- Step 2: Go to Maven –> Lifecycle Mappings
- And then Click “Open workspace lifecycle mappings metadata” –> which will open “lifecycle-mapping-metadata.xml” file in Eclipse editor
- Step 3: Add below XML chunk to this file –> save the file
- Finally click “Reload workspace lifecycle mappings metadata” to take effect of new changes in the working environment
pom.xml (partial)
<pluginExecution>
<pluginExecutionFilter>
<groupId>org.jvnet.jax-ws-commons</groupId>
<artifactId>jaxws-maven-plugin</artifactId>
<goals>
<goal>wsimport</goal>
</goals>
<versionRange>[0.0,)</versionRange>
</pluginExecutionFilter>
<action>
<ignore />
</action>
</pluginExecution>
Again this is specific to “wsimport” goal and it may vary depending on the plugins configured for our business requirements
3. Useful Eclipse IDE shortcuts :
- Eclipse IDE – How to show line numbers ?
- Eclipse IDE – How to GO TO any line number directly ?
- Eclipse IDE – How to remove unused imports ?
- Eclipse IDE – How to clean project ?
- Eclipse IDE – How to build Java project automatically ?
- Eclipse IDE – How to comment and un-comment line & block ?
- Eclipse IDE – How to generate constructor using fields ?
- Eclipse IDE – How to generate getters and setters ?
- Eclipse IDE – How to search files ?
- Eclipse IDE – How to locate methods in Java file ?
- Eclipse IDE – How to open editor using CTRL + E ?
- Eclipse IDE – Java compiler compliance level issue
Related Articles:
- Eclipse + Maven – Integration
- Eclipse + Maven – How to import Maven project with pom.xml ?
- Eclipse + Maven – Setting M2_REPO classpath variable in IDE
- Eclipse + Maven – M2_REPO is Non Modifiable
- Eclipse + Maven – Creating and exploring projects using archetypes
- Eclipse + Maven – Converting Web project to Maven project
- Eclipse + Maven – mvn eclipse:eclipse command
- Eclipse + Maven – Plugin execution not covered by lifecycle configuration
- Apache Maven – Introduction
- Apache Maven – Install on Windows 7 OS
- Apache Maven – Settings.xml explanation
- Apache Maven – Proxy setting explanation
- Apache Maven – pom.xml explanation
- Apache Maven – Plugins explanation
- Apache Maven – Changing default Maven repository location in Windows 7 OS
- Apache Maven – Local, Central and Remote Repositories
- Apache Maven – Installing custom library into local repository
- Apache Maven – Transitive dependencies explanation
- Apache Maven – Exclusion of Transitive dependencies
- Apache Maven – Dependency Scopes
- Apache Maven – Skipping unit test using surefire plugin
- Apache Maven – Exclusions and Inclusions of unit test
- Apache Maven – offline execution
- Apache Maven – Co-ordinates explained
References:
- http://wiki.eclipse.org/M2E_plugin_execution_not_covered
- https://www.eclipse.org/m2e/documentation/m2e-execution-not-covered.html
- http://www.myeclipseide.com/PNphpBB2-viewtopic-t-29778.html
- https://www.benchresources.net/metro-jax-ws-soap-based-web-service-using-top-down-approach
Happy Coding !!
Happy Learning !!