No plugin found for prefix 'denpendecy' in the current project and in the plugin

本文记录了一次使用Maven依赖树插件时遇到的拼写错误问题及解决过程。错误源于插件前缀denpendecy的拼写错误,正确的命令为mvndependency:tree。文章提供了错误日志、原因分析及解决方案。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

今天在使用mvn denpendecy:tree查看maven依赖树的时候失败了,错误日志如下:

[ERROR] No plugin found for prefix 'denpendecy' in the current project and in the plugin groups [org.sonarsource.scanner.maven, org.apache.maven.plugins, org.codehaus.mojo] available from the repositories [local (C:\Users\wuxiaoyuan\.m2\repository), central (ht
tp://mvn.pajk-ent.com/nexus/content/groups/public)] -> [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/NoPluginFoundForPrefixException

根据日志提示的帮助文档:http://cwiki.apache.org/confluence/display/MAVEN/NoPluginFoundForPrefixException
This can happen when invoking a plugin from the command line by giving only its prefix instead of its group and artifact id, e.g. in mvn help:effective-pom the token help is the plugin prefix and can serve as an abbreviation of org.apache.maven.plugins:maven-help-plugin.
中文含义:当仅通过插件前缀而不是groupIdartifactId从命令行调用插件时,可能会发生这种情况。
例如,mvn help:effective-pom可以作为mvn org.apache.maven.plugins:maven-help-plugin的缩写。

鉴于仅使用前缀的情况下会发生这种错误,那么便采用全命令临时解决了依赖树的查看问题:
mvn org.apache.maven.plugins:maven-dependency-plugin:tree
事后对比mvn denpendecy:tree发现dependency拼写错误

正确的命令:mvn dependency:tree

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值