问题描述
在pom.xml文件中添加依赖,Maven projects Dependencies中的依赖包红线(nuKnwon)
问题出现的平台版本及自己尝试过哪些方法
intellij idea 2018.2.6
Maven 3.6.0
删除添加到pom.xml文件中新加入的jar依赖,待Dependencies中没有了依赖之后,在次添加jar依赖。
相关代码
// 请把代码文本粘贴到下方(请勿用图片代替代码)
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-eureka</artifactId>
</dependency>
你期待的结果是什么?实际看到的错误信息又是什么?
期待看到的结果是 Dependencies 中正常依赖。
在这里刷新几下
也有可能是你 maven 连接的中央仓库访问太慢,资源还没下载下来,可以试试配置成阿里的那个 maven 镜像仓库。