开发者

How to add exclutions to dependencies on maven

开发者 https://www.devze.com 2022-12-07 17:42 出处:网络
I have the following dependencies that unfortunately requires some classes which are not present on the default packages. First it is \'spring-cloud-starter-sleuth\', when I add the local maven jar up

I have the following dependencies that unfortunately requires some classes which are not present on the default packages. First it is 'spring-cloud-starter-sleuth', when I add the local maven jar updated to versio开发者_开发百科n 3.1.5 it requires 'brave-context-slf4j' version 5.14.1 and I have added them without problems.

The problem is the standard dependencies which includes those jars e.g 'spring-cloud-dependencies' should exclude the other versions so this way I can use only spring-cloud-starter-sleuth:3.1.5 and brave-context-slf4j:5.14.1.

How could I add those exclusions to that dependencies?

0

精彩评论

暂无评论...
验证码 换一张
取 消