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

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

问题描述

我遇到了Maven POM文件的一个问题,它无法找到火花依赖并且返回错误:
无法读取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 repo以重新加载它,仍然没有骰子。

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

<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天全站免登陆