Issue
I added dependency for spring-boot-starter-data-jpa
and spring-boot-starter-jdbc
. And I get problem: "Failed to read artifact descriptor..."
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>
Solution
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.
Answered By - Praneeth Ramesh
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.