IDEA的pom文件总是出现Failed to read artifact descriptor forXXX:jar:unknow的解决方法


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>

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM