解决[ERROR] Plugin org.mybatis.generator:mybatis-generator-maven-plugin:1.3.7 or one of its dependenci

在使用maven管理项目时候,难免会出现一些找不到依赖的问题

入下面这种

如果出现上面的红色报错,此时还用maven 的clean 或者install操作

你会看到控制台出现以下信息

INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building mybatis-generator 0.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
Downloading: https://maven.aliyun.com/repository/public/org/mybatis/generator/mybatis-generator-maven-plugin/1.3.7/mybatis-generator-maven-plugin-1.3.7.pom
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 5.056 s
[INFO] Finished at: 2022-06-01T10:42:06+08:00
[INFO] Final Memory: 13M/232M
[INFO] ------------------------------------------------------------------------
[ERROR] Plugin org.mybatis.generator:mybatis-generator-maven-plugin:1.3.7 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.mybatis.generator:mybatis-generator-maven-plugin:jar:1.3.7: Could not transfer artifact org.mybatis.generator:mybatis-generator-maven-plugin:pom:1.3.7 from/to nexus-aliyun (https://maven.aliyun.com/repository/public): Connect to maven.aliyun.com:443 [maven.aliyun.com/127.0.1.2] failed: Connection refused: connect -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginResolutionException

Process finished with exit code 1

注意这句

点击它

 得到一个下载的文件

你仔细看控制台的提示信息发现

 [ERROR] Plugin org.mybatis.generator:mybatis-generator-maven-plugin:1.3.7 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.mybatis.generator:mybatis-generator-maven-plugin:jar:1.3.7: Could not transfer artifact org.mybatis.generator:mybatis-generator-maven-plugin:pom:1.3.7 from/to nexus-aliyun (https://maven.aliyun.com/repository/public): Connect to maven.aliyun.com:443 [maven.aliyun.com/127.0.1.2] failed: Connection refused: connect -> [Help 1]

他是说不能去xxx服务器下载这个玩意

那就手动下载下来

既然是maven需要下载下来的,肯定是下载到具体某个位置的

那么继续看看我们maven的pom中具体配置的是什么信息

没错了,就是这里  ,这里在你的maven仓库中可找到具体位置

 

 接着把手动下载下来的文件放进来,把.lastUpdated文件删除

再执行install一次看看

仓库位置中增加了几个新的文件

 

以上问题解决

  • 0
    点赞
  • 6
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
在您提供的引用中,出现了一个错误信息"Cannot resolve plugin org.mybatis.generator:mybatis-generator-maven-plugin:1.3.0"。这个错误通常表示Maven无法解析或找到所需的插件。根据您的引用内容,我可以提供以下解决方法: 1. 确保您的Maven配置文件中的依赖项正确配置。检查您的pom.xml文件中是否添加了正确的插件依赖以及其版本号。 2. 检查您的Maven仓库中是否存在所需的插件。您可以尝试删除Maven本地仓库中与该插件相关的文件,然后重新运行Maven命令,以便重新下载并安装插件。 3. 检查您的网络连接是否正常。有时候插件无法下载是由于网络问题导致的。您可以尝试使用其他网络或者使用代理进行连接。 4. 尝试使用更新的插件版本。您提供的引用中使用的是1.3.0版本的插件,尝试使用更高版本的插件,可能会解决该问题。 总结起来,要解决"Cannot resolve plugin org.mybatis.generator:mybatis-generator-maven-plugin:1.3.0"的问题,您可以检查Maven配置文件、Maven仓库、网络连接并尝试更新插件版本。<span class="em">1</span><span class="em">2</span><span class="em">3</span> #### 引用[.reference_title] - *1* *3* [Failed to execute goal org.mybatis.generator:mybatis-generator-maven-plugin:1.3.6:generate (default-](https://blog.csdn.net/qq_52291182/article/details/121033304)[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_1"}}] [.reference_item style="max-width: 50%"] - *2* [Maven更新失败,Cannot resolve plugin org.apache.maven.plugins:maven-compiler-plugin:3.1](https://download.csdn.net/download/weixin_38687277/14888111)[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_1"}}] [.reference_item style="max-width: 50%"] [ .reference_list ]

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值