The artifact mysql:mysql-connector-java:jar:8.0.33 has been relocated to com.mysql:mysql-connector-j:jar:8.0.33: MySQL Connector/J artifacts moved to reverse-DNS compliant Maven 2+ coordinates.
1.异常信息
The artifact mysql:mysql-connector-java:jar:8.0.33 has been relocated to com.mysql:mysql-connector-j:jar:8.0.33: MySQL Connector/J artifacts moved to reverse-DNS compliant Maven 2+ coordinates.
2. 原因和解决方式
这个Maven坐标的jar包已经被重新定位到了新的坐标com.mysql:mysql-connector-j:jar:8.0.33
。这是由于MySQL Connector/J的Maven坐标从原来的mysql:
前缀变为了com.mysql:
前缀,以符合Maven 2+的命名规范,即使用反向DNS(reverse-DNS)命名空间。
由原有的maven依赖:
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<version>8.0.33</version>
</dependency>
修改为:
<dependency>
<groupId>com.mysql</groupId>
<artifactId>mysql-connector-j</artifactId>
<version>8.0.33</version>
</dependency>
标签:8.0,33,jar,connector,mysql,com
From: https://blog.51cto.com/u_4981212/9437091