# 下载 > 参考: * [Apache Maven 安装说明](https://maven.apache.org/install.html) * [Apache Maven 最新版本](https://maven.apache.org/download.cgi) * [Apache Maven 历史版本详情](https://maven.apache.org/docs/history.html) * [Apache Maven 历史版本下载](https://archive.apache.org/dist/maven/maven-3/) 下载 apache-maven-3.x.x-bin.zip # 安装 2. 解压 2. 追加环境变量path `;MAVEN_HOME/bin` > 不用再设置 M2_HOME 或 MAVEN_HOME 了 3. CMD命令行下 `mvn -v` 测试 # 使用 ## 无网络下使用 Maven 1. 本地仓库一定要存在需要的jar包 2. 设置本地仓库 ```xml ... E:\wokesoftware\maven-repository ... ``` 3. 把镜像地址指向本地仓库 ```xml ... central central file://E:\wokesoftware\maven-repository * ... ``` > 常见问题: > > Failure to transfer $groupId:$artifactId:pom:$version from $centralUrl was cached in the local repository, resolution will not be reattempted until the update interval of alimaven has elapsed or updates are forced。Original error: Could not transfer artifact $groupId:$artifactId:pom:$version from/to central ($centralUrl):repo.maven.apache.org > > 解决方案:有可能就是联网的问题