当前位置:网站首页>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之后,类的路径、名字、字段有变化,导致无法加载到想要的类或方法。
边栏推荐
- /Bin/ld: cannot find -lcrypto
- 中科大脑知识图谱平台建设及业务实践
- Wavedec2 in MATLAB, talk about the wavedec2 function [easy to understand]
- XPT2046 四线电阻式触摸屏
- Experiment collection of University "Fundamentals of circuit analysis". Experiment 4 - Research on linear circuit characteristics
- PyObject 转 char* (string)
- 纪念成为首个 DAYU200 三方 demo 贡献者
- Aike AI frontier promotion (7.2)
- [leetcode] 19 delete the penultimate node of the linked list
- 树-二叉搜索树
猜你喜欢

Traversal before, during and after binary tree

《大学“电路分析基础”课程实验合集.实验六》丨典型信号的观察与测量

Review materials for the special topic of analog electronics with all essence: basic amplification circuit knowledge points

Experiment collection of University "Fundamentals of circuit analysis". Experiment 4 - Research on linear circuit characteristics

Thoroughly understand browser strong cache and negotiation cache

动态规划入门二(5.647.62)

Nebula Graph & 数仓血缘关系数据的存储与读写

Two traversal sequences are known to construct binary trees

PHP static members
![[leetcode] 1905 statistics sub Island](/img/82/d2f7b829f5beb7f9f1eabe8d101ecb.png)
[leetcode] 1905 statistics sub Island
随机推荐
【题解】Educational Codeforces Round 82
《大学“电路分析基础”课程实验合集.实验六》丨典型信号的观察与测量
Aiko ai Frontier promotion (7.2)
6095. 强密码检验器 II
6095. Strong password checker II
[leetcode] 877 stone game
愛可可AI前沿推介(7.2)
[leetcode] 344 reverse string
2303. 计算应缴税款总额
2020.4.12 byte written test questions B DP D monotone stack
Soul torture, what is AQS???
Strings and arrays
[leetcode] 977 square of ordered array
PTA ladder game exercise set l2-001 inter city emergency rescue
Tree binary search tree
Experiment collection of University Course "Fundamentals of circuit analysis". Experiment 5 - Research on equivalent circuit of linear active two terminal network
数字藏品系统开发(程序开发)丨数字藏品3D建模经济模式系统开发源码
Comparison between rstan Bayesian regression model and standard linear regression model of R language MCMC
Fiddler实现手机抓包——入门
动态规划入门二(5.647.62)