Could not find artifact org.apache.maven.plugins:maven-source-plugin:jar: in nexus-releases (http://192.168.30.58:8081/repository/public/)
时间: 2024-01-29 18:02:04 浏览: 166
根据引用\[3\]中提到的异常原因,"Could not find artifact org.apache.maven.plugins:maven-source-plugin:jar: in nexus-releases (http://192.168.30.58:8081/repository/public/)"的问题可能是由于子module没有得到父模块的依赖引起的。解决这个问题的方法有以下几种:
1. 在IDE中的Maven面板中点击刷新按钮,以确保所有依赖都被正确加载。
2. 如果刷新按钮没有成功解决问题,可以尝试在Maven面板中输入以下命令进行刷新:
-Dmaven.wagon.http.ssl.insecure=true -Dmaven.wagon.http.ssl.allowall=true -Dmaven.wagon.http.ssl.ignore.validity.dates=true
然后再次点击刷新按钮。
3. 如果以上方法仍然无效,可以尝试重新设置settings文件和repository的地址,确保Maven能够正确访问到所需的依赖。
希望以上方法能够帮助您解决问题。
#### 引用[.reference_title]
- *1* [Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.22.2:test (default-test) on](https://blog.csdn.net/qq_40615403/article/details/112966536)[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^control,239^v3^insert_chatgpt"}} ] [.reference_item]
- *2* [Maven 打包提示出错Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.22.2:test....](https://blog.csdn.net/qq_42928918/article/details/111571057)[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^control,239^v3^insert_chatgpt"}} ] [.reference_item]
- *3* [Maven异常:Could not find artifact](https://blog.csdn.net/yangzhe19931117/article/details/128128927)[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^control,239^v3^insert_chatgpt"}} ] [.reference_item]
[ .reference_list ]
阅读全文