Maven配置
作者:互联网
1.在官网下载对应的压缩包
https://maven.apache.org/download.cgi
2.将压缩包解压
3.配置环境变量
MAVEN_HOME:
M2_HOME:
path:
4.配置阿里云镜像
在Maven的E:\maven\apache-maven-3.8.6\conf\settings.xml中进行配置
<mirrors>
<mirror>
<id>alimaven</id>
<name>aliyun maven</name>
<url>http://maven.aliyun.com/nexus/content/groups/public/</url>
<mirrorOf>central</mirrorOf>
</mirror>
<mirrors>
5.建立本地仓库
(1)在E:\maven\apache-maven-3.8.6目录下新建maven-repo文件夹
(2)在Maven的E:\maven\apache-maven-3.8.6\conf\settings.xml中进行配置
<localRepository>E:\maven\apache-maven-3.8.6\maven-repo</localRepository>
标签:maven,配置,Maven,conf,apache,3.8 来源: https://www.cnblogs.com/haibo97/p/16407103.html