无法读取工件描述符:IntelliJ [英] Failed to Read Artifact Descriptor: IntelliJ

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

问题描述

我的 Maven POM 文件遇到问题,无法找到 spark 依赖项并返回错误:无法读取 org.apache.spark:spark-streaming-kafka_2.10:jar:1.2.1 的工件描述符

I am running into an issue with my Maven POM file where its unable to find spark dependency and is returning with error: Failed to read artifact descriptor for org.apache.spark:spark-streaming-kafka_2.10:jar:1.2.1

我已经确认这对任何公司防火墙都不是问题,因为其他所有依赖项都已正确加载,仅此一项.

I've confirmed its not an issue with any corporate firewall as every other dependency is loaded in properly, just this one.

我还能够在我的 Maven 设置中确认它正在尝试从以下存储库中提取.我尝试删除本地机器上的 .m2 存储库以重新加载它,但仍然没有骰子.

I have also been able to confirm in my maven settings it is attempting to pull from the following repo. I tried deleting the .m2 repo on my local machine in order to reload it, still no dice.

http:///repo.maven.apache.org/maven2/org/apache/spark/spark-streaming-kafka_2.10/1.2.1/

下面附上我的pom文件

Attached below is my pom file

<groupId>my.group.id</groupId>
<artifactId>sentiment</artifactId>
<version>1.0-SNAPSHOT</version>
<name>NPITWITTER</name>

<properties>
</properties>

    <dependencies>
        <dependency>
            <groupId>com.sparkjava</groupId>
            <artifactId>spark-core</artifactId>
            <version>1.1.1</version>
        </dependency>
        <dependency>
            <groupId>org.apache.spark</groupId>
            <artifactId>spark-streaming-kafka_2.10</artifactId>
            <version>1.2.1</version>
        </dependency>
        <dependency>
            <groupId>org.apache.spark</groupId>
            <artifactId>spark-core_2.10</artifactId>
            <version>1.2.1</version>
        </dependency>
        <dependency>
            <groupId>org.apache.spark</groupId>
            <artifactId>spark-streaming_2.10</artifactId>
            <version>1.2.1</version>
        </dependency>
        <dependency>
            <groupId>org.apache.spark</groupId>
            <artifactId>spark-hive_2.10</artifactId>
            <version>1.2.1</version>
        </dependency>
        <dependency>
            <groupId>org.apache.spark</groupId>
            <artifactId>spark-sql_2.10</artifactId>
            <version>1.2.1</version>
        </dependency>


    </dependencies>

推荐答案

已解决,因为启用了代理设置.使用 mvn -U clean install 重新运行,一切都已修复.

Resolved it, was due to a proxy setting that was enabled. Re-ran with mvn -U clean install and all was repaired.

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

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