Maven tips-Eclipse. m2e plug-in running Definition

Source: Internet
Author: User

Eclipse errors may occur when you define the running tasks of Maven plug-ins in the eclipse. m2e environment. This error prompt is annoying for people with no mistakes.

The following code defines the running instructions in lifecycle-mapping of eclipse. m2e to eliminate the error prompt.

 

<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-dependency-plugin </artifactid>
<Versionrange> [1.0.0,) </versionrange>
<Goals>
<Goal> copy-dependencies </goal>
</Goals>
</Pluginexecutionfilter>
<Action>
<Execute>
<Runonincremental> false </runonincremental>
</Execute>
</Action>
</Pluginexecution>
</Pluginexecutions>
</Lifecyclemappingmetadata>
</Configuration>
</Plugin>
</Plugins>
</Pluginmanagement>
<Plugins>
<Plugin>
<Groupid> org. Apache. Maven. plugins </groupid>
<Artifactid> Maven-dependency-plugin </artifactid>
<Executions>
<Execution>
<ID> copy-dependencies </ID>
<Phase> package </phase>
<Goals>
<Goal> copy-dependencies </goal>
</Goals>
<Configuration>
<Outputdirectory >$ {project. Build. Directory}/libs </outputdirectory>
<Excludetransitive> false </excludetransitive>
<Stripversion> true </stripversion>
</Configuration>
</Execution>
</Executions>
</Plugin>
</Plugins>
</Build>

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.