MAVEN installation and Myeclipse+maven configuration and use

Source: Internet
Author: User

Ext: 51779159

The configuration and use steps for MAVEN installation and Myeclipse+maven are as follows: Maven installation
    1. Download maven
      Download the Apache-maven-3.3.9-bin.zip in https://maven.apache.org/download.cgi and unzip it directly to the local.
    2. Configuring Environment variables
      Please make sure you have installed the jdk1.7 above and configured the Java_home.
      Configure the environment variable maven_home, such as F:\maven\apache-maven-3.3.9, after my decompression file is placed under F:\maven, so the path is as above.
      Configure path, plus%maven_home%\bin at the end.
    3. Open cmd, enter mvn-version to get the following:

      At this point, MAVEN installation is successful!
Using Maven in myeclipse2014

Because myeclipse2014 's maven4myeclipse is not very good, not to avoid two different versions of the MAVEN build project rules are not the same, so the myeclipse2014 in the MAVEN also changed to our above installed maven3.3.9

    1. Configure Maven
      Open Window–>preferences–>myeclipse–>maven4myeclipse such as:

      Click on the Add button in the top right corner to select the Maven root directory (my directory is F:\maven\apache-maven-3.3.9)

    2. Set up a central repository for MAVEN

      Maven4myeclipse has a default warehouse address, in the user file. M2 directory, here we define the directory ourselves.

      First, create a new central repository (the jar package to be loaded by the project), my directory is F:\maven\m2\repository, and then copy the settings.xml configuration file from F:\maven\apache-maven-3.3.9\conf to F : \maven, then open the copied settings.xml file, where the value in the localrepository tag is changed to F:\maven\m2\repository, and if the localrepository tag is commented out, open the comment , this step is to designate a central warehouse.
      Next, go to the following interface

, reconfigure the settings.xml.

Last step, enter

Replace the default JDK with the JDK configured in the environment variable and, if set, default VM arguments

At this point, the configuration of Maven in myeclipse2014 has been fully completed.

(GO) Maven installation and Myeclipse+maven configuration and use

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.