当前位置:网站首页>idea 引入包报错:Unable to provision, see the following errors
idea 引入包报错:Unable to provision, see the following errors
2022-08-08 20:20:00 【虫叽叽】
报错:
java.lang.RuntimeException: org.codehaus.plexus.component.repository.exception.ComponentLookupException: com.google.inject.ProvisionException: Unable to provision, see the following errors:
1) Error injecting constructor, java.lang.NoSuchMethodError: org.apache.maven.model.validation.DefaultModelValidator: method 'void <init>()' not found
at org.jetbrains.idea.maven.server.embedder.CustomModelValidator.<init>(Unknown Source)
while locating org.jetbrains.idea.maven.server.embedder.CustomModelValidator
at ClassRealm[maven.ext, parent: ClassRealm[plexus.core, parent: null]] (via modules: org.eclipse.sisu.wire.WireModule -> org.eclipse.sisu.plexus.PlexusBindingModule)
while locating org.apache.maven.model.validation.ModelValidator annotated with @com.google.inject.name.Named(value="ide")
1 error
role: org.apache.maven.model.validation.ModelValidator
roleHint: ide
1、修改.mvn配置
修改.mvn下文件maven-wrapper.properties
中idea版本配置为适配版本
2、修改默认maven位置
idea默认安装maven在C:\Users\用户名\.m2\wrapper\dists
文件夹下,环境变量下指定mvn版本
边栏推荐
- 劳务派遣业务流程图
- 数据解读!智能座舱“升级战”背后,本土供应链加速崛起
- LeetCode_2_两数相加
- 头条二面:你确定ThreadLocal真的会造成内存泄露?
- LitJson使用中的一些问题
- The WPF main form calls User32's SetWindowPos to set the form to the top, which will cause the problem of grabbing the focus with other forms
- 投资基金定投安全吗
- 阿里财报中的饿了么:守正出奇
- Maykel Studio OpenHarmony Device Development Training Notes - Chapter 6 Study Notes
- C语言初阶-指针
猜你喜欢
随机推荐
给大龄准备转行网络工程师的朋友一些建议
黑猫带你学Makefile第7篇:Makefile简单例程一览
uni-app微信小程序如何渲染markdown
数据解读!智能座舱“升级战”背后,本土供应链加速崛起
LitJson使用中的一些问题
【翻译】用Argo CD揭开企业规模的持续交付的秘密成分
黑猫带你学Makefile第2篇:程序编译的过程
1100 三角形面积
fillder4 keeps prompting the system proxy was changed, watch me solve it
Experience Sharing | A low-cost and fast-paced approach to building an enterprise knowledge management system
使用dedecms自带采集功能的文字过滤与替换
方舟开服务器教程——开服配置常见问题及解决方法
测试计划
Categorized input and output, Go lang1.18 introductory refining tutorial, from Bai Ding to Hongru, go lang basic data types and input and output EP03
互联网技术从业者怎么解决系统高并发?
黑猫带你学Makefile第9篇:menuconfig/Kconfig/deconfig/.config及Makefile之间的关系
用 Antlr 重构脚本解释器
【分享】如何在集简云平台自己进行应用开发?
如何用WebSocket打造Web端IM即时通讯聊天
WPF主窗体调用 User32的SetWindowPos 设置窗体置顶会导致与其他窗体抢夺焦点的问题