Maven setting配置镜像仓库

国内Maven镜像仓库值得收藏

1.配置IDE构建的Maven存放目录(解压目录)

2.配置IDE的User setting file路径,修改setting配置文件

  配置本地仓库

   

  E:\JAVA\Maven 

  配置mirrors远程镜像(一般配置一到两个镜像) 

复制代码
 1 
 2     
14     
15         alimaven
16         central
17         aliyun maven
18         http://maven.aliyun.com/nexus/content/repositories/central/
19     
20     
21         jboss-public-repository-group
22         central
23         JBoss Public Repository Group
24         http://repository.jboss.org/nexus/content/groups/public
25     
26 
复制代码

  配置profiles构建  

复制代码
 1 
 2     jdk18
 3     
 4         1.8
 5         true
 6     
 7     
 8         1.8
 9         1.8
10         1.8
11     
12 
复制代码

  国内Maven镜像仓库值得收藏 

复制代码
 1 
 2     alimaven
 3     aliyun maven
 4     http://maven.aliyun.com/nexus/content/groups/public/
 5     central
 6 
 7 
 8     alimaven
 9     central
10     aliyun maven
11     http://maven.aliyun.com/nexus/content/repositories/central/
12 
13 
14 
15     ibiblio
16     central
17     Human Readable Name for this Mirror.
18     http://mirrors.ibiblio.org/pub/mirrors/maven2/
19 
20 
21     jboss-public-repository-group
22     central
23     JBoss Public Repository Group
24     http://repository.jboss.org/nexus/content/groups/public
25 
26 
27 
28     central
29     Maven Repository Switchboard
30     http://repo1.maven.org/maven2/
31     central
32 
33 
34     repo2
35     central
36     Human Readable Name for this Mirror.
37     http://repo2.maven.org/maven2/
38 
复制代码

  完整setting配置  

复制代码
  1 
  2 
  3 
 21 
 22 
 46 
 49     
 55     
 56     E:\JAVA\Maven
 57     
 65 
 66     
 73 
 74     
 79     
 80         
 84     
 85 
 86     
 91     
 92         
106     
107 
108     
112     
113         
126 
127         
134     
135 
136     
147     
148         
160 
161         
162             alimaven-central
163             central
164             aliyun maven
165             http://maven.aliyun.com/nexus/content/repositories/central/
166         
167         
168             jboss-public-repository-group
169             central
170             JBoss Public Repository Group
171             http://repository.jboss.org/nexus/content/groups/public
172         
173 
174         
200 
201     
202 
203     
224     
225         
254         
255             jdk18
256             
257                 1.8
258                 true
259             
260             
261                 1.8
262                 1.8
263                 1.8
264             
265         
266 
267         
301     
302 
303     
311 

转载于:https://www.cnblogs.com/yaowen/p/9579802.html

你可能感兴趣的:(Maven setting配置镜像仓库)