Maven dependency: exclude one class

后端 未结 3 1071
佛祖请我去吃肉
佛祖请我去吃肉 2020-12-18 20:53

For example I have dependency:


    org.slf4j
    slf4j-api
    

        
3条回答
  •  臣服心动
    2020-12-18 21:32

    You could change those classes and define them in a different jar/module which should be included as a dependency before the jar that supplies the dependency where your class to be excluded resides (Marker.class).

    Maven remembers the classpath ordering from version 2.0.9.

提交回复
热议问题