gpt4 book ai didi

maven - 缺少 Artifact org.springframework.boot:spring-boot-starter-parent:jar:1.3.2.RELEASE

转载 作者:行者123 更新时间:2023-12-03 21:16:46 26 4
gpt4 key购买 nike

我在POM.xml中遇到以下关于Spring Boot依赖项的错误。

Missing artifact org.springframework.boot:spring-boot-starter-parent:jar:1.3.2.RELEASE



我尝试了以下链接中提供的所有解决方案,但没有解决问题的方法:
Maven2: Missing artifact but jars are in place

最佳答案

之所以会出现此错误,是因为Maven Central中没有spring-boot-starter-parent的jar Artifact ,因为spring-boot-starter-parent使用pom打包。这样做的原因是因为它打算用作父pom:

<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>1.3.2.RELEASE</version>
</parent>

另外,您可以导入托管依赖项(如果您打算这样做):
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>1.3.2.RELEASE</version>
<scope>import</scope>
<type>pom</type>
</dependency>
</dependencies>
</dependencyManagement>

您可以在 Importing Dependencies section of the Introduction to the Dependency Mechanism文章中阅读有关导入依赖项的更多信息。

关于maven - 缺少 Artifact org.springframework.boot:spring-boot-starter-parent:jar:1.3.2.RELEASE,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35745971/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com