Could not find artifact mysql:mysql-connector-java:pom:runtime in alimaven
时间: 2023-09-22 18:13:08 浏览: 124
报错信息"Could not find artifact mysql:mysql-connector-java:pom:runtime in alimaven"表示在alimaven仓库中找不到mysql:mysql-connector-java:pom:runtime这个依赖。常见的解决方案是在pom.xml文件中添加正确的依赖版本。根据引用中的示例,可以添加如下依赖配置:
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<version>5.1.43</version>
<scope>runtime</scope>
</dependency>
此配置将添加mysql:mysql-connector-java的5.1.43版本作为runtime依赖,可能可以解决问题。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *3* [Could not find artifact mysql:mysql-connector-java:pom:unknown in central (https://repo.maven.apache](https://blog.csdn.net/weixin_68563064/article/details/130336017)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
- *2* [【已解决】Could not find artifact mysql:mysql-connector](https://blog.csdn.net/m0_37149062/article/details/129788103)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文