Prior to the spring in learning, sometimes changing computer, downloaded again so much dependent on time, there will be all dependent on how a pilot does not come in, but very slow download speed problem, to re-do a good job for a long time, at the time mvn clean install , clearly document only a few k, dozens of k, to be downloaded for a long time, a long time do not move.
When learning springMVC, building webapp under maven environment, a building and found building very very very slow, go for a failed once, then go online to find, refer to someone else's blog and found that the problem maven repository, as is the , from super slow things down outside the network, according to the tutorial into Ali cloud mirrored warehouse, very sour cool!
Next, configure it, very simple!
1, is to find maven download folder -> conf-settings.xml
: maven download this premise would not have said it
2, copy settings.xml file to a folder you created
here is the file I created folder
3, add, modify contents
(1)
find this localRepository label, change the following path to the top that you create a folder (where you have downloaded the dependencies folder) I am here with this settings.xml storage folder good , better management
(2)
add Ali cloud mirror
<mirror>
<id>alimaven</id>
<name>aliyun maven</name>
<url>http://maven.aliyun.com/nexus/content/groups/public/</url>
<mirrorOf>central</mirrorOf>
</mirror>
Figure specific location inside Oh, be careful when you put a little, or no added to the list
4, did not then, and complete, remember to save on the line