idea使用maven加载jar包报错

报错信息如下:

Blocked mirror for repositories: [getui-nexus (http://mvn.gt.igexin.com/nexus/content/repositories/releases/, default, releases+snapshots), central (http://repo1.maven.org/maven2, default, releases)]

Since Maven 3.8.1 http repositories are blocked.

Possible solutions:
- Check that Maven pom files not contain http repository http://mvn.gt.igexin.com/nexus/content/repositories/releases/
- Check that Maven pom files not contain http repository http://repo1.maven.org/maven2
- Add a mirror(s) for http://mvn.gt.igexin.com/nexus/content/repositories/releases/, http://repo1.maven.org/maven2 that allows http url in the Maven settings.xml
- Downgrade Maven to version before 3.8.1 in settings

重点看标红的这一句,告诉你要把maven版本降低。

因为我下载使用的最新的idea,自带maven3.8.3,貌似最新的不支持http的包,所以乖乖降低版本吧。

在官网直接查找即可。

下载页链接

往下翻

 

 点击后

 

 

 

 在idea通过setting进行设置即可

 

posted @ 2022-01-20 21:26  背着泰山找黄河  阅读(5117)  评论(0编辑  收藏  举报