Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/meteor/3.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
无法使用ivy.xml解析依赖关系,找不到模块错误_Xml_Selenium_Ant_Testng_Ivy - Fatal编程技术网

无法使用ivy.xml解析依赖关系,找不到模块错误

无法使用ivy.xml解析依赖关系,找不到模块错误,xml,selenium,ant,testng,ivy,Xml,Selenium,Ant,Testng,Ivy,这是ivy.xml <?xml version="1.0" encoding="UTF-8"?> <ivy-module version="2.0"> <info organisation="com.ste" module="mod"/> <configurations> <conf name="binaries" description="binary jars"/> </configur

这是ivy.xml

<?xml version="1.0" encoding="UTF-8"?>
<ivy-module version="2.0">
    <info organisation="com.ste" module="mod"/>
    <configurations>
        <conf name="binaries" description="binary jars"/>
    </configurations>
    <dependencies>
        <dependency org="org.testng" name="testng" rev="6.8.5" conf="binaries->default"/>
        <dependency org="org.seleniumhq.selenium" name="selenium-java" rev="2.38.0" conf="binaries->default"/>
        <dependency org="org.json" name="json" rev="20080701" conf="binaries->default"/>
        <dependency org="commons-jxpath" name="commons-jxpath" rev="1.3" conf="binaries->default"/>
    </dependencies>
</ivy-module>
请让我知道我做错了什么 提前谢谢


我已经创建了lib文件夹,build.xml文件和ivy。

无法重现您的问题。您正在运行什么版本的Java

这是我的构建文件:

<project name="demo" default="resolve" xmlns:ivy="antlib:org.apache.ivy.ant">

    <target name="resolve" depends="install-ivy" description="Use ivy to resolve classpaths">
        <ivy:resolve/>
    </target>

</project>

对于任何可能仍然存在此问题的人:我花了数小时试图让它工作,而我的问题是其他的。在VPN后面,超时时间可能不够长,这将导致服务器访问错误

尝试使用更新
ivy.settings
中的超时

此处的更多信息:

build.xml可能包含我的java版本“1.7.0-ea”的副本
<project name="demo" default="resolve" xmlns:ivy="antlib:org.apache.ivy.ant">

    <target name="resolve" depends="install-ivy" description="Use ivy to resolve classpaths">
        <ivy:resolve/>
    </target>

</project>