pom文件中,mysql依赖报错:mysql:mysql-connector-java:jar:unknown was not found in http:maven.aliyun.comnex
作者:mmseoamin日期:2023-12-25

spring项目导入sql依赖时报错:mysql:mysql-connector-java:jar:unknown was not found in http://maven.aliyun.com/nexus/content/reposi…

解决办法

最好添加mysql版本号

pom文件中,mysql依赖报错:mysql:mysql-connector-java:jar:unknown was not found in http:maven.aliyun.comnex,在这里插入图片描述,第1张


        
            mysql
            mysql-connector-java
            8.0.32
            runtime
        

报错消失

一定记得刷新

pom文件中,mysql依赖报错:mysql:mysql-connector-java:jar:unknown was not found in http:maven.aliyun.comnex,在这里插入图片描述,第2张