Step1:Download
You can download Maven3.6.1 from maven.apche.org , or from here.
Step2:Unzip and add to "Path"
Unzip the amven zip file and then add the path of 'bin' directory to System variable 'Path'
Step 3: Verify
open a cmd window and type in "mvn -v",If you see the output as below, it indicates maven has been installed properly.
C:\Users\heyang>mvn -v Apache Maven 3.6.1 (d66c9c0b3152b2e69ee9bac180bb8fcc8e6af555; 2019-04-05T03:00:29+08:00) Maven home: C:\maven-3.6.1\bin\.. Java version: 1.8.0_212, vendor: Oracle Corporation, runtime: c:\java8\jre Default locale: zh_CN, platform encoding: GBK OS name: "windows 10", version: "10.0", arch: "amd64", family: "windows"
Step 4:add mirror
open the file C:\maven-3.6.1\conf\settings.xml, add the follow paragraph into the node 'mirrors'
<mirror> <id>alimaven</id> <mirrorOf>central</mirrorOf> <name>aliyun maven</name> <url>http://maven.aliyun.com/nexus/content/groups/public/</url> </mirror>
Step5:config in Eclipse
Open eclipse's preference menu,click maven tab and add the two configuration as below:
--End--
2019年8月24日08点42分