配置阿里云maven仓库
来源:互联网 发布:万网域名解析 端口 编辑:程序博客网 时间:2024/05/18 03:35
第一步:
在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按钮才会生效,如下图所示:
2 0
- 配置阿里云maven仓库
- maven仓库阿里云配置
- 阿里云maven仓库配置
- Maven 配置阿里云仓库
- Maven阿里云仓库配置
- maven阿里云仓库配置
- maven 本地仓库 阿里云仓库配置
- [Maven]阿里云Maven中央仓库配置
- 阿里云Maven中央仓库配置
- maven settings.xml 阿里云仓库配置
- 阿里云maven中央仓库配置
- Maven阿里云与本地仓库配置
- Maven配置阿里云中央仓库
- 配置阿里云maven中央仓库
- Maven阿里云仓库地址配置
- maven配置阿里云镜像文件/阿里云中央仓库
- 阿里云maven仓库
- 阿里云maven仓库
- 从内核文件系统看文件读写过程
- codeforces #378 Div2 ABCD题解
- Myeclipse2015破解版安装Maven
- DBS购买澳新银行的零售和财富部门
- Android中的activity启动模式叙述
- 配置阿里云maven仓库
- mysql数据库设计原则
- android Button.setEnabled()关闭后开启不了的解决方法
- 数组实现栈及用栈实现字符串逆序
- OpenGL -- 二维动画 glutTimerFunc 函数
- Android UI开发详解之ActionBar
- JavaScript正则表达式贪婪模式与惰性模式
- 最全的Android Material Design支持库总结和介绍
- LDMOS简介