Solution to the problem of using M2E to convert a project into a MAVEN project after the Eclipse report plugin execution not covered by lifecycle Configuration:xxx plugin

Source: Internet
Author: User
As you can see from the official documentation http://wiki.eclipse.org/M2E_plugin_execution_not_covered, the best solution is to work with Project Configurator specifically for the plugin,
For example, the Aspectj-maven-plugin used in the project is dedicated to Configurator, and users can use eclipse to find and install it online.
However, some plugins do not correspond to Project Configurator, and we can only configure them manually to tell m2e how to handle the goal of these plugins during eclipse build. The following is a typical configuration: ignores the related goal that perform native2ascii and dependency plugins. You don't have to hand-write this configuration yourself, eclipse can build for you.

	<plugin> <groupId>org.eclipse.m2e</groupId> <artifactid>lifecycle-mapping</artifactid > <version>1.0.0</version> <configuration> <lifecycleMappingMetadata> <pluginexec utions> <pluginExecution> <pluginExecutionFilter> <groupId> org.apache.mave
							N.plugins </groupId> <artifactId> Maven-dependency-plugin </artifactId> <versionRange> [2.1,) </versionRange> <goals> <goal> un
							Pack-dependencies </goal> </goals> </pluginExecutionFilter> <action> <ignore/> </action> </pluginExecution> <pluginExecution> <pluginexec
								utionfilter> <groupId> Org.codehaus.mojo </groupId> <artifactId>
		Native2ascii-maven-plugin					</artifactId> <versionRange> [1.0-alpha-1,) </versionRange> <goals&
								Gt
							<goal>native2ascii</goal> </goals> </pluginExecutionFilter> <action> <ignore/> </action> </pluginExecution> </pluginExecutions> </lifecyclemapp
 Ingmetadata> </configuration> </plugin>


Related Article

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.