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


边栏推荐
- GCC error: terminate called after throwing an instance of 'std:: regex_ error‘ what(): regex
- Eight part essay that everyone likes
- Train 100 pictures for 1 hour, and the style of the photos changes at will. There is a demo at the end of the article | siggraph 2021
- TCP的三次握手和四次挥手
- Cmake error: could not create named generator visual studio 16 2019 solution
- @RequestMapping、@GetMapping
- ~87 animation
- ~84 form supplement
- Continue and break jump out of multiple loops
- Detailed explanation of FLV format
猜你喜欢

7-4 harmonic average

When it comes to Google i/o, this is how ByteDance is applied to flutter

Yao BanZhi and his team came together, and the competition experts gathered together. What fairy programming competition is this?

LeetCode 1641. Count the number of Lexicographic vowel strings

LeetCode 1558. Get the minimum number of function calls of the target array

Train 100 pictures for 1 hour, and the style of the photos changes at will. There is a demo at the end of the article | siggraph 2021

~83 form introduction

~74 JD top navigation bar exercise

7-10 punch in strategy

How to configure hosts when setting up Eureka
随机推荐
~86m rabbit practice
搭建flutter环境入坑集合
Eureka high availability
MySQL日期函数
字节跳动2022校招研发提前批宣讲会,同学们最关心的10个问题
When it comes to Google i/o, this is how ByteDance is applied to flutter
Cmake error: could not create named generator visual studio 16 2019 solution
这群程序员中的「广告狂人」,把抖音广告做成了AR游戏
7-6 sum of combinatorial numbers
Monomer application concept
MySQL字符串函数
Thank you for your invitation. I'm in the work area. I just handed in the code. I'm an intern in the next ByteDance
~72 horizontal and vertical alignment of text
~83 form introduction
Fdog series (I): think about it. It's better to write a chat software. Then start with the imitation QQ registration page.
Alibaba cloud server builds SVN version Library
Train 100 pictures for 1 hour, and the style of the photos changes at will. There is a demo at the end of the article | siggraph 2021
Ffmpeg command line use
Solr standalone installation
~75 background