给自己电脑重新构建Maven 在调用mvn help:system的时候 一直在报一个错
org.apache.maven.wagon.providers.http.httpclient.impl.execchain.RetryExec execute
信息: I/O exception (java.net.SocketException) caught when processing request: Connection reset
镜像应该没问题用的阿里云的,考虑JDK版本的问题后,将JDK1.8换成1.7后就可以下载了,应该是不兼容的问题
--------------------------------------------------------------------------
之后下载成功了 但是巨慢 镜像用的阿里云完全没问题 但是看到下载的时候还是用到了之前用的OSCHINA
一定是这个导致了太慢
后来从setting找 在profile中还是用了OSCHINA
在profiles->profile->repositories节点,改成如下子节点:
```
<repository>
<id>nexus-aliyun</id>
<name>Nexus aliyun</name>
<layout>default</layout>
<url>http://maven.aliyun.com/nexus/content/groups/public</url>
<snapshots>
<enabled>false</enabled>
</snapshots>
<releases>
<enabled>true</enabled>
</releases>
</repository>
```