美文网首页
Maven工程pom.xml中spring-boot-start

Maven工程pom.xml中spring-boot-start

作者: 软萌白甜Hedy | 来源:发表于2019-10-08 17:00 被阅读0次

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

        <mirror> 
            <id>alimaven</id> 
            <name>aliyun maven</name> 
            <url>http://maven.aliyun.com/nexus/content/repositories/central/</url> 
            <mirrorOf>central</mirrorOf> 
        </mirror>
    
    

    相关文章

      网友评论

          本文标题:Maven工程pom.xml中spring-boot-start

          本文链接:https://www.haomeiwen.com/subject/smzbpctx.html