当前位置:网站首页>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
边栏推荐
- Jedis
- Solr new core
- 字节跳动多篇论文入选 CVPR 2021,精选干货都在这里了
- ~81 long table
- 算数运算指令
- LeetCode 1561. The maximum number of coins you can get
- 7-8 likes (need to continue to improve)
- ByteDance technical Interviewer: what kind of candidate do I want to pick most
- 7-5 blessing arrived
- Cmake error: could not create named generator visual studio 16 2019 solution
猜你喜欢
Solr standalone installation
~87 animation
字节跳动技术新人培训全记录:校招萌新成长指南
Many papers on ByteDance have been selected into CVPR 2021, and the selected dry goods are here
ByteDance new programmer's growth secret: those glittering treasures mentors
Shell_ 01_ data processing
README. txt
Shell_ 06_ Judgment and circulation
"One year after graduation, I won ACL best paper"
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]
随机推荐
汇编课后作业
Shell_ 00_ First meeting shell
Tencent interview algorithm question
Solr word segmentation analysis
谢邀,人在工区,刚交代码,在下字节跳动实习生
7-7 ring the stupid bell
汇编语言基础知识
Fdog series (VI): use QT to communicate between the client and the client through the server (less information, recommended Collection)
LeetCode 1557. The minimum number of points that can reach all points
Mp4 format details
登陆验证koa-passport中间件的简单使用
~87 animation
~74 JD top navigation bar exercise
在 vi 编辑器中的命令模式下,删除当前光标处的字符使用 __ 命 令。
Record the error reason: terminate called after throwing an instance
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
TypeScript基本操作
Alibaba cloud server builds SVN version Library
Use JQ to realize the reverse selection of all and no selection at all - Feng Hao's blog
「博士毕业一年,我拿下 ACL Best Paper」