maven国内镜像配置

settings.xml文件:



 1 xml version="1.0" encoding="UTF-8"?>
 2 <settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
 3           xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
 4           xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd">
 5     <mirrors>
 6         
 7         <mirror>
 8             <id>alimavenid>
 9             <mirrorOf>centralmirrorOf>
10             <name>aliyun mavenname>
11             <url>http://maven.aliyun.com/nexus/content/repositories/central/url>
12         mirror>
13     
14         
15         <mirror>
16             <id>repo1id>
17             <mirrorOf>centralmirrorOf>
18             <name>Human Readable Name for this Mirror.name>
19             <url>http://repo1.maven.org/maven2/url>
20         mirror>
21     
22         
23         <mirror>
24             <id>repo2id>
25             <mirrorOf>centralmirrorOf>
26             <name>Human Readable Name for this Mirror.name>
27             <url>http://repo2.maven.org/maven2/url>
28         mirror>
29     mirrors> 
30 settings>

你可能感兴趣的:(maven)