常春藤用于检索番石榴,现在它不 [英] Ivy used to retrieve guava, now it does not

查看:205
本文介绍了常春藤用于检索番石榴,现在它不的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

相关问题:<一href=\"http://stackoverflow.com/questions/16491229/ivy-cached-a-dependency-file-but-not-copy-to-my-lib\">Ivy缓存的依赖关系文件,但不能复制到我的lib

我的情况几乎相同,只是此已经工作了相当长一段时间,直到最近。

My situation is nearly identical, except that this has been working for quite a while until recently.

常春藤检索其他的jar:。传递依赖像com.google code.findbugs和文物指定JUnit等

Ivy retrieves other jars: transitive dependencies like com.google.code.findbugs, and specified artifacts like junit.

这并不番石榴罐子复制到我的lib中。

It does not copy the guava jar to my lib.

的ivy.xml:

<ivy-module version="2.0">
    <info organisation="mine" module="external-deps"/>
    <dependencies>
        <dependency org="com.google.guava" name="guava" rev="14.0.1"/>
        <dependency org="junit" name="junit" rev="4.11"/>
    </dependencies>
</ivy-module>

蚂蚁检索任务:

<target name="_ivy_retrieve" depends="init-ivy">
    <ivy:retrieve type="jar" pattern="${lib.dir}/ivy/[conf]/[organisation]/[artifact]-[type]-[revision].[ext]" log="quiet"/>
    <ivy:artifactproperty conf="default" name="lib.[artifact].[type]" value="ivy/[conf]/[organisation]/[artifact]-[type]-[revision].[ext]"/>
</target>

是我的ivy.xml正确指定?是我的任务检索打破?或者,确实为14.0.1分布番石榴东西休息一下?

Is my ivy.xml specified incorrectly? Is my retrieve task broken? Or, did something break for the 14.0.1 distribution for Guava?

推荐答案

看来,常春藤的类型强烈属性对应的Maven的包装属性。谷歌番石榴采用封装类型的捆绑而不是 JAR 这是由大多数开源项目。

It appears that Ivy's type attribute strongly corresponds to Maven's packaging attribute. Google Guava uses package type bundle instead of jar which is used by most open source projects.

参考:的http://search.maven.org/#artifactdetails%7Ccom.google.guava%7Cguava%7C17.0%7Cbundle

这篇关于常春藤用于检索番石榴,现在它不的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆