当前位置:网站首页>Idea resolving jar package conflicts
Idea resolving jar package conflicts
2022-07-06 16:59:00 【Xiaoxiamo】
brief introduction
Because usually the project is integrated jar Bao Tai , I encountered a package conflict problem today , Projects that can run yesterday , today Suddenly it can't run 了 ( Later I learned that it was because of the new addition of dependency , There was a conflict ), also The error prompt is inconsistent with the actual situation , This kind of problem is very troublesome , Only try slowly
resolvent
- Find conflicting packages
Click the button in the picture , Or use the shortcut key Ctrl+Alt+Shift+u
As long as there is a red line , It means that there are conflicting packages ( Here is a brief explanation , Generally, the probability of package conflict in development is not much , But like me , What kind of HugeGraph, This niche project , It's very likely that )
Click on maven The upper left corner of the dependency tree ,Show Conflicts/Duplicates, All conflicting dependencies can be displayed
After clicking, my display is - Choose a version jar Package to delete
Here select one to delete jar package , The selection criteria are Choose a higher version or lack some methods jar Delete , For example, we should use the new feature method of high version , Then delete the lower version jar, If you don't use new methods , Just delete the higher version like me ,( Don't worry about deleting mistakes )
Left click to select the dependency to delete
Right click and choose Exclude Or just press the shortcut key Shift+ Delete, You can delete
For example, after I delete , The previous conflict dependency disappeared
- Deletion error jar How to recover the package
Here, considering that we may delete the wrong jar package , How to recover after deleting an error ? We turn on pom.xml file , You can see , Our delete operation just makes maven Excluding this package , It is not a physical deletion , If we want to recover , Remove the excluded content from pom.xml Delete from , The conflict reappears ! - Finally, I would like to thank these bosses who found the problem
I am using HugeGraph Figure database is very small , all 2021 了 , There is no official version , If something goes wrong, you can't find it , Here is an important lesson , Read more official documents , If something goes wrong, we can't find it. We can consider Inquire about Github Of Issues, Of course, we'd better mention it ourselves , You can also view the history of project updates , Maybe your problem is in the new version fix 了 , End
边栏推荐
- TCP的三次握手和四次挥手
- Cartesian tree (modified)
- Eight part essay that everyone likes
- Jedis
- The "advertising maniacs" in this group of programmers turned Tiktok advertisements into ar games
- LeetCode 1561. The maximum number of coins you can get
- LeetCode 1552. Magnetic force between two balls
- 8086 分段技术
- DS18B20數字溫度計系統設計
- LeetCode 1984. Minimum difference in student scores
猜你喜欢
7-10 punch in strategy
When it comes to Google i/o, this is how ByteDance is applied to flutter
~87 animation
服务器端渲染(SSR)和客户端渲染(CSR)的区别
The daemon thread starts redis and modifies the configuration file
汇编课后作业
Audio and video development interview questions
[graduation project] QT from introduction to practice: realize imitation of QQ communication, which is also the last blog post in school.
~76 sprite map
Activiti目录(五)驳回、重新发起、取消流程
随机推荐
"One year after graduation, I won ACL best paper"
ByteDance open source Gan model compression framework, saving up to 97.8% of computing power - iccv 2021
冯诺依曼体系结构
TypeScript基本操作
[unsolved] 7-15 shout mountain
ByteDance technical Interviewer: what kind of candidate do I want to pick most
@RestController、@Controller
登陆验证koa-passport中间件的简单使用
「博士毕业一年,我拿下 ACL Best Paper」
~68 Icon Font introduction
一个数10年工作经验的微服务架构老师的简历
我走過最迷的路,是字節跳動程序員的腦回路
[graduation project] QT from introduction to practice: realize imitation of QQ communication, which is also the last blog post in school.
The "advertising maniacs" in this group of programmers turned Tiktok advertisements into ar games
这116名学生,用3天时间复刻了字节跳动内部真实技术项目
字节跳动春招攻略:学长学姐笔经面经,还有出题人「锦囊」
Introduction to microservices
Continue and break jump out of multiple loops
koa中间件
MySQL日期函数