Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/maven/6.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
无法找到/导入';io.请放心';即使在添加到Maven项目之后也要打包_Maven_Pom.xml_Rest Assured_Rest Assured Jsonpath_Jayway - Fatal编程技术网

无法找到/导入';io.请放心';即使在添加到Maven项目之后也要打包

无法找到/导入';io.请放心';即使在添加到Maven项目之后也要打包,maven,pom.xml,rest-assured,rest-assured-jsonpath,jayway,Maven,Pom.xml,Rest Assured,Rest Assured Jsonpath,Jayway,我已将以下依赖项添加到maven项目pom.xml文件中,并完成了mvn清理、安装。我可以在c-drive/users中看到添加到.m2文件夹的依赖项,但它们没有列在IntelliJ“External Libraries”部分下。另外,当我尝试将它们导入到类中时,我没有看到它们,并且出现“找不到”错误 添加依赖项- <dependency> <groupId>io.rest-assured</groupId> <a

我已将以下依赖项添加到maven项目pom.xml文件中,并完成了mvn清理、安装。我可以在c-drive/users中看到添加到.m2文件夹的依赖项,但它们没有列在IntelliJ“External Libraries”部分下。另外,当我尝试将它们导入到类中时,我没有看到它们,并且出现“找不到”错误

添加依赖项-

    <dependency>
        <groupId>io.rest-assured</groupId>
        <artifactId>json-path</artifactId>
        <version>3.3.0</version>
    </dependency>
  
    <dependency>
        <groupId>io.rest-assured</groupId>
        <artifactId>json-schema-validator</artifactId>
        <version>4.3.0</version>
    </dependency>

放心吧

我想可能是因为缺少
。默认范围是
compile
,如果未指定,则使用该范围,但此处需要
test


放心吧
json路径
4.3.1
测试
放心吧
json模式验证器
4.3.1
测试

我尝试添加“范围”,但没有成功。我重新创建了一个新项目,效果很好。