- <mirror>
- <id>alimaven</id>
- <name>aliyun maven</name>
- <url>http://maven.aliyun.com/nexus/content/groups/public/</url>
- <mirrorOf>central</mirrorOf>
- </mirror>
配置方法2: 在 pom.xml 中直接添加
- <repositories><!-- 代码库 -->
- <repository>
- <id>maven-ali</id>
- <url>http://maven.aliyun.com/nexus/content/groups/public//</url>
- <releases>
- <enabled>true</enabled>
- </releases>
- <snapshots>
- <enabled>true</enabled>
- <updatePolicy>always</updatePolicy>
- <checksumPolicy>fail</checksumPolicy>
- </snapshots>
- </repository>
- </repositories>
本文介绍如何通过两种方式配置阿里云Maven镜像:一种是在settings.xml中添加镜像配置;另一种是在pom.xml文件中直接添加仓库配置。
1539

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



