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

边栏推荐
- Bigdecimel in words
- Wechat sports ground reservation applet graduation project of applet completion works (1) development outline
- Redis学习
- Graduation design of wechat small program ordering system of small program completion works (5) assignment
- Technical aspect ② what are the index types in MySQL and briefly introduce them? When do I need to create an index? When is it not necessary to create an index? Why does the query speed increase after
- Eureka forced offline service
- 【黑马程序员】Redis学习笔记004:主从复制+哨兵模式+集群
- Idea reads configuration files such as validationmessages.properties Chinese garbled
- DIY can decorate the mall system, you can also have!
- Use of lambdaquerywrapper, lambdaupdatewrapper, lambdaquerychainwrapper
猜你喜欢

Implementation of depth first and breadth first traversal of binary tree

Record the process of two multi terminal troubleshooting

Wechat sports field reservation of the finished works of the applet graduation project (4) opening report

这是我见过写得最烂的Controller层代码...

Graduation design of wechat small program ordering system of small program completion works (3) background function

Huawei device remote login (Telnet, SSH) configuration

Redis学习笔记

Swift initializer and optional chain

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

Review the second time, 220614, video, day03_ Data warehouse design,
随机推荐
Freemaker template engine
QA robot sequencing model
Wechat Reservation Reservation of applet completion works applet graduation project (8) graduation project thesis template
Use of lambdaquerywrapper, lambdaupdatewrapper, lambdaquerychainwrapper
为什么要使用MQ消息中间件?这几个问题必须拿下!
Technical aspect ② what are the index types in MySQL and briefly introduce them? When do I need to create an index? When is it not necessary to create an index? Why does the query speed increase after
Network solutions for Alibaba cloud services
IP command usage details
IDEA下依赖冲突解决方法
Data warehouse ODS, DWD floor, 220616, HM,
Graduation design of wechat small program ordering system of small program completion works (5) assignment
C # introductory series (30) -- exception handling
@Principle of Autowired annotation
Idea failed to start the project yamlexception Chinese file encoding format
Wechat applet ordering system graduation design of applet completion works (2) applet function
Wechat reservation of the completed works of the applet graduation project (6) opening defense ppt
提高代码可续性的小技巧,以connectTo方法为例。
Redis fragment cluster
25位撤销博士学位
Idea starts the project slowly