maven installation and eclipse configuration maven

  1. 1

    Download the maven bin, which can be downloaded from the apache official website.

    maven installation and eclipse configuration maven
  2. 2

    After downloading, unzip it, find a path to put it in, set the bin location in the environment variable, and create a new environment variable MAVEN_HOME

    maven installation and eclipse configuration maven
  3. 3

    Add the path of maven's bin to the PATH

    maven installation and eclipse configuration maven
  4. 4

    Since Maven relies on the Java runtime environment, you need to configure the Java runtime environment before using Maven. Download and install JDK, configure the environment variable JAVA_HOME of JDK, otherwise maven will not be able to use

  5. 5

    After the configuration is complete, in the Windows command prompt, enter mvn -v to test, the configuration is successful as shown in the figure:

    maven installation and eclipse configuration maven
  6. 6

    After the configuration is successful, start configuring Maven in Eclipse, click on the eclipse menu bar Help->Eclipse Marketplace to search for the keyword maven to the plug-in Maven Integration for Eclipse and click Install, as shown below:

    maven installation and eclipse configuration maven
    maven installation and eclipse configuration maven
    maven installation and eclipse configuration maven
    maven installation and eclipse configuration maven
  7. 7

    After installation, click to restart eclipse

    maven installation and eclipse configuration maven
  8. 8

    After restarting, in order to make the Maven plugin installed in Eclipse the same as the one installed in windows, you need to relocate maven in eclipse, click Window -> Preference -> Maven -> Installation -> Add to set

    maven installation and eclipse configuration maven
  9. 9

    After the setting is successful, the installation is complete.

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326796818&siteId=291194637