Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
4.2k views
in Technique[技术] by (71.8m points)

Maven dependency Analyzer分析中,同一个依赖使用两个不同版本 怎么回事?

image.png

如上图所示
某个client依赖
看图分析,有两个依赖了2.0.3版本
还有一个依赖了2.0.1版本
这是怎么回事?


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

maven依赖里是会存在依赖的冲突,同一个包不同的版本。最终maven会选择路径短的依赖。你可以手动将低版本的exclude,保留高版本。


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...