当前位置:网站首页>idea jar包冲突排查
idea jar包冲突排查
2022-07-02 12:28:00 【lvhui321】
在Java项目开发中,jar包冲突是比较常见的问题,快速定位冲突位置是非常重要的。传统方式定位主要采用idea自带的Diagrams插件,由于jar依赖是以图表展示的,导致引用错综复杂,往往排查费时费力;今天我们来介绍一个更利于快速定位jar包冲突的插件Maven Helper。
1.Maven Helper安装,下载Maven Helper

2.Maven Helper安装完成

3.Maven Helper使用,打开pom.xml文件,点左下角Dependency Analyzer

4. Conflicts展示冲突,冲突相关的jar在右侧展示,如果右侧有冲突,可以右键Exclude进行排除

5.All Dependencies as List 展示所有依赖项列表,Show GroupId 展示jar包GroupId,Show Size 展示jar包大小,All Dependencies as Tree 展示jar包依赖树。
6.jar包冲突常见的异常
出现以下异常时,若clean jar包后还是无法成功启动项目,就可以考虑是否出现jar包冲突。NoDefClassException、ClassNotFoundException、NoSuchMethodError、NoSuchFieldError;
这些异常可能是引用了之前旧版的jar包,新版本的jar升级并deploy之后,类的路径、名字、字段有变化,导致无法加载到想要的类或方法。
边栏推荐
- 中科大脑知识图谱平台建设及业务实践
- Wise target detection 23 - pytoch builds SSD target detection platform
- 2278. Percentage of letters in string
- Pyinstaller's method of packaging pictures attached to exe
- Aike AI frontier promotion (7.2)
- Soul torture, what is AQS???
- matlab中wavedec2,说说wavedec2函数[通俗易懂]
- 6090. 极大极小游戏
- GraphX 图计算实践之模式匹配抽取特定子图
- 2278. 字母在字符串中的百分比
猜你喜欢

如何实现十亿级离线 CSV 导入 Nebula Graph

可视化技术在 Nebula Graph 中的应用

2020.4.12 byte written test questions B DP D monotone stack
![[leetcode] 1162 map analysis](/img/9a/d04bde0417d4d5232950a4e260eb91.png)
[leetcode] 1162 map analysis

Why does the system convert the temp environment variable to a short file name?

Application of visualization technology in Nebula graph

隐藏在 Nebula Graph 背后的星辰大海

Introduction to Dynamic Planning II (5.647.62)

Traversal before, during and after binary tree

已知兩種遍曆序列構造二叉樹
随机推荐
fastjson List转JSONArray以及JSONArray转List「建议收藏」
[salesforce] how to confirm your salesforce version?
(万字精华知识总结)Shell脚本编程基础知识
Use ffmpeg command line to push UDP and RTP streams (H264 and TS), and ffplay receives
2278. Percentage of letters in string
Postgressql stream replication active / standby switchover primary database no read / write downtime scenario
【LeetCode】977-有序數組的平方
Experiment collection of University Course "Fundamentals of circuit analysis". Experiment 5 - Research on equivalent circuit of linear active two terminal network
Experiment collection of University "Fundamentals of circuit analysis". Experiment 4 - Research on linear circuit characteristics
How to use percona tool to add fields to MySQL table after interruption
6091. Divide the array so that the maximum difference is K
Fiddler实现手机抓包——入门
/bin/ld: 找不到 -lpam
Wavedec2 in MATLAB, talk about the wavedec2 function [easy to understand]
/Bin/ld: cannot find -lxml2
List of sergeant schools
/bin/ld: 找不到 -lssl
Wise target detection 23 - pytoch builds SSD target detection platform
【Salesforce】如何确认你的Salesforce版本?
/Bin/ld: cannot find -lssl