IDEA在导入jdbc包时,pom文件出现:Failed to read artifact descriptor for org.springframework.boot:spring-boot-starter-jdbc。

解决方法:将仓库的地址换为阿里云的仓库,重新导入依赖,错误消失!

<!--修改仓库为阿里云-->
    <repositories>
        <repository>
            <id>aliyun-repos</id>
            <url>http://maven.aliyun.com/nexus/content/groups/public/</url>
            <snapshots>
                <enabled>false</enabled>
            </snapshots>
        </repository>
    </repositories>
    <pluginRepositories>
        <pluginRepository>
            <id>aliyun-plugin</id>
            <url>http://maven.aliyun.com/nexus/content/groups/public/</url>
            <snapshots>
                <enabled>false</enabled>
            </snapshots>
        </pluginRepository>
    </pluginRepositories>

 

posted on 2020-08-11 18:11  wyhluckydog  阅读(1551)  评论(0编辑  收藏  举报