当前位置:网站首页>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之后,类的路径、名字、字段有变化,导致无法加载到想要的类或方法。
边栏推荐
- 基于 Nebula Graph 构建百亿关系知识图谱实践
- 中科大脑知识图谱平台建设及业务实践
- Wise target detection 23 - pytoch builds SSD target detection platform
- Aike AI frontier promotion (7.2)
- 2279. 装满石头的背包的最大数量
- [leetcode] 417 - Pacific Atlantic current problem
- 2279. Maximum number of backpacks filled with stones
- Lseek error
- Crawl the information of national colleges and universities in 1 minute and make it into a large screen for visualization!
- Postgressql stream replication active / standby switchover primary database no read / write downtime scenario
猜你喜欢

PostgresSQL 流复制 主备切换 主库无读写宕机场景

《大学“电路分析基础”课程实验合集.实验七》丨正弦稳态电路的研究

Introduction to dynamic planning I, BFS of queue (70.121.279.200)

已知兩種遍曆序列構造二叉樹

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

树-二叉搜索树

动态规划入门一,队列的bfs(70.121.279.200)

Postgressql stream replication active / standby switchover primary database no read / write downtime scenario

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

Experiment collection of University "Fundamentals of circuit analysis". Experiment 7 - Research on sinusoidal steady-state circuit
随机推荐
又是一年毕业季
可视化技术在 Nebula Graph 中的应用
6096. Success logarithm of spells and potions
Wavedec2 in MATLAB, talk about the wavedec2 function [easy to understand]
[2. Basics of Delphi grammar] 3 Object Pascal constants and variables
How to use percona tool to add fields to MySQL table after interruption
/bin/ld: 找不到 -lssl
[leetcode] 200 number of islands
Traversal before, during and after binary tree
C # get PLC information (kepserver) II
制作p12证书[通俗易懂]
Experiment collection of University "Fundamentals of circuit analysis". Experiment 6 - observation and measurement of typical signals
基于 Nebula Graph 构建百亿关系知识图谱实践
College entrance examination admission score line crawler
[idea] recommend an idea translation plug-in: translation "suggestions collection"
floyed「建议收藏」
Introduction to dynamic planning I, BFS of queue (70.121.279.200)
Make p12 certificate [easy to understand]
解决BASE64Encoder报错的问题
Fiddler实现手机抓包——入门