Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/visual-studio-2008/2.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
Eclipse Ivy下载的罐子比预期的多_Eclipse_Ivy_Ivyde - Fatal编程技术网

Eclipse Ivy下载的罐子比预期的多

Eclipse Ivy下载的罐子比预期的多,eclipse,ivy,ivyde,Eclipse,Ivy,Ivyde,摘要: Ivy下载的罐子比我预期的要多,我不知道为什么 详细信息: 我正在将我的项目从使用Maven Ant任务进行依赖关系管理转换为Ivy 到目前为止,我已经做了以下工作: 将IvyDE安装到我的Eclipse(Helios)中 创建了一个ivy.xml文件 因为我以前成功地使用了Maven Ant任务,所以我复制了 从my build.xml到ivy.xml的密度。我一定要换衣服 依赖项声明使用常春藤格式(org、name、rev) 将IvyDE类路径容器添加到我的Eclipse项目中 现在

摘要: Ivy下载的罐子比我预期的要多,我不知道为什么

详细信息: 我正在将我的项目从使用Maven Ant任务进行依赖关系管理转换为Ivy

到目前为止,我已经做了以下工作:

  • 将IvyDE安装到我的Eclipse(Helios)中
  • 创建了一个ivy.xml文件
  • 因为我以前成功地使用了Maven Ant任务,所以我复制了 从my build.xml到ivy.xml的密度。我一定要换衣服 依赖项声明使用常春藤格式(org、name、rev)
  • 将IvyDE类路径容器添加到我的Eclipse项目中
  • 现在,当我在Eclipse中运行Ivy>Resolve时,我可以看到279个JAR被下载到“.ivy2\cache”。这比Maven Ant任务之前下载的65个JAR多得多

    为什么常春藤要倒那么多罐子?我知道Ivy也在关闭source和一些javadoc JAR。这就解释了为什么会有一些额外的罐子,但我认为常春藤最多应该下载195个罐子(65*3),而不是279个

    我错过了什么或做错了什么?如果您有任何反馈和建议,我将不胜感激

    下面是我的ivy.xml的内容

    <?xml version="1.0" encoding="ISO-8859-1"?>
    
    <ivy-module version="2.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xsi:noNamespaceSchemaLocation="http://ant.apache.org/ivy/schemas/ivy.xsd">
    <info
        organisation="org.robbins"
        module="FlashCardsWeb"
        status="integration">
    </info>
    
    <dependencies>
    
        <dependency org="org.apache.struts" name="struts2-core" rev="2.2.3"/>
    
        <dependency org="org.apache.struts" name="struts2-spring-plugin" rev="2.2.3">
            <exclude org="org.springframework" name="spring-web" />
            <exclude org="org.springframework" name="spring-beans" />
            <exclude org="org.springframework" name="spring-context" />
            <exclude org="org.springframework" name="spring-core" />
        </dependency>
    
        <dependency org="org.springframework" name="spring-web" rev="3.0.5.RELEASE"/>
        <dependency org="org.springframework" name="spring-beans" rev="3.0.5.RELEASE"/>
        <dependency org="org.springframework" name="spring-context" rev="3.0.5.RELEASE"/>
        <dependency org="org.springframework" name="spring-core" rev="3.0.5.RELEASE"/>
        <dependency org="org.springframework" name="spring-jdbc" rev="3.0.5.RELEASE"/>
        <dependency org="org.springframework" name="spring-orm" rev="3.0.5.RELEASE"/>
    
        <dependency org="org.apache.struts" name="struts2-tiles-plugin" rev="2.2.1.1"/>
        <dependency org="com.jgeppert.struts2.jquery" name="struts2-jquery-plugin" rev="3.0.1"/>
        <dependency org="com.jgeppert.struts2.jquery" name="struts2-jquery-richtext-plugin" rev="3.0.1"/>
    
        <dependency org="org.hibernate" name="hibernate-core" rev="3.6.2.Final"/>
        <dependency org="org.hibernate" name="hibernate-c3p0" rev="3.6.2.Final"/>
        <dependency org="org.hibernate" name="hibernate-entitymanager" rev="3.6.2.Final"/>
        <dependency org="org.hibernate" name="hibernate-tools" rev="3.2.4.GA"/>
        <dependency org="c3p0" name="c3p0" rev="0.9.1"/>
    
        <dependency org="org.slf4j" name="slf4j-simple" rev="1.6.1"/>
        <dependency org="commons-logging" name="commons-logging" rev="1.0.4"/>
    
        <dependency org="mysql" name="mysql-connector-java" rev="5.1.15"/>
        <dependency org="junit" name="junit" rev="4.8.1"/>
        <dependency org="log4j" name="log4j" rev="1.2.14"/>
        <dependency org="org.openid4java" name="openid4java-nodeps" rev="0.9.6" />
        <dependency org="org.apache.httpcomponents" name="httpclient" rev="4.0" />
        <dependency org="net.sourceforge.nekohtml" name="nekohtml" rev="1.9.10" />
    </dependencies>
    
    
    

    我遇到了类似的问题,发现这封邮件有帮助

    问题是,如果不指定任何conf,Ivy会假定您需要所有conf spring的配置,包括可选的配置 相反:

    
    

    <dependency org="org.springframework" name="spring" rev="2.0.3"
    conf="*->default"/>