1.下载maven
http://maven.apache.org/download.cgi
添加path
2.修改setting文件,进行mvn构建,如果setting未配置具体数据,使用超级pom的配置,自己使用可以尝试添加mirror,否则国外仓库不好使用
<mirror>
<id>alimaven</id>
<name>aliyun maven</name>
<url>http://maven.aliyun.com/nexus/content/groups/public/</url>
<mirrorOf>central</mirrorOf>
</mirror>
3.如果发现连接中央仓库需要鉴权,apache-maven-3.6.0\lib\ext目录下添加jar包,网上下载即可。
wagon-http-lightweight-2.2.jar包