当前位置:网站首页>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之后,类的路径、名字、字段有变化,导致无法加载到想要的类或方法。
边栏推荐
- (万字精华知识总结)Shell脚本编程基础知识
- Folium, diagnosis and close contact trajectory above
- [leetcode] 695 - maximum area of the island
- Experiment collection of University "Fundamentals of circuit analysis". Experiment 7 - Research on sinusoidal steady-state circuit
- Aiko ai Frontier promotion (7.2)
- 全方位解读服务网格(Service Mesh)的背景和概念
- /Bin/ld: cannot find -lssl
- Review materials for the special topic of analog electronics with all essence: basic amplification circuit knowledge points
- Finally, I understand the event loop, synchronous / asynchronous, micro task / macro task, and operation mechanism in JS (with test questions attached)
- List of sergeant schools
猜你喜欢

Ant group's large-scale map computing system tugraph passed the national evaluation

Application of visualization technology in Nebula graph

又是一年毕业季

爱可可AI前沿推介(7.2)

2020.4.12 byte written test questions B DP D monotone stack
![[leetcode] 417 - Pacific Atlantic current problem](/img/30/c541bc1e81eb4e348ca11116a05e84.png)
[leetcode] 417 - Pacific Atlantic current problem

使用 percona 工具给 MySQL 表加字段中断后该如何操作

Experiment collection of University "Fundamentals of circuit analysis". Experiment 7 - Research on sinusoidal steady-state circuit

愛可可AI前沿推介(7.2)

How to import a billion level offline CSV into Nepal graph
随机推荐
动态规划入门一,队列的bfs(70.121.279.200)
《大学“电路分析基础”课程实验合集.实验六》丨典型信号的观察与测量
Lseek error
Jsp+mysql006 community management system
Wavedec2 in MATLAB, talk about the wavedec2 function [easy to understand]
纪念成为首个 DAYU200 三方 demo 贡献者
/bin/ld: 找不到 -lssl
fastjson List转JSONArray以及JSONArray转List「建议收藏」
/bin/ld: 找不到 -lxslt
中科大脑知识图谱平台建设及业务实践
beforeEach
数据库系统概论第一章简答题-期末考得怎么样?
使用FFmpeg命令行进行UDP、RTP推流(H264、TS),ffplay接收
[leetcode] 695 - maximum area of the island
目标检测—利用labelimg制作自己的深度学习目标检测数据集
全是精华的模电专题复习资料:基本放大电路知识点
/bin/ld: 找不到 -lpam
lseek 出错
[idea] recommend an idea translation plug-in: translation "suggestions collection"
蚂蚁集团大规模图计算系统TuGraph通过国家级评测