Maven:RestAssured依赖关系未解决

时间:2018-12-09 23:50:55

标签: java maven junit testng rest-assured

我是Maven的新手,尝试构建可放心的Web服务测试,但是resutAssured和junit依赖关系无法解决。我已经安装了Maven 3,并使用了Intellij IDE。它有什么问题?

下面是我的整个pom.xml。

<project xmlns="http://maven.apache.org/POM/4.0.0"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
    <modelVersion>4.0.0</modelVersion>

    <groupId>com.peterwkc.RestAssured</groupId>
    <artifactId>RestAssured</artifactId>
    <version>1.0-SNAPSHOT</version>

    <!--================== POM Dependencies ====================-->
    <dependencies>
        <dependency>
            <groupId>io.rest-assured</groupId>
            <artifactId>rest-assured</artifactId>
            <version>3.0.3</version>
        </dependency>

        <dependency>
            <groupId>com.google.code.gson</groupId>
            <artifactId>gson</artifactId>
            <version>2.8.5</version>
        </dependency>

        <dependency>
            <groupId>org.junit.jupiter</groupId>
            <artifactId>junit-jupiter-api</artifactId>
            <version>5.2.0</version>
            <scope>test</scope>
        </dependency>

    </dependencies>
</project>

悬停时出现错误消息:

找不到更少的依赖项io.rest-assured:rest-assured:3.0.3 ...(Ctrl + F1) 检查信息:检查Maven模型是否存在分辨率问题。

0 个答案:

没有答案
相关问题