当前位置:网站首页>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 -lgssapi_ krb5
- Introduction to Dynamic Planning II (5.647.62)
- Introduction to dynamic planning I, BFS of queue (70.121.279.200)
- /Bin/ld: cannot find -lcrypto
- [leetcode] 1140 stone game II
- Traversal before, during and after binary tree
- Pyobject to char* (string)
- Wavedec2 in MATLAB, talk about the wavedec2 function [easy to understand]
- Xpt2046 four wire resistive touch screen
- Aike AI frontier promotion (7.2)
猜你喜欢

Comparison between rstan Bayesian regression model and standard linear regression model of R language MCMC

Soul torture, what is AQS???
![[development environment] install Visual Studio Ultimate 2013 development environment (download software | install software | run software)](/img/26/3f19d36c048e669c736e27384e0fa7.jpg)
[development environment] install Visual Studio Ultimate 2013 development environment (download software | install software | run software)

How to use percona tool to add fields to MySQL table after interruption

【Salesforce】如何确认你的Salesforce版本?

Aike AI frontier promotion (7.2)

Thoroughly understand browser strong cache and negotiation cache

PTA ladder game exercise set l2-001 inter city emergency rescue

Traversal before, during and after binary tree

Finally, I understand the event loop, synchronous / asynchronous, micro task / macro task, and operation mechanism in JS (with test questions attached)
随机推荐
Armv8-a programming guide MMU (4)
[leetcode] 344 reverse string
Demo of converting point cloud coordinates to world coordinates
隐藏在 Nebula Graph 背后的星辰大海
解决BASE64Encoder报错的问题
《大学“电路分析基础”课程实验合集.实验五》丨线性有源二端网络等效电路的研究
奥比中光 astra: Could not open “2bc5/[email protected]/6“: Failed to set USB interface
How to use percona tool to add fields to MySQL table after interruption
/Bin/ld: cannot find -lxml2
Introduction to Dynamic Planning II (5.647.62)
中科大脑知识图谱平台建设及业务实践
使用FFmpeg命令行进行UDP、RTP推流(H264、TS),ffplay接收
Moveit obstacle avoidance path planning demo
[leetcode] 283 move zero
【idea】推荐一个idea翻译插件:Translation「建议收藏」
[leetcode] 200 number of islands
制作p12证书[通俗易懂]
/Bin/ld: cannot find -lxslt
College entrance examination admission score line climbing
(Wanzi essence knowledge summary) basic knowledge of shell script programming