The artifact mysql:mysql-connector-java:jar:8.0.33 has been relocated to com.mysql:mysql-connector

avatar
作者
猴君
阅读量:0

项目在打包的时候提示 The artifact mysql:mysql-connector-java:jar:8.0.33 has been relocated to com.mysql:mysql-connector-j:jar:8.0.33,这个提示就是说此模块已经迁移到新的位置了。

进入Mvn Repository,查询 mysql-connector-java 能看到以下提示:

就说明了已迁移至的位置,直接点击This artifact was moved to 下面的链接,跳转至 MySQL Connector/J:

然后在MySQL Connector/J页面点击8.0.33,直接拷贝出来替换pox.xml里的mysql-connector-java:

很多同学打不开MvnRepository,可直接复制下方代码:

<dependency>     <groupId>com.mysql</groupId>     <artifactId>mysql-connector-j</artifactId>     <version>8.0.33</version> </dependency>

pom.xml中替换:

再来打包,就没有以上警告了:

参考:The artifact mysql:mysql-connector-java:jar:8.0.33 has been relocated to com.mysql:mysql-connector-j:jar:8.0.33-技术分享-老麻

广告一刻

为您即时展示最新活动产品广告消息,让您随时掌握产品活动新动态!