yum安装maven
- 安装
wget http://repos.fedorapeople.org/repos/dchen/apache-maven/epel-apache-maven.repo -O /etc/yum.repos.d/epel-apache-maven.repo
1
sed -i s/\$releasever/6/g /etc/yum.repos.d/epel-apache-maven.repo
1
yum install -y apache-maven
1
- 安装完毕,检查一下
mvn -version
1
- 添加阿里云的镜像地址
vi /usr/share/apache-maven/conf/settings.xml
1
- 修改下面节点
<mirror>
<id>alimaven</id>
<name>aliyun maven</name>
<url>http://maven.aliyun.com/nexus/content/groups/public/</url>
<mirrorOf>central</mirrorOf>
</mirror>
1
2
3
4
5
6
2
3
4
5
6
- 配置仓库位置
<localRepository>/cicro/var/m2/repo</localRepository>
1
帮我改善此页面 (opens new window)
上次更新: 2021/02/16, 12:29:08