当前位置:网站首页>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


边栏推荐
- Alibaba cloud server builds SVN version Library
- Educational Codeforces Round 122 (Rated for Div. 2)
- js垃圾回收机制和内存泄漏
- LeetCode 1557. The minimum number of points that can reach all points
- Record the error reason
- Some instructions on whether to call destructor when QT window closes and application stops
- LeetCode 1020. Number of enclaves
- The daemon thread starts redis and modifies the configuration file
- 这群程序员中的「广告狂人」,把抖音广告做成了AR游戏
- Fdog series (VI): use QT to communicate between the client and the client through the server (less information, recommended Collection)
猜你喜欢

逻辑运算指令

The daemon thread starts redis and modifies the configuration file

Fdog series (V): use QT to imitate QQ to realize login interface to main interface, function chapter.

Fdog series (4): use the QT framework to imitate QQ to realize the login interface, interface chapter.

Use JQ to realize the reverse selection of all and no selection at all - Feng Hao's blog

Activiti目录(五)驳回、重新发起、取消流程

7-4 harmonic average

字节跳动技术新人培训全记录:校招萌新成长指南

Shell_ 06_ Judgment and circulation

~74 JD top navigation bar exercise
随机推荐
~87 animation
Solr word segmentation analysis
Eight part essay that everyone likes
我在字节跳动「修电影」
字节跳动2022校招研发提前批宣讲会,同学们最关心的10个问题
Cartesian tree (modified)
[unsolved]7-14 calculation diagram
LeetCode 1551. Minimum operand to make all elements in the array equal
The most lost road I have ever walked through is the brain circuit of ByteDance programmers
Cmake Express
~86m rabbit practice
我走過最迷的路,是字節跳動程序員的腦回路
~75 background
~73 other text styles
Saw local status change event StatusChangeEvent [timestamp=1644048792587, current=DOWN, previous=UP]
~68 Icon Font introduction
面试集锦库
Full record of ByteDance technology newcomer training: a guide to the new growth of school recruitment
[graduation project] QT from introduction to practice: realize imitation of QQ communication, which is also the last blog post in school.
Usage of insert() in vector