Could not find artifact com.nmgjc:dwzj-sdk:pom:1.0.0.1 in nexus
时间: 2023-10-14 15:58:59 浏览: 128
wxpay-sdk-3.0.9_POM_
回答: 根据您提供的引用内容,问题的原因是在编译或打包项目时,无法找到com.nmgjc:dwzj-sdk:pom:1.0.0.1这个依赖项。\[1\]解决方法是给mysql-connector-j指定版本,您可以在pom.xml文件中添加以下依赖项来指定版本:<dependency><groupId>com.mysql</groupId><artifactId>mysql-connector-j</artifactId><version>8.0.33</version><scope>runtime</scope></dependency>。\[2\]此外,您还可以尝试以下解决方法:首先打开该项目的maven管理界面,找到该项目的根目录,打开项目的生命周期,点击clean清除之前编译失败的target文件夹内容,然后再使用install命令将根目录的父包的快照文件安装到本地仓库中。\[3\]希望这些解决方法能够帮助您解决问题。
#### 引用[.reference_title]
- *1* *3* [已解决:Could not find artifact xxx](https://blog.csdn.net/good_good_xiu/article/details/116396747)[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^v91^insertT0,239^v3^insert_chatgpt"}} ] [.reference_item]
- *2* [Maven报错Could not find artifact com.mysql:mysql-connector-j:pom:unknown in aliyunmaven解决及分析](https://blog.csdn.net/kkk990101/article/details/131138845)[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^v91^insertT0,239^v3^insert_chatgpt"}} ] [.reference_item]
[ .reference_list ]
阅读全文