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


边栏推荐
- 一个数10年工作经验的微服务架构老师的简历
- 我在字节跳动「修电影」
- 字节跳动2022校招研发提前批宣讲会,同学们最关心的10个问题
- Solr new core
- DS18B20数字温度计系统设计
- 汇编语言寻址方式
- 汇编语言段定义
- LeetCode 1557. The minimum number of points that can reach all points
- MySQL数字函数
- Which is more important for programming, practice or theory [there are some things recently, I don't have time to write an article, so I'll post an article on hydrology, and I'll fill in later]
猜你喜欢

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

算数运算指令

7-10 punch in strategy

~87 animation

原型链继承

LeetCode 1560. The sector with the most passes on the circular track

Fdog series (V): use QT to imitate QQ to realize login interface to main interface, function chapter.
![Saw local status change event StatusChangeEvent [timestamp=1644048792587, current=DOWN, previous=UP]](/img/e6/c53ad67ead1793a2acb93c26e8d377.jpg)
Saw local status change event StatusChangeEvent [timestamp=1644048792587, current=DOWN, previous=UP]

README. txt

~68 Icon Font introduction
随机推荐
@RequestMapping、@GetMapping
7-5 blessing arrived
MySQL数字函数
字节跳动开源GAN模型压缩框架,算力最高节省97.8%丨ICCV 2021
汇编语言段定义
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
Shell_ 05_ operator
~86m rabbit practice
Record the error reason: terminate called after throwing an instance
Codeforces Round #771 (Div. 2)
LeetCode1556. Thousand separated number
Cmake Express
原型链继承
Use JQ to realize the reverse selection of all and no selection at all - Feng Hao's blog
字节跳动2022校招研发提前批宣讲会,同学们最关心的10个问题
Usage of insert() in vector
一个数10年工作经验的微服务架构老师的简历
Jedis
~85 transition
~76 sprite map