[目录]
开发环境
名称 | 版本 |
---|---|
操作系统 | Windows 10 X64 |
JDK | JDK1.8(jdk-8u151-windows-x64) |
IntelliJ IDEA | IntelliJ IDEA 2018.3 |
Maven | Maven 3.6.0 |
问题描述
pom.xml
中引用下面的组件
<!--Turbine -->
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-netflix-turbine</artifactId>
</dependency>
提示错误
Dependency 'org.springframework.cloud:spring-cloud-starter-netflix-turbine:<unknown>' not found 更少... (Ctrl+F1)
Inspection info: Inspects a Maven model for resolution problems.
原因分析
找了 Maven
的配置,引用的关键字等,都没有问题,后来发现在 pom.xml
的 66 行有下面的文字,是不小心写上去的,去掉之后就可以了,以后遇到这个问题,首先检查 pom.xml
是否正确