宝塔山 发表于 2022-8-9 14:41:12

Maven配置

1.在官网下载对应的压缩包
https://maven.apache.org/download.cgi
2.将压缩包解压
3.配置环境变量
MAVEN_HOME:
https://img2022.cnblogs.com/blog/2789361/202206/2789361-20220623222957629-1284982373.png
 
M2_HOME:
https://img2022.cnblogs.com/blog/2789361/202206/2789361-20220623223103318-134230644.png
 
 
 path:
 https://img2022.cnblogs.com/blog/2789361/202206/2789361-20220623223206152-192575120.png
 
4.配置阿里云镜像
在Maven的E:\maven\apache-maven-3.8.6\conf\settings.xml中进行配置

 
   alimaven
   aliyun maven
   http://maven.aliyun.com/nexus/content/groups/public/
   central
 
 
5.建立本地仓库
(1)在E:\maven\apache-maven-3.8.6目录下新建maven-repo文件夹
(2)在Maven的E:\maven\apache-maven-3.8.6\conf\settings.xml中进行配置
E:\maven\apache-maven-3.8.6\maven-repo
 

免责声明:如果侵犯了您的权益,请联系站长,我们会及时删除侵权内容,谢谢合作!
页: [1]
查看完整版本: Maven配置