美文网首页
运行springboot项目报红https://repo.mav

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

作者: 龙贝子 | 来源:发表于2020-06-15 22:10 被阅读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>

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

相关文章

网友评论

      本文标题:运行springboot项目报红https://repo.mav

      本文链接:https://www.haomeiwen.com/subject/fchkxktx.html