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

边栏推荐
- Sina Weibo client (4) - set navigation bar theme
- NVIDIA programmable reasoning accelerator tensorrt learning notes (II) - practical operation
- Wechat Reservation Reservation of applet completion works applet graduation project (8) graduation project thesis template
- RTOS系列(13):汇编LDR指令、LDR伪指令、[Rn]寄存器间接引用 详细解析
- @Use of Autowired
- JVM specification Oracle official website
- 【黑马程序员】Redis学习笔记002:持久化:RDB 和 AOF
- Qt|qlabole change line spacing when displaying multiple lines
- unity客户端读取文本配置
- Wechat reservation applet graduation design of applet completion works (1) development outline
猜你喜欢
![[dark horse programmer] redis learning notes 003: redis transactions](/img/c4/a7fcb3bc65d4013b3817c6115ce061.png)
[dark horse programmer] redis learning notes 003: redis transactions

【黑马程序员】Redis学习笔记005:企业级解决方案

Implementation of depth first and breadth first traversal of binary tree

阿里云服务的网络解决方案

The international summit osdi included Taobao system papers for the first time, and end cloud collaborative intelligence was recommended by the keynote speech of the conference

提高代码可续性的小技巧,以connectTo方法为例。

Swift初始化器及可选链

PHP reports an error: classes\phpexcel\cell php Line(594) Invalid cell coordinate ESIGN1

Online shopping E-commerce mall system based on jsp+servlet+mysql+

Recursive call to print every bit of an integer
随机推荐
@Autowired注解的原理
华为设备远程登录(Telnet、SSH)配置
Sun Tzu's art of war
Wechat reservation applet graduation design of applet completion works (2) applet function
Some easy-to-use plug-ins and settings installed in vscode
FreeMaker模板引擎
PHP gets all child nodes under any parent node of the tree structure
Wechat reservation of small program completion works (5) assignment book of small program graduation project
Memcached data cache database (improve efficiency)
Foundation 32: page element positioning method XPath --- axis positioning method
Apartment repair reporting system (idea, SSM, MySQL)
Phpexcel reports an error: err_ INVALID_ RESPONSE
LabVIEW experiment - temperature detection system (experimental learning version)
YOLOV5环境配置
Efcore's solution of multi tenant zero script, table and database read-write separation under SaaS system
@The difference and use of value and configurationproperties
Idea reads configuration files such as validationmessages.properties Chinese garbled
Mogdb 3.0 how to add a standby database in the environment of one active and one standby
RTOS series (13): assembly LDR instruction, LDR pseudo instruction, [rn] register indirect reference detailed analysis
@Feignclient annotated interface. You may not get instances with @autowired