Blogger Information
Blog 29
fans 0
comment 0
visits 23888
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
Ubuntu20安装maven并切换阿里镜像源
easy
Original
936 people have browsed it

参考

阿里巴巴开源镜像站

安装maven并切换阿里镜像源

执行sudo apt install maven

安装maven

mvn -v

查看版本

修改为国内阿里镜像源,找到/usr/share/maven/conf/settings.xml文件 打开并修改以下

<mirror>
    <id>aliyunmaven</id>
    <mirrorOf>*</mirrorOf>
    <name>阿里云公共仓库</name>
    <url>https://maven.aliyun.com/repository/public</url>
</mirror>

可能会显示只读

可以修改下权限在保存

sudo chmod 777 /usr/share/maven/conf/settings.xml

然后保存


Statement of this Website
The copyright of this blog article belongs to the blogger. Please specify the address when reprinting! If there is any infringement or violation of the law, please contact admin@php.cn Report processing!
All comments Speak rationally on civilized internet, please comply with News Comment Service Agreement
0 comments
Author's latest blog post