No plugin found for prefix 'dependency' in the current project and in the plugin groups

2023-05-16

在研究SpringBoot2.2.5启动原理的时候,下载SpringApplication.class类文档的时候,发现报错!出现错误:
错误示例

解决办法


在项目pom.xml目录下执行

mvn dependency:resolve -Dclassifier=sources

正常来说,这么就可以解决的,但是我在运行的时候出现了一个bug

No plugin found for prefix 'dependency' in the current project and in the plugin groups [org.apache.maven.plugins, org.codehaus.mojo] available from the repositories [local (C:
\ProgramFiles\maven\apache-maven-3.6.1-bin\MavenRepository), nexus-aliyun (http://maven.aliyun.com/nexus/content/groups/public)] -> [Help 1]

错误提示
通过https://stackoverflow.com/questions/48939973/maven-no-plugin-found-for-prefix-dependency-in-the-current-project-and-in-the 提示,解决问题,

pom.xml文件中添加:

<plugins>
  <plugin>
    <groupId>org.apache.maven.plugins</groupId> 
    <artifactId>maven-dependency-plugin</artifactId> 
    <version>3.0.2</version> 
    <executions> 
      <execution> 
        <id>copy-dependencies</id> 
        <phase>package</phase> 
        <goals> 
          <goal>copy-dependencies</goal> 
        </goals> 
        <configuration> 
          <!-- configure the plugin here --> 
        </configuration> 
      </execution> 
    </executions> 
  </plugin> 
</plugins>
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

No plugin found for prefix 'dependency' in the current project and in the plugin groups 的相关文章

  • gitpush出现remote: Support for password authentication was removed on August 13, 2021.

    git push 报错 xff1a Username span class token keyword for span span class token string 39 https github com 39 span span cl
  • 【STL十八】算法——不修改序列的操作(for_each、count、find、equal、search)

    STL十八 算法 不修改序列的操作 xff08 for each count find equal search xff09 一 简介二 头文件三 分类四 不修改序列的操作1 for each2 count count if3 find f
  • Tips for Qt

    Based on Qt 5 14 0 Qt Creator 4 11 0 1 在UI设计界面添加控件后 xff0c 要编译一下 xff0c 再到编辑界面写代码 xff0c 否则系统不识别新添加的控件 2 多看帮助文档 xff0c 好多开发时
  • FsonFormat Eclipse Plugin 一键解决复杂JSON ,快速实现JavaBean

    简介 当开发人员或者测试人员在开发或者测试接口中 去获取到接口返回的结果值时 都要通过JSONObject和JSONArray解析json结构 然后再通过For循环遍历相应的Key 最后把value值进行App展示或者校验是否预期结果 编写
  • Unity C++ 底层渲染(low level) plugin

    Unity C 底层渲染 plugin 1 Android Unity Render 1 1 android handle all the process 1 2 unity handle all the process 1 3 andro
  • maven多环境打包实现web.xml和context.xml中的占位符变量替换

    在springboot或传统springmvc的tomcat项目中 为了实现spring容器文件中的变量替换 我们通常可以在项目的resource目录下新建几个环境目录 例如rd test dev stress online等等 然后再在对
  • Python语法:... for ... in ... if ...

    Python中 for in if 语句是一种简洁的构建List的方法 从for给定的List中选择出满足if条件的元素组成新的List 其中if是可以省略的 下面举几个简单的例子进行说明 for in for in 语句 实例如下 1 a
  • IDEA2020.1中plugins中搜索不到插件问题解决

    方法1 老版本的 File gt setting界面 gt Updates gt 去掉Use secure connection的勾 方法2 https plugins jetbrains com 设置完多等一会就能搜索了 再不行就用手机热
  • Java 控制结构练习题

    练习1 某人有100 000元 每经过一次路口 需要交费 规则如下 1 当现金 gt 50000时 每次交5 2 当现金 lt 50000时 每次交1000 编程计算该人可以经过多少次路口 要求 使用while break方式完成 publ
  • 文献管理工具之 Jabref vs Zotero 与 Zotero 使用 markdown

    本文章为自创文章 未获允许请勿随意转载 转载请带上出处 谢谢合作 本文链接 https blog csdn net qq 48019718 article details 114642743 0 前言 最近闲来无事 等信息 ing 就在做毕
  • 教妹学Java(十五):for循环详解

    你好呀 我是沉默王二 一枚颜值与才华俱在的程序员 本篇教程通过我和三妹对话的形式来谈一谈 for while do while 循环之间的差别 以及重点介绍一下 for 循环 while do while 会在接下来的教程中单独介绍 教妹学
  • Linux中./configure --prefix命令是什么意思?

    概念 源码的安装一般由3个步骤组成 配置 configure 编译 make 安装 make install Configure是一个可执行的脚本 它有很多选项 在待安装的源码路径下使用命令 configure help 输出详细的选项列表
  • UnityNative Plugin 导出时遇到的坑

    必须要在链接的输入里面添加模块定义文件 文件大概是这样 就是为了阻止名称混淆 否则UnityPluginLoad UnityPluginUnload这两个函数无法自动被Unity加载 file used by Visual Studio p
  • 超详细webpack的plugin讲解,看不懂算我输,案例>原理>实践

    前言 本篇文章为webpack系列文章的第三篇 主要内容是对webpack的plugin进行详细的讲解 从使用 到原理 再到自己开发一个plugin 对每个过程都会进行详细的分析介绍 如果你对webpack了解的还比较少 建议你先阅读以下往
  • 批处理学习教程(4)------for的用法

    循环 for 1 如果批处理不具备批量处理的功能 那么它就徒有虚名了 而命令 for 在某种意义上彻底体现出了批处理的强大快捷省事批量的作用 在看过 for 后 可以归纳出 for 大致可以分三种常用的类型 或者叫使用方法 从针对的循环目标
  • python中的排序列表

    如果我有一个字符串列表 例如 a143 txt a9 txt 如何按列表中的数字而不是字符串按升序对其进行排序 IE 我想 a9 txt 出现在之前 a143 txt since 9 lt 143 thanks 这就是所谓的 自然排序 从h
  • 为 PHP 数组的每一项添加前缀

    我有一个 PHP 数字数组 我想在其前面加上减号 我认为通过使用爆炸和内爆这是可能的 但我对 php 的了解不可能真正做到这一点 任何帮助 将不胜感激 本质上我想从这里开始 array 1 2 3 4 5 to this array 1 2
  • 常量的 k 前缀从何而来?

    常量以前缀开头是一种很常见的做法k e g k pi 但什么是k mean 难道只是这样c已经意味着char 这是一个历史上的奇怪现象 在喜欢盲目应用他们不理解的编码标准的团队中仍然是常见的做法 很久以前 大多数商业编程语言都是弱类型的 自
  • int b=0,a=1;b=++a+++a; b 的值是多少?它的计算方法是什么? [复制]

    这个问题在这里已经有答案了 int main int b 0 a 1 initialize a and b b a a calculate assign the value of b print f d b return 0 b 的值是多少
  • ? LIKE(列 || '%')

    我可以有这样的条件吗 SELECT FROM table WHERE LIKE column 哪里的 是一个字符串参数值 例如 这些参数值 当列等于时应返回 true admin products admin products 1 admi

随机推荐