Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

I am getting the following error in POM.xml for spring boot dependency.

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

I tried all the solutions given in the following link but nothing solved my problem:
Maven2: Missing artifact but jars are in place

like image 450
deen Avatar asked Mar 02 '16 11:03

deen


People also ask

How do I override Jackson Databind version in spring boot?

Adding jackson-bom. version to your properties section of the pom. xml file should update jackson dependencies. This will override jackson version in the Spring Boot Parent POM.

What is spring boot starter parent?

Spring Boot Starter Parent is a starter project that provides the default configuration for spring-based applications. It is added as a parent in the pom. xml file.

Which version of spring is compatible with Spring boot?

Spring Boot 2.7. 5 requires Java 8 and is compatible up to and including Java 19. Spring Framework 5.3. 23 or above is also required.


1 Answers

You're getting this error because there is no jar artifact for spring-boot-starter-parent in maven central, since spring-boot-starter-parent uses pom packaging. The reason for that is because it's intended to be used as a parent pom:

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

Alternatively, you can just import the managed dependencies if that is what you intended to do:

<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> 

You can read more about importing dependencies in the Importing Dependencies section of the Introduction to the Dependency Mechanism article.

like image 134
weeniearms Avatar answered Oct 24 '22 03:10

weeniearms