using eclipse showing error plugin execution not covered by lifecycle configuration: | Community
Skip to main content
JakeCham
Level 6
July 9, 2024
Solved

using eclipse showing error plugin execution not covered by lifecycle configuration:

  • July 9, 2024
  • 3 replies
  • 2224 views

Hi Team,

 

I'm encountering "plugin execution not covered by lifecycle configuration:org.apache.maven-toolchain-plugin:1.1 toolchain(execution: default, phase: validate)" while on eclipse ...

Any idea how to resolve this ? tried to maven-> update but issue is still there 

 

Thanks in advance! 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by TarunKumar

Hi @jakecham ,

The error might be coming from any update in pom.xml file. Can you try to add maven life cycle plugin and then include the metadata information in that:

<build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <version>3.1</version> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-war-plugin</artifactId> <version>2.6</version> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-toolchains-plugin</artifactId> <version>1.1</version> <executions> <execution> <goals> <goal>toolchain</goal> </goals> </execution> </executions> <configuration> <toolchains> <jdk> <version>1.6</version> <vendor>sun</vendor> </jdk> </toolchains> </configuration> </plugin> </plugins> <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-toolchains-plugin </artifactId> <versionRange> [1.1,) </versionRange> <goals> <goal>toolchain</goal> </goals> </pluginExecutionFilter> <action> <ignore></ignore> </action> </pluginExecution> </pluginExecutions> </lifecycleMappingMetadata> </configuration> </plugin> </plugins> </pluginManagement> </build>

 

 

-Tarun

 

3 replies

TarunKumar
Community Advisor
TarunKumarCommunity AdvisorAccepted solution
Community Advisor
July 9, 2024

Hi @jakecham ,

The error might be coming from any update in pom.xml file. Can you try to add maven life cycle plugin and then include the metadata information in that:

<build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <version>3.1</version> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-war-plugin</artifactId> <version>2.6</version> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-toolchains-plugin</artifactId> <version>1.1</version> <executions> <execution> <goals> <goal>toolchain</goal> </goals> </execution> </executions> <configuration> <toolchains> <jdk> <version>1.6</version> <vendor>sun</vendor> </jdk> </toolchains> </configuration> </plugin> </plugins> <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-toolchains-plugin </artifactId> <versionRange> [1.1,) </versionRange> <goals> <goal>toolchain</goal> </goals> </pluginExecutionFilter> <action> <ignore></ignore> </action> </pluginExecution> </pluginExecutions> </lifecycleMappingMetadata> </configuration> </plugin> </plugins> </pluginManagement> </build>

 

 

-Tarun

 

kautuk_sahni
Community Manager
Community Manager
July 16, 2024

@jakecham Did you find the suggestion helpful? Please let us know if you require more information. Otherwise, please mark the answer as correct for posterity. If you've discovered a solution yourself, we would appreciate it if you could share it with the community. Thank you!

Kautuk Sahni
December 16, 2024

I believe using a recent version of Eclipse will not show that warning any more.

 

In release v2.6.0 (21th February 2024) of m2e-core "the `maven-toolchains-plugin` is now disabled by default for workspace builds."

 

-Robin