Maven工程pom.xml中spring-boot-starter-parent失败

新建一个Maven工程时,发现在pom.xml添加依赖,但parent部分一直是红色,其他依赖也无法引入,找了很多问题,最后在.m2/setting.xml中加入了阿里云镜像配置,添加完毕后,回到项目刷新,发现问题解决。

     
        alimaven 
        aliyun maven 
        http://maven.aliyun.com/nexus/content/repositories/central/ 
        central 
    

你可能感兴趣的:(Maven工程pom.xml中spring-boot-starter-parent失败)