修改settings.xml:

    <mirror>
<id>nexus-osc</id>
<mirrorOf>*</mirrorOf>
<name>Nexus osc</name>
<url>http://maven.oschina.net/content/groups/public/</url>
</mirror>

两份settings.xml,一份在maven安装目录C:\Program Files\Java\apache-maven-3.3.9\conf下,一份从这里拷贝到C:\Program Files\Java\maven-repository下。

04-12 14:31