无法读取工件描述符Spring Boot [英] Failed to read artifact descriptor Spring Boot

查看:787
本文介绍了无法读取工件描述符Spring Boot的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我添加了 spring-boot-starter-data-jpa spring-boot-starter-jdbc 。而且我遇到问题:无法读取工件描述符...

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

我下载了jar并手动添加到文件夹中,所有的依赖关系,我添加了参考库,但没有帮助。
有人可以帮我吗?

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?

这是pom.xml的一部分:

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>


推荐答案

下载jars并手动添加不会添加依赖项和儿童倚靠。此外,pom也不会被更新。
尝试删除以下文件夹

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

maven仓库(.m2)并刷新maven项目(ALT + F5)。

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.

这篇关于无法读取工件描述符Spring Boot的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆