当前位置:网站首页>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 .

边栏推荐
- Database persistence +jdbc database connection
- Does the server operation and maintenance need to be online 24 hours? Do you need to work overtime on weekends?
- Ensembles in RNA counts data in TCGA_ ID to gene_ Method of ID
- Phpexcel reports an error: err_ INVALID_ RESPONSE
- Hash table questions (Part 1)
- PHP reports an error: classes\phpexcel\cell php Line(594) Invalid cell coordinate ESIGN1
- FreeMaker模板引擎
- Nuscenes dataset 3D mot demo, end-to-end target detection and tracking, joint detection and tracking framework
- OpenGL es to realize the visualization of real-time audio
- RTOS series (13): assembly LDR instruction, LDR pseudo instruction, [rn] register indirect reference detailed analysis
猜你喜欢

Redis fragment cluster

51单片机外设篇:蜂鸣器

Initial knowledge of WebService (generate jar packages and call methods in remote services)

Review the second time, 220614, video, day03_ Data warehouse design,

【万字长文】使用 LSM-Tree 思想基于.Net 6.0 C# 实现 KV 数据库(案例版)
![[untitled]](/img/81/06fc796dc6c521eb890207b9de69d8.png)
[untitled]

51单片机外设篇:电机

QA robot sequencing model

【芝麻街一家】& Bert Bart RoBERTa

Numpy learning
随机推荐
YOLOV5环境配置
【黑马程序员】Redis学习笔记005:企业级解决方案
Foundation 32: page element positioning method XPath --- axis positioning method
Wechat sports ground reservation applet graduation project of applet completion works (1) development outline
C # introductory series (30) -- exception handling
Idea2021 failed to start. Could not find main class com/intellij/idea/main
Wechat reservation applet graduation design of applet completion works (1) development outline
Mongodb database
[shader realizes shadow projection effect _shader effect Chapter 8]
@Implementation principle of Autowired annotation
R language error
read
Force buckle - 1046. Weight of the last stone
[Sesame Street family] & Bert Bart Roberta
为什么要使用MQ消息中间件?这几个问题必须拿下!
ip命令使用详解
Ensembles in RNA counts data in TCGA_ ID to gene_ Method of ID
Source code of pet adoption management system implemented by ssm+jsp+mysql
Graduation project of wechat small program ordering system of small program completion works (1) development outline
Efcore's solution of multi tenant zero script, table and database read-write separation under SaaS system