1、官方下载
https://maven.apache.org/download.cgi
2、安装方法
sudo apt install maven
3、配置本地仓库
默认~/.m2/repository, 可以自己修改
全局配置: ${maven.home}/conf/settings.xml
用户级别:${user.home}/.m2/settings.xml
<settings> ... <localRepository>${user.home}/.m2/repository</localRepository> ... </settings>
4、配置国内镜像源
打开settings.xml,在mirrors节点
<mirror> <id>aliyunmaven</id> <mirrorOf>*</mirrorOf> <name>阿里云公共仓库</name> <url>https://maven.aliyun.com/repository/public</url> </mirror>
其他源
阿里云:http://maven.aliyun.com/
华为云:https://repo.huaweicloud.com/repository/maven/
tencent:https://mirrors.cloud.tencent.com/help/maven.html
标签:xml,maven,repository,com,Maven,https,ubuntu,home,安装 From: https://www.cnblogs.com/fireblackman/p/18197882