(eight) Eclipse create maven project run MVN command

Source: Internet
Author: User

1.Eclipse Creating a Maven project

Creating a Maven project with Eclipse is very simple, choose the menu item File>new>other (or right-click the mouse button in the project structure), select Maven Project under Maven in the popup dialog box,

Then click the Next button, Next button, select a archetype to specify the type of project we want to create. We choose the common Java project "Maven-archetype-quickstart",

Then click the Next button to enter the group ID, Artifact ID, Version, package,

One thing to note here is that when we enter the group ID and the Artifact ID, Eclipse automatically gives us the package name after the package, noting that the packet name cannot be capitalized, and that the group ID is all lowercase, Artifact If the ID is capitalized, you manually change the package name to the one you want, so that you do not violate the Java Package naming specification.

Then click the Finish button and the MAVEN project is created.

2.Eclipse Run MVN command

Right-click on the MAVEN project or Pom.xml and select Run as from the popup shortcut menu to see the common MAVEN commands,

Select the command you want to execute to perform the appropriate action, and eclipse will output the build information in the console.

What if the default option does not have the command we want to execute? Choose Maven Build to customize the command we want to execute, enter the command we want to execute in the goals of the popup dialog, such as clean install, set the name description meaning, and click Run. Eclipse will save this setting for us, which can be run configurations ... Found in,

Saved Records,

Using Eclipse to create a project and run the MVN command is so easy.

(eight) Eclipse create maven project run MVN command

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.