-
1
Download the maven bin, which can be downloaded from the apache official website.
-
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
-
3
Add the path of maven's bin to the PATH
-
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
After the configuration is complete, in the Windows command prompt, enter mvn -v to test, the configuration is successful as shown in the figure:
-
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:
-
7
After installation, click to restart eclipse
-
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
-
9
After the setting is successful, the installation is complete.
maven installation and eclipse configuration maven
Guess you like
Origin http://10.200.1.11:23101/article/api/json?id=326796818&siteId=291194637
Recommended
Ranking