maven国内源
阿里云源
打开 maven 的配置文件( windows 机器一般在 maven 安装目录的 conf/settings.xml ),在标签中添加 mirror 子节点:
<mirror>
<id>aliyunmaven</id>
<mirrorOf>*</mirrorOf>
<name>阿里云公共仓库</name>
<url>https://maven.aliyun.com/repository/public</url>
</mirror>
Gradle国内源
阿里云源
在 build.gradle 文件中加入以下代码:
allprojects {
repositories {
maven {
url 'https://maven.aliyun.com/repository/public/'
}
mavenLocal()
mavenCentral()
}
}
文章介绍了如何配置Maven的阿里云镜像,通过修改settings.xml文件添加mirror节点来实现。对于Gradle,用户可以在build.gradle文件中添加阿里云源。而对于Node.js,推荐使用https://npmmirror.com/作为国内源。

1万+

被折叠的 条评论
为什么被折叠?



