Skip to content

Maven

配置JAVA依赖镜像下载地址,我们选择下图红框的文件下载进行安装

https://raw.githubusercontent.com/Lazydd/images/main/20260629104923.webp

配置环境变量

添加系统变量

bash
MAVEN_HOME
https://raw.githubusercontent.com/Lazydd/images/main/20260629111423039.webp

添加 Path

bash
%MAVEN_HOME%\bin
https://raw.githubusercontent.com/Lazydd/images/main/20260629111505829.webp

查看是否安装完成

bash
mvn --version
https://raw.githubusercontent.com/Lazydd/images/main/20260629111649611.webp

配置国内镜像(阿里云)

打开 maven 目录下的 conf/settings.xml,在 mirrors 下面添加新的 mirror

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

贡献者

暂无相关贡献者

变更记录

暂无最近变更历史

Released under the MIT License.