maven

Java依赖冲突

2020-07-12  本文已影响0人  Rechel_uniq

依赖冲突是什么

依赖冲突是

程序在编译或运行过程中,由于调用的方法不是期望依赖版本中的方法而导致编译失败或运行时异常。

依赖冲突通常表现为:

依赖冲突归因主要有两点:

避免及解决

实例介绍

最近用springboot + junit+jsonschema 写一个简单的接口测试框架时遇到依赖冲突,运行case 时载入jsonschema报错如下:


在这里插入图片描述
<dependency>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-starter-test</artifactId>
    <exclusions>
        <exclusion>
            <groupId>com.vaadin.external.google</groupId>
            <artifactId>android-json</artifactId>
        </exclusion>
    </exclusions>
    <scope>test</scope>
</dependency>
上一篇 下一篇

猜你喜欢

热点阅读