当前位置:网站首页>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
边栏推荐
- The "advertising maniacs" in this group of programmers turned Tiktok advertisements into ar games
- How to generate six digit verification code
- LeetCode 1560. The sector with the most passes on the circular track
- 我走過最迷的路,是字節跳動程序員的腦回路
- 我走过最迷的路,是字节跳动程序员的脑回路
- redux使用说明
- LeetCode 1640. Can I connect to form an array
- 这群程序员中的「广告狂人」,把抖音广告做成了AR游戏
- 7-6 sum of combinatorial numbers
- "One year after graduation, I won ACL best paper"
猜你喜欢
字节跳动技术新人培训全记录:校招萌新成长指南
我走过最迷的路,是字节跳动程序员的脑回路
Use JQ to realize the reverse selection of all and no selection at all - Feng Hao's blog
One hundred questions of image processing (11-20)
Yao BanZhi and his team came together, and the competition experts gathered together. What fairy programming competition is this?
Solr new core
koa中间件
Full record of ByteDance technology newcomer training: a guide to the new growth of school recruitment
ByteDance technical Interviewer: what kind of candidate do I want to pick most
~87 animation
随机推荐
字节跳动海外技术团队再夺冠:高清视频编码已获17项第一
Introduction to microservices
7-10 punch in strategy
LeetCode 1560. The sector with the most passes on the circular track
控制转移指令
~79 Movie card exercise
TypeScript基本操作
How to generate six digit verification code
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
GCC error: terminate called after throwing an instance of 'std:: regex_ error‘ what(): regex
Shell_ 00_ First meeting shell
One hundred questions of image processing (1-10)
ByteDance 2022 school recruitment R & D advance approval publicity meeting, students' top 10 issues
Typescript basic operations
字节跳动春招攻略:学长学姐笔经面经,还有出题人「锦囊」
Ffmpeg command line use
Fdog series (III): use Tencent cloud SMS interface to send SMS, write database, deploy to server, web finale.
Eureka high availability
Shell_ 01_ data processing
~75 background