Maven远程仓库连接不上的解决办法

可能是墙的原因吧,有时候很不稳定,后来找到一个英国镜像站,
还是很不错的,注解在settings.xml里面添加就可以了:
 <mirror>
      <id>UK</id>
      <mirrorOf>central</mirrorOf>
      <name>UK Central</name>
      <url>http://uk.maven.org/maven2</url>
    </mirror>

猜你喜欢

转载自lucky16.iteye.com/blog/1572591