maven插件没有指定对应的版本产生的——Plugin not found in any plugin repository -> [Help 1]错误

当在POM文件中使用插件时没有指定明确版本,Maven无法确定最新版本,导致Pluginnotfoundinanypluginrepository->[Help1]错误。这可能是由于POM中缺少<version>元素或者命令行中未指定插件版本。解决方法是为报错的插件添加对应的版本信息。
摘要由CSDN通过智能技术生成

3. Plugin not found in any plugin repository -> [Help 1]

  1. 官方解释

    • 使用插件没有给出一个明确的版本

    This error occurs when you employ a plugin without giving an explicit version for it and Maven fails to determine the latest release version of this plugin. In other words, a <plugin> or <extension> declaration in the POM without a <version> element or a command line like mvn some-plugin:some-goal can trigger this error. Possible causes for this error are

  1. 问题

    [ERROR] Error resolving version for plugin ‘org.apache.maven.plugins:maven‐resources‐plugin’ from the repositories [local (D:\apache-maven-3.6.3\maven_repository), alimaven (http://maven.aliyun.com/nexus/content/repositories/central/)]: Plugin not found in any plugin repository -> [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/PluginVersionResolutionException

    Process finished with exit code 1

  1. 解决

    • 给对应的报错插件,添加对应的使用的相关版本
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值