intellij出现dependency ‘xxx‘not found
生活随笔
收集整理的這篇文章主要介紹了
intellij出现dependency ‘xxx‘not found
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
如下,首先依賴是從mvnrepository.com中下載的
然后也$MAVEN/conf/settings.xml配置了mvnrepository.com
但是就是報告dependency not found.
這是怎么回事呢?
原因是我在用http訪問的時候碰到這么個提示.
所以思來想去,最終解決辦法,把settings.xml中的mirror修改如下.
解決方案1:
http://repo1.maven.org/maven2/
改成
https://repo1.maven.org/maven2/
解決方案2
https://maven.aliyun.com/mvn/search中
搜索發現國內阿里的庫沒有鏡像1.11.2的版本
所以在pom.xml中把原來的:
降低版本為:
<dependency><groupId>org.apache.flink</groupId><artifactId>flink-table_2.11</artifactId><version>1.7.2</version></dependency>即可
總結
以上是生活随笔為你收集整理的intellij出现dependency ‘xxx‘not found的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: wordpress使用retro方案出现
- 下一篇: 苹果等美股七巨头总市值达11万亿美元 是