Maven, life cycle in "maven" eclipse

Source: Internet
Author: User

1. Create a MAVEN project in eclipse
>> configuring Maven in Eclipse:
Configure MAVEN version: Eclips comes with a maven that doesn't normally have this, and chooses the MAVEN that we installed
Configure the Local warehouse: set Settings.xml
>> after you have written pom.xml dependencies in Eclipse, you need to select the project name and then the right-click menu Maven->update Project
>> Select Pom.xml in Eclipse, right-click on Run As->build ...

2. The relationship between Maven life cycle and construction
Order of commands in the life cycle: a b c D E
When we execute the C command, the actual execution is a B C
For example, when we execute the package command in Eclipse, the three commands for compile, test, resources are executed first, and then the Package command is executed.

3 . Phase of life cycle: 3 stages
Clean lifecycle: Cleanup
Pre-clean, clean, Post-clean and other commands
Default lifecycle: Defaults (common, useful)
Compile, install, package, test, test-compile and other commands
Site Lifecycle: Sites
Pre-site, site, Post-site, Site-deploy and other commands

Maven, life cycle in "maven" eclipse

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.