修改 maven-->conf :settings.xml
<offline>false</offline>
<mirror>
<id>mirrorId</id>
<mirrorOf>repositoryId</mirrorOf>
<name>Human Readable Name for this Mirror.</name>
<url>http://mvnrepository.com/</url>
</mirror>
修改 maven-->conf :settings.xml
<offline>false</offline>
<mirror>
<id>mirrorId</id>
<mirrorOf>repositoryId</mirrorOf>
<name>Human Readable Name for this Mirror.</name>
<url>http://mvnrepository.com/</url>
</mirror>
转载于:https://www.cnblogs.com/21heshang/p/8371801.html