解决maven构建时警告:The artifact xxx has been relocated to xxx
·
最近写的项目在构建时出现警告内容:
The artifact mysql:mysql-connector-java:jar:8.0.33 has been relocated to com.mysql:mysql-connector-j:jar:8.0.33
意为:该组织下的模块:mysql:mysql-connector-java:jar:8.0.33已经搬迁到
com.mysql:mysql-connector-j:jar:8.0.33
通过Maven Repository查询:
只需将引入的依赖更换到新的坐标即可消除该警告:
<dependency>
<groupId>com.mysql</groupId>
<artifactId>mysql-connector-j</artifactId>
<version>8.0.33</version>
</dependency>
更多推荐
已为社区贡献2条内容
所有评论(0)