ant-ivy-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "刘浩" <liu...@dayang.com.cn>
Subject ivy can not do well with jar which have classifier property
Date Mon, 24 Sep 2012 09:46:42 GMT
Hello:

When I use ivy to resolve "json-lib",like this:

<ivy-module version="2.0" xmlns:m ="http://ant.apache.org/ivy/maven">
    <info organisation="com.dayang" module="dyFileTransmit"/>
    <dependencies defaultconfmapping="*->default">
        <dependency org="net.sf.json-lib" name="json-lib" rev="2.2.2" m:classifier ="jdk15"/>
     </dependencies>
</ivy-module>

then in my caches directory: .ivy/net.sf.json-lib\json-lib 
ivy-2.2.2.xml like this:

<?xml version="1.0" encoding="UTF-8"?>
<ivy-module version="2.0">
<info organisation="net.sf.json-lib"
module="json-lib"
revision="2.2.2"
status="release"
publication="20120911114600"
default="true"
m:classifier="jdk15"
/>
<configurations>
<conf name="default" visibility="public"/>
</configurations>
<publications>
<artifact name="json-lib" type="jar" ext="jar" conf="default"/>
</publications>
</ivy-module>


and you will found that:ivy can't assign the deplendency of json-lib. But in really,json-lib
dependies contains:commons-beanutils.jar,commons-httpclient.jar,commons-lang.jar,ezmorph.jar,morph-1.0.1.jar.

So I think that ivy have a bug:maybe it can't support "classifier" property well,and it can't
assign the dependency of jar with "classifer" property.

Please give me a reply.
thanks!
===============================
PS: maven do it well

<dependency>
      <groupId>net.sf.json-lib</groupId>
      <artifactId>json-lib</artifactId>
      <version>2.2.2</version>
      <classifier>jdk15</classifier>
    </dependency>






2012-09-24 



刘浩
新闻制作网络部-北京研发

北京中科大洋科技发展股份有限公司
Dayang Technology Development Inc.         
----------------------------------
地址:北京海淀区中关村软件园大洋大厦
邮编:100094
电话:010-58985605
邮件:liuhao@dayang.com.cn
网页:www.dayang.com.cn
 
Mime
  • Unnamed multipart/related (inline, None, 0 bytes)
View raw message