記一次極其坑爹的Maven無法下載相關Jar包的問題:IDEA問題

1.背景

新加一個依賴,然後準備下載結果發現總是報錯。xxxxx.lastUpdate,昨天還好好的,今天就不可以了。

<!-- https://mvnrepository.com/artifact/org.apache.kudu/kudu-spark2 -->
  <dependency>
      <groupId>org.apache.kudu</groupId>
      <artifactId>kudu-spark2_2.11</artifactId>
      <version>1.8.0</version>
  </dependency>

報錯如圖

#NOTE: This is a Maven Resolver internal implementation file, its format can be changed without prior notice.
#Mon Jun 24 11:47:14 CST 2019
@default-dtwave-http://xxxx.com/repository/public/.lastUpdated=1561348034073
http\://maven.aliyun.com/nexus/content/groups/public/.error=Could not transfer artifact org.apache.hadoop\:hadoop-client\:pom\:unknown from/to alimaven (http://maven.aliyun.com/nexus/content/groups/public/)\: Connect to 127.0.0.1\:1080 [/127.0.0.1] failed\: Connection refused
@default-alimaven-http\://maven.aliyun.com/nexus/content/groups/public/.lastUpdated=1561348034082
http\://xxxx..com/repository/public/.error=Could not transfer artifact org.apache.hadoop\:hadoop-client\:pom\:unknown from/to dtwave (http\://xxxx..com/repository/public/)\: Connect to 127.0.0.1\:1080 [/127.0.0.1] failed\: Connection refused

網絡的人員說好像是走了代理,但是我本地沒啓動任何代理相關的軟件。用的是公司內網的wifi,嘗試直接在瀏覽器中輸入 http://xxxx…com/repository/public/ 發現可以打開,也就意味着我能訪問倉庫。

最可氣的是 我和我同事的環境 都是連接公司的wifi 同一個 內網wifi,然後他們能正常下載 我的不能正常下載,然後我使用他們的settings.xml配置文件仍然不可以下載。

刪除xxx.jar.lastUpdated 重新導入也是不可以的。

後來我想是不是IDEA的問題,然後找到
在這裏插入圖片描述發現IDEA也沒有啓動任何代理。

鬱悶了。後來靈機一動,我去IDEA官網下載了一個最新的IDEA,然後重新導入項目,結果就好了。鬱悶。

我都懷疑是不是 因爲我的IDEA是 2017版本的,一直沒更新,然後官方故意弄得一個問題,想讓我使用新的版本了。
在這裏插入圖片描述

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章