当前位置:网站首页>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
边栏推荐
- ~76 sprite map
- 我在字节跳动「修电影」
- LeetCode 1551. Minimum operand to make all elements in the array equal
- LeetCode 1545. Find the k-th bit in the nth binary string
- @RequestMapping、@GetMapping
- 7-7 ring the stupid bell
- DS18B20數字溫度計系統設計
- LeetCode 1562. Find the latest group of size M
- The most lost road I have ever walked through is the brain circuit of ByteDance programmers
- 汇编语言寻址方式
猜你喜欢
Eureka single machine construction
8086 CPU 内部结构
~83 form introduction
我走过最迷的路,是字节跳动程序员的脑回路
算数运算指令
Many papers on ByteDance have been selected into CVPR 2021, and the selected dry goods are here
Ffmpeg command line use
Fdog series (V): use QT to imitate QQ to realize login interface to main interface, function chapter.
Activiti目录(五)驳回、重新发起、取消流程
~82 style of table
随机推荐
After the subscript is used to assign a value to the string type, the cout output variable is empty.
Jedis
The "advertising maniacs" in this group of programmers turned Tiktok advertisements into ar games
控制转移指令
LeetCode 1560. The sector with the most passes on the circular track
搭建flutter环境入坑集合
~77 linear gradient
When it comes to Google i/o, this is how ByteDance is applied to flutter
@RequestMapping、@GetMapping
服务器端渲染(SSR)和客户端渲染(CSR)的区别
字节跳动2022校招研发提前批宣讲会,同学们最关心的10个问题
~87 animation
8086 内存
Cartesian tree (modified)
How to configure hosts when setting up Eureka
TCP的三次握手和四次挥手
MySQL数字函数
LeetCode 1641. Count the number of Lexicographic vowel strings
~81 long table
LeetCode 1984. Minimum difference in student scores