运行springboot项目报红https://repo.mav

2020-06-15  本文已影响0人  龙贝子

问题详细描述:

在springboot项目的pom.xml中

       依赖spring-boot-starter-parent 

       依赖spring-boot-starter-web    报红

原因就是maven的镜像库找不到。

换成阿里云镜像。方法如下:

步骤1:修改settings.xml文件

<mirror>

<id>alimaven</id>

<name>aliyun maven</name> <url>http://maven.aliyun.com/nexus/content/groups/public/</url>

<mirrorOf>central</mirrorOf>

</mirror>

步骤2:修改pom.xml文件

      <id>aliyunmaven

      <url>http://maven.aliyun.com/nexus/content/groups/public/

</repositories>

修改这两处后,问题解决。

上一篇 下一篇

猜你喜欢

热点阅读