当前位置:网站首页>Dependency conflict resolution under idea
Dependency conflict resolution under idea
2022-07-25 08:42:00 【Li Zhenhua's blog】
First of all, we need to know that dependence is the basis Maven Coordinate oriented , and Maven The coordinates are mainly composed of GAV(groupId、artifictId、version) constitute .
If your local Maven The warehouse has two identical dependent packages , Even if there are only different coordinates , but Maven Think that these two dependent packages are still different . In this way, the two dependent packages will conflict .
as follows , First click Maven The plug-in show dependencies, And found that swagger models There are two dependencies , And the two dependent versions are different , Therefore, there will be conflicts between the two .
We see our local Maven The warehouse can also find two different versions swagger-models Dependency package


I solve these two conflicts by using plugin Plug in maven-helper

This will appear below Dependency Analyser( Dependency analysis )

We click directly Dependency Analyser, Click on Conflicts Conflict options , You can find out which dependency causes conflict , ad locum , yes swagger-model Conflicts between dependent versions , Then we can go to maven Find the location of these two dependencies in the plug-in


We can directly right-click on the dependency with dependency conflict Exclude, Remove the dependency

Then we click refresh Ui, You will find that there is no dependency conflict , And in maven The dependencies in the plug-in also disappeared .


Then you will find that a conflict dependency is added Exclude label
If we know that the problem is caused by this dependency , It can also be directly added to eliminate , But through maven-helper You can more intuitively see what dependency causes the problem .

边栏推荐
- A simple hotel background management system based on jsp+servlet+mysql
- Wechat reservation applet graduation project (7) mid term inspection report of applet completion works
- Chapter 3 business function development (query clues)
- Nuscenes dataset 3D mot demo, end-to-end target detection and tracking, joint detection and tracking framework
- YOLOV5环境配置
- @Autowired的使用
- unity客户端读取文本配置
- Graduation project of wechat small program ordering system of small program completion works (1) development outline
- Redis学习笔记
- NVIDIA可编程推理加速器TensorRT学习笔记(二)——实操
猜你喜欢

Wechat reservation applet graduation design of applet completion works (2) applet function

Wechat sports ground reservation applet graduation design of applet completion works (3) background function

How to do the game plug-in?

Wechat reservation applet graduation project (7) mid term inspection report of applet completion works

聊下自己转型测试开发的历程

Tips for improving code sustainability, take connectto method as an example.

Graduation project of wechat small program ordering system of small program completion works (4) opening report

25位撤销博士学位

Redis学习笔记

25 Ph.D. degrees revoked
随机推荐
IDEA下依赖冲突解决方法
Wechat reservation applet graduation design of applet completion works (2) applet function
Wechat reservation of completed works of applet graduation project (4) opening report
@Autowired的使用
Tips for improving code sustainability, take connectto method as an example.
递归调用实现打印一个整数的每一位
OpenGL es to achieve the effect of "big head, small head" and "head shaking"
read
Force buckle - 1046. Weight of the last stone
@Feignclient annotated interface. You may not get instances with @autowired
unity客户端读取文本配置
Apartment repair reporting system (idea, SSM, MySQL)
Review the second time, 220614, video, day03_ Data warehouse design,
Efcore's solution of multi tenant zero script, table and database read-write separation under SaaS system
Numpy learning
NVIDIA programmable reasoning accelerator tensorrt learning notes (II) - practical operation
The fifth day of MATLAB learning (cycle type)
Sun Tzu's art of war
When crontab scheduled task executes jar through script, it encounters a pit where jar package execution is invalid
Sina Weibo client (4) - set navigation bar theme