I just gave this a try and it worked for me. It could be that in your case the unpacking is failing for some reason.

<?xml version="1.0" encoding="UTF-8"?>
<ivy-module version="2.0" xmlns:e="http://ant.apache.org/ivy/extra";>
<info organisation="org.myapp" module="foo-bar" revision="0.1.0-SNAPSHOT"/>

    <configurations>
        <conf name="internal" visibility="private"/>
    </configurations>

....

    <dependencies>
<dependency org="org.myapp" name="hello-world" rev="0.2.0-SNAPSHOT" conf="internal->default">
            <artifact name="hello-world" ext="zip" e:packaging="zip" />
        </dependency>
...
    </dependencies>
</ivy-module>


Then I run:

java -jar $IVY_HOME/ivy-2.4.0.jar -settings "./ivysettings.xml" -ivy "./ivy.xml" -retrieve "./dist/lib/[artifact].[ext]" -sync -m2compatible

I see this log:

...
Unpacking org.myapp#hello-world;0.2.0-SNAPSHOT!hello-world.zip(zip)
...

and I see it extracted in the dist/lib folder. I'm using 2.4.0 of Ivy.

-Jaikiran


On Wednesday 19 August 2015 02:06 PM, Tamer Erdogan wrote:
After your email I tried with e:packaging, but without success.

-----Original Message-----
From: Jaikiran Pai [mailto:jai.forums2...@gmail.com]
Sent: Wednesday, August 19, 2015 00:46
To: ivy-user@ant.apache.org
Subject: Re: dependency packaging unpack problem

On Tuesday 18 August 2015 09:55 PM, Tamer Erdogan wrote:
Here is the myproject/ivy.xml for the project where the dependencies are 
defined:
<ivy-module version="2.0">
      <info organisation="com.mycompany.mymodule" module="mymodule"/>

         <dependencies>
                <dependency org="com.vasco.aal2" name="aal2sdk" rev="3.15.0">
                       <artifact name="mymodule-win64" type="zip" ext="zip" />
                </dependency>
         </dependencies>
</ivy-module>

....
....
Then I tried to put packaging="zip" in the dependency/artifact definition but 
Ivy didn't accept it, because of the xsd schema failure.
Have you tried using the extra attributes namespace as follows:

<ivy-module version="2.0" xmlns:e="http://ant.apache.org/ivy/extra";>
      <info organisation="com.mycompany.mymodule" module="mymodule"/>

         <dependencies>
                <dependency org="com.vasco.aal2" name="aal2sdk" rev="3.15.0">
                       <artifact name="mymodule-win64" type="zip"
ext="zip" e:packaging="zip" />
                </dependency>
         </dependencies>
</ivy-module>

Notice the declaration and usage of the "e" namespace for the packaging 
attribute.

-Jaikiran

Reply via email to