idea如何配置maven及其使用阿里云镜像下载依赖到本地仓库
文章目录打开idea,进入setting页面,找到maven,以下三处路径需要设定指定idea配置了maven项目,apache-maven骨架资源可以在我博客资源下免费下载,setting.xml文件,指定阿里云镜像下载依赖到本地仓库中(默认用国外的下载,速度特别慢)Local repository: 指定下载依赖到本地仓库的路径setting.xml 文件内容<?xml version=
·
文章目录
- 打开idea,进入setting页面,找到maven,以下三处路径需要设定
- 指定idea配置了maven项目,apache-maven骨架资源可以在我博客资源下免费下载,
- setting.xml文件,指定阿里云镜像下载依赖到本地仓库中(默认用国外的下载,速度特别慢)
- Local repository: 指定下载依赖到本地仓库的路径
- setting.xml 文件内容
<?xml version="1.0" encoding="UTF-8"?>
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd">
<!-- 本地仓库地址 -->
<localRepository>D:\mavenrepo</localRepository>
<mirrors>
<!-- 阿里仓库镜像 -->
<mirror>
<id>alimaven</id>
<name>aliyun maven</name>
<url>http://maven.aliyun.com/nexus/content/groups/public/</url>
<mirrorOf>central</mirrorOf>
</mirror>
</mirrors>
</settings>
更多推荐
所有评论(0)