How to solve the plugin execution not covered by lifecycle configuration: XXX plugin problem after converting the project to Maven project using m2e

Source: Internet
Author: User
From the official documentation http://wiki.eclipse.org/M2E_plugin_execution_not_covered, you can understand that the best solution is to hand over to the project aggregator dedicated to the plug-in for processing,
For example, the aspectj-Maven-plugin commonly used in the project uses a dedicated aggregator. You can use eclipse for online search and installation.
However, some plug-ins do not correspond to the project aggregator. At this time, we can only manually configure them to tell m2e how to handle the goal of these plug-ins during eclipse build. the following is a typical configuration: Ignore the goal related to the native2ascii and dependency plug-ins. you don't have to manually write this configuration. eclipse can generate it for you.

<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-dependency-plugin</artifactId><versionRange>[2.1,)</versionRange><goals><goal>unpack-dependencies</goal></goals></pluginExecutionFilter><action><ignore/></action></pluginExecution><pluginExecution><pluginExecutionFilter><groupId>org.codehaus.mojo</groupId><artifactId>native2ascii-maven-plugin</artifactId><versionRange>[1.0-alpha-1,)</versionRange><goals><goal>native2ascii</goal></goals></pluginExecutionFilter><action><ignore/></action></pluginExecution></pluginExecutions></lifecycleMappingMetadata></configuration></plugin>

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.