Maven使用阿里云镜像
2017-08-30 15:39
239 查看
全局的配置文件 settings.xml中的内容:
<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 https://maven.apache.org/xsd/settings-1.0.0.xsd"> <localRepository />
<interactiveMode />
<usePluginRegistry />
<offline />
<pluginGroups />
<servers />
<mirrors>
<mirror>
<id>nexus-aliyun</id>
<mirrorOf>*</mirrorOf>
<name>Nexus aliyun</name>
<url>http://maven.aliyun.com/nexus/content/groups/public</url>
</mirror>
</mirrors>
<proxies />
<profiles />
<activeProfiles />
</settings>新建一个settings.xml的文件,将上述内容复制到该文件中,然后放置在个人目录下的 /.m2 目录下,使用maven下载包的时候就是从阿里云下载了,速度会明显快很多的。
转自:http://www.cnblogs.com/justforcon/p/6792039.html
<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 https://maven.apache.org/xsd/settings-1.0.0.xsd"> <localRepository />
<interactiveMode />
<usePluginRegistry />
<offline />
<pluginGroups />
<servers />
<mirrors>
<mirror>
<id>nexus-aliyun</id>
<mirrorOf>*</mirrorOf>
<name>Nexus aliyun</name>
<url>http://maven.aliyun.com/nexus/content/groups/public</url>
</mirror>
</mirrors>
<proxies />
<profiles />
<activeProfiles />
</settings>新建一个settings.xml的文件,将上述内容复制到该文件中,然后放置在个人目录下的 /.m2 目录下,使用maven下载包的时候就是从阿里云下载了,速度会明显快很多的。
转自:http://www.cnblogs.com/justforcon/p/6792039.html
相关文章推荐
- Windows下 Maven 使用 阿里云镜像配置
- ionic2常见问题——cordova使用Gradle构建下载maven太慢,使用阿里云镜像
- Maven介绍及环境搭建及阿里云镜像仓库使用
- Maven使用阿里云镜像,加快下载速度
- maven国内镜像 阿里云(在公司里使用还需要添加代理)
- 使用阿里云Maven仓库镜像地址——加速你的maven构建
- Maven镜像 阿里云mirror如何使用
- Maven-使用阿里云的镜像
- cordova使用Gradle构建下载maven太慢,使用阿里云镜像
- Maven使用阿里云国内镜像
- eclipse Neon.3 Release (4.6.3)中maven项目使用阿里云镜像
- [转][Java]Maven使用阿里云镜像
- Maven使用阿里云镜像
- maven配置阿里云镜像
- 详解Maven Docker镜像使用技巧
- maven 配置阿里云镜像
- maven 亲测可用国内镜像 阿里云
- maven配置阿里云镜像
- aliyun阿里云Maven仓库镜像地址
- maven添加阿里云镜像仓库