使用国内阿里maven私服方法
2024-10-08 03:43:24
方法1,在maven的config下setings.xml文件中加入以下代码
-
<mirrors>
-
<mirror>
-
<id>mirrorId</id>
-
<mirrorOf>repositoryId</mirrorOf>
-
<name>Human Readable Name for this Mirror.</name>
-
<url>http://my.repository.com/repo/path</url>
-
</mirror>
-
</mirrors>
方法2,在pom.xml加入以下代码
-
<!--第三方maven私服-->
-
<repositories>
-
<repository>
-
<id>nexus-aliyun</id>
-
<name>Nexus aliyun</name>
-
<url>http://maven.aliyun.com/nexus/content/groups/public</url>
-
<releases>
-
<enabled>true</enabled>
-
</releases>
-
<snapshots>
-
<enabled>false</enabled>
-
</snapshots>
-
</repository>
-
</repositories>
-
<pluginRepositories>
-
<pluginRepository>
-
<id>nexus-aliyun</id>
-
<name>Nexus aliyun</name>
-
<url>http://maven.aliyun.com/nexus/content/groups/public</url>
-
<releases>
-
<enabled>true</enabled>
-
</releases>
-
<snapshots>
-
<enabled>false</enabled>
-
</snapshots>
-
</pluginRepository>
-
</pluginRepositories>
原文地址:https://blog.csdn.net/xingfeichen/article/details/54290735
最新文章
- linux的相关指令命令
- Mysql在大型网站的应用架构演变
- jquery学习方法
- SpringMVC——接收请求参数和页面传参
- Struts2+Spring+Ibatis集成合并
- 在 win 10 中使用sql 2012 附加低版本数据失败的解决办法。
- CentOS6.5 服务器+apache5.3绑定多个域名+SELinux设置
- 在suse上折腾iptables
- 对Java原子类AtomicInteger实现原理的一点总结
- 从vultr购买到搭ss看世界
- 【noip模拟】最小点覆盖
- 在go中使用linked channels进行数据广播
- JS获取访客IP+判断归属地+自动跳转
- 随便说说sequelize的问题
- 解决selenium.common.exceptions.WebDriverException: Message: &#39;chromedriver&#39; executable needs to be in PATH. Please see https://sites.google.com/a/chromium.org/chromedriver/home
- python之封装
- ethereum/EIPs-100 挖矿难度计算
- Spark学习之路 (三)Spark之RDD
- iframe 常见问题 解析
- D - I Think I Need a Houseboat(1.3.1)
热门文章
- MaxCompute Spark开发指南
- git 报错:没有权限 remote: error: unable to unlink old &#39;README.md&#39; (Permission denied)
- OWIN启动类检测
- java 3 接口与多态&;输入输出流
- 三.BP神经网络
- WCF ChannelFactory
- HTML 5适合小公司,适合在大平台上做内容
- Leetcode806.Number of Lines To Write String写字符串需要的行数
- Kubernetes1.4即将发布
- poj3308 最小割