Installation and use of MAVEN

Source: Internet
Author: User

First, we need to understand what Maven is,

MAVEN is a software project management tool that is based on a project object model that can manage the construction, reporting, and documentation of a project through a short description of the information. In addition to its program building capabilities, Maven offers advanced project management tools. Because MAVEN's default build rules are highly reusable, it is common to build scripts with two or three lines of Maven to build simple projects. Thanks to MAVEN's project-oriented approach, many Apache Jakarta projects use Maven, and the percentage of company projects that are MAVEN-based continues to grow. The word maven comes from Yiddish, meaning the accumulation of knowledge, which was first used in the Jakata turbine project to try to simplify the construction process. There were many projects at the time, their ant build files were only slightly different, and the jar files were maintained by CVS. So the Maven founders started MAVEN, a clear definition of the project, including a convenient way to publish project information, and a way to share jars across multiple projects. 1. First of all, we have to download it from the official website 2. After the download, we unzip it, but after that there is a very important step to proceed, which is to configure the environment variables, this is very important and error prone. First, to right the computer, click Advanced System Settings, select the environment variables inside. Follow the picture below to get it done.

Set the environment variables as shown in the picture.

3. After the configuration is complete, at the Windows command prompt, enter MVN-V test, the configuration successfully displayed

4.maven is built on top of Java, and we're going to use it to eclipse, and then we're going to configure Eclipse,

5. Let's take a look at the POM:

5. Create a project that belongs to us

Input command: MVN Archetype:create-dgroupid=com.mycompany.app-dartifactid=my-app

Then we go to the appropriate disk, such as:

Then enter MVN archetype:generate and select version for the following effect.

We import the projects we've created into eclipse to get the results we want.

Installation and use of MAVEN

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.