Failed to Read Artifact Descriptor: IntelliJ

780    Asked by ArunSharma in Python , Asked on May 27, 2021

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.

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/

Attached below is my pom file

my.group.id
sentiment
1.0-SNAPSHOT
NPITWITTER



    
         com.sparkjava
         spark-core
         1.1.1
    
    
         org.apache.spark
         spark-streaming-kafka_2.10
         1.2.1
    
    
         org.apache.spark
         spark-core_2.10
         1.2.1
    
    
         org.apache.spark
         spark-streaming_2.10
         1.2.1
    
    
         org.apache.spark
         spark-hive_2.10
         1.2.1
    
    
         org.apache.spark
         spark-sql_2.10
         1.2.1
    
Answered by Amit jaisawal

I encountered failed to read artifact descriptor for org apache maven plugins, the same issue:

I tried to fix the proxy settings, and also ran the command mvn –U clean install but none of them worked.

But finally after a lot of research I got it resolved by enabling the setting given below (highlighted in yellow)

When you are on Intellij, go to File -> Settings -> Build, Execution, Deployments -> Maven Check the box, ‘Always update snapshots’



Your Answer

Interviews

Parent Categories