配置阿里云maven仓库
2016-11-01 15:18
441 查看
第一步:
在maven的setting.xml文件中的
第二步:
在maven的setting.xml文件中配置如下(使第二步的配置起作用,
至于在哪配置,在setting.xml中是有示例的,自己找找):
这样,在pom.xml中依赖的库就会从阿里云的maven库中去下载,感觉上速度会快不少。
如果使用Eclipse,需要指定你的setting.xml后点击update settings按钮才会生效,如下图所示:
在maven的setting.xml文件中的
<profiles></profiles>标签中配置如下:
<profile> <id>dev</id> <repositories> <repository> <id>nexus</id> <url>http://maven.aliyun.com/nexus/content/groups/public/</url> <releases> <enabled>true</enabled> </releases> <snapshots> <enabled>true</enabled> </snapshots> </repository> </repositories> <pluginRepositories> <pluginRepository> <id>nexus</id> <url>http://maven.aliyun.com/nexus/content/groups/public/</url> <releases> <enabled>true</enabled> </releases> <snapshots> <enabled>true</enabled> </snapshots> </pluginRepository> </pluginRepositories> </profile>
第二步:
在maven的setting.xml文件中配置如下(使第二步的配置起作用,
至于在哪配置,在setting.xml中是有示例的,自己找找):
<activeProfiles> <activeProfile>dev</activeProfile> </activeProfiles>
这样,在pom.xml中依赖的库就会从阿里云的maven库中去下载,感觉上速度会快不少。
如果使用Eclipse,需要指定你的setting.xml后点击update settings按钮才会生效,如下图所示:
相关文章推荐
- 阿里云MAVEN仓库配置
- maven仓库阿里云配置
- maven配置及更改仓库镜像为阿里云
- 阿里云Maven配置,Maven仓库配置,Maven镜像配置
- maven阿里云仓库配置
- maven配置文件引入jdk1.8和阿里云仓库
- maven配置:中心仓库更改至阿里云
- Maven阿里云仓库地址配置
- maven配置阿里云镜像文件/阿里云中央仓库
- 阿里云Maven中央仓库配置
- 阿里云Maven仓库配置
- [Maven]阿里云Maven中央仓库配置
- maven settings.xml 阿里云仓库配置
- maven/conf/settings.xml中配置- 阿里云仓库
- 阿里云yum仓库和maven仓库配置记录
- aliyun阿里云Maven仓库配置
- Maven 配置阿里云仓库
- Maven 仓库阿里云镜像配置
- maven仓库阿里云镜像配置
- Maven 仓库之阿里云镜像配置