报错场景如下:
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
原因:IDEA的Maven和本地Maven冲突,需要修改IDEA Maven的配置文件。
只需要进入IDEA的安装目录下:
IntelliJ IDEA 2023.3\plugins\maven\lib\maven3\conf
找到settings文件
在文件中找到如下内容,然后注释掉:
之后再去IDEA刷新Maven就不会有问题了。
标签:maven,http,settings,earlier,IDEA,Maven,报错 From: https://www.cnblogs.com/rainbow-1/p/18022418