maven阿里云中央仓库
2017-02-09 01:17
471 查看
今天做新项目时,发现oschina的maven源关闭了,如下:
http://www.oschina.net/news/75946/maven-oschina-closed
然后在评论里发现ali也提供maven源了,如下
2
3
4
5
6
7
8
1
2
3
4
5
6
7
8
也可以在pom.xml中直接添加
2
3
4
5
6
7
8
9
10
11
12
13
14
1
2
3
4
5
6
7
8
9
10
11
12
13
14
http://www.oschina.net/news/75946/maven-oschina-closed
然后在评论里发现ali也提供maven源了,如下
<mirrors> <mirror> <id>alimaven</id> <name>aliyun maven</name> <url>http://maven.aliyun.com/nexus/content/groups/public/</url> <mirrorOf>central</mirrorOf> </mirror> </mirrors>1
2
3
4
5
6
7
8
1
2
3
4
5
6
7
8
也可以在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>1
2
3
4
5
6
7
8
9
10
11
12
13
14
1
2
3
4
5
6
7
8
9
10
11
12
13
14