23333 is also a water article (the following are various copies of the MAVEN into Eclipse project)

Source: Internet
Author: User

Reproduced

When we build a MAVEN project structure through a template (like the simplest maven-archetype-quikstart plugin), how do we convert it into Eclipse-supported Java project?

1. Navigate to the Maven root directory (this directory must have Pom.xml).

2. Use the MAVEN command MVN eclipse:eclipse (Shift-click the right mouse button to open the input MAVEN command with the command line)

3. Go to the root directory and you will find the familiar two files automatically generated:. Classpath and. Project.

4. Open Eclipse, locate the project path, and import

------------------------------------------------? (^∇^*)---------------------------------------------------

Maven Common Commands

Build purge Eclipse Project structure:
MVN Eclipse:eclipse
MVN Eclipse:clean

Clean up (delete compiled content under target directory)
MVN clean

Package Web page files only
MVN war:exploded

Compiling the project
MVN Compile

Package release
MVN Package

Skip Test when packaging
MVN package-dmaven.test.skip=ture

------------------------------------\ (^o^)/~-----------------------------------------------------

Easy to copy over the query

10. Build Eclipse Project: MVN eclipse:eclipse
11. Generate the Idea project: MVN Idea:idea
12. Combine with goal commands, such as package-only not tested: Mvn-dtest packages
13. Compile the content of the test: MVN test-compile
14. Only hit jar package: MVN Jar:jar

23333 is also a water article (the following are various copies of the MAVEN into Eclipse project)

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.