<!-- 阿里云提供的镜像地址 -->
<mirror>
    <id>nexus-aliyun</id>
    <mirrorOf>*</mirrorOf>
    <name>Nexus aliyun</name>
    <url>http://maven.aliyun.com/nexus/content/groups/public</url>
</mirror>

<!-- Maven官方地址,和阿里云地址二选一 -->
<mirror> 
    <id>Central</id> 
    <url>http://repo1.maven.org/maven2</url> 
    <mirrorOf>central</mirrorOf> 
</mirror>

 很久以前,初次接触Maven和springboot。然后就按着网上的教程通过Eclipse测试,springboot1.4.3版本没有任何问题,但是修改为2.x就是报错,这里已经记不清当时是什么原因了。后来一个偶然的机会接触了IDEA,在IEDA上面居然能使用springboot2.x。这时候就纳闷了。后来仔细分析了报错,提示的应该是Maven没有找到对应的版本,一个不小心在百度找到了把镜像修改为官方的地址,尝试之后居然成功了。

因此笔者认为阿里云应该就是官方Maven的一个拷贝,但是由于不及时,不能保证所有的镜像在阿里云上面都有,从而导致springboot2.x无法下载的尴尬。

相关文章:

  • 2022-12-23
  • 2021-11-17
  • 2022-12-23
  • 2021-11-22
  • 2021-06-05
  • 2022-12-23
  • 2021-04-23
猜你喜欢
  • 2022-01-09
  • 2022-12-23
  • 2021-05-10
  • 2021-11-12
  • 2022-12-23
  • 2021-05-22
  • 2022-12-23
相关资源
相似解决方案