Dependency‘org.framework:spring-webmvc:’ not found
maven新建了一个工程,但总是找不到依赖,也就是依赖不能自动下载,即下面情况
idea上面配置maven有两种方法,一种是用idea自带的maven,另一种是自己下载的maven,我试了两种都行不通,依旧是上图的情况
试过的解决方法:
1.检查镜像,这里我换成了阿里云的下载源,看不出来有什么毛病
2.检查IDEA中maven的仓库配置,我用是自定义的仓库,仓库已经在settings.xml中配置过,下图为下载的apache-maven-3.6.3中的settings.xml配置
下载的文件夹,第二个文件夹repository为我新建的本地仓库文件夹
idea中maven配置
检查过后,并没有发现哪出的问题
最后的解决方法:
在idea的自带的mave配置文件中修改settings.xml,引入国内阿里云镜像
maven配置用的idea自己的
发现已经可以下载了
虽然最后可以自动下载依赖了,但自己并没有发现是哪的问题,在此记录一下。