为什么 IntelliJ 不安装依赖项



我试图添加以下依赖与IntelliJ的pom.xml

<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
</dependency>

问题是spring-boot-devtools没有被添加到我的"外部库"中。文件夹,按照https://www.jetbrains.com/help/idea/work-with-maven-dependencies.html#maven_dependency_multi_module

IntelliJ给了我错误:依赖项"org.springframework.boot:spring-boot-devtools:3.0.1"未找到

为什么没有正确添加新的依赖项?

为了安装依赖项,您必须右键单击pom.xml>Maven在重新加载项目。依赖项被添加到外部库文件夹中,pom.xml中的错误消失

最新更新