user6663706
user6663706

Reputation:

Failed to read artifact descriptor Spring Boot

I added dependency for spring-boot-starter-data-jpa and spring-boot-starter-jdbc. And I get problem: "Failed to read artifact descriptor..."

This is error

I downloaded jars and added manually in folder where are all dependency and I added like Referenced Libraries, but didn't help. Can someone help me?

This is part of pom.xml:

    <parent>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-parent</artifactId>
        <version>1.5.2.RELEASE</version>
        <relativePath/> <!-- lookup parent from repository -->
    </parent>

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

        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-data-jpa</artifactId>
        </dependency>

Upvotes: 7

Views: 37076

Answers (3)

zakaria ahmed
zakaria ahmed

Reputation: 1

Just reload the pom.xml file and make sure that the project connected to the Internet.

Upvotes: 0

It is very simple to resolve this issue. Just delete the .m2 folder from the users/username/ location and refresh the maven project in your eclipse workspace or delete the project and import again.

Upvotes: 3

Praneeth Ramesh
Praneeth Ramesh

Reputation: 3564

Downloading the jars and adding manually will not add the dependencies and child dependecies. Also the pom would not have been updated. Try deleting the following folders

org.springframework.boot:spring-boot-starter-jdbc 

org.springframework.boot:spring-boot-starter-data-jpa

from your maven repository(.m2) and refresh the maven project(ALT + F5).

Then u get can get the actual error(if exists) which u can post it here.

Upvotes: 15

Related Questions