You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ivy-user@ant.apache.org by Kishore Vajjala <kv...@gmail.com> on 2008/07/01 01:24:08 UTC
Help with maven optional dependencies
hi,
I'm a new ivy user and briefly this is the scenario I have.
<ivy-module version="2.0">
<info organisation="ivy-ivy" module="ivy-test"/>
<configurations>
<conf name="compile" description="compile time dependencies" />
<conf name="runtime" description="run time dependencies" />
</configurations>
<dependencies>
<!-- runtime dependencies -->
<dependency org="org.springframework" name="spring" rev="1.2.8"
conf="*->default"/>
</dependencies>
</ivy-module>
and the ivy build target is
<target name="ivy-resolve" description="--> retrieve dependencies with ivy">
<ivy:retrieve pattern="${webinf.lib.dir}/[artifact]-[revision].[ext]"
conf="runtime" sync="true" />
<ivy:retrieve pattern="${devlib.dir}/[artifact]-[revision].[ext]"
conf="compile" sync="true" />
</target>
Now spring atrifact has a lot of optional dependencies which I do not want
in my 'runtime' configuration.
I have followed the instructions in the thread
http://mail-archives.apache.org/mod_mbox/ant-ivy-user/200703.mbox/%3C635a05060703310946q2f50880aqe07219c9e3026b83@mail.gmail.com%3E
And I still see that ivy is trying to get jta which is optional and ivy is
still trying to download the optional dependencies.
Can you please help me with this.
Re: Help with maven optional dependencies
Posted by Kishore Vajjala <kv...@gmail.com>.
On 6/30/08, Kishore Vajjala <kv...@gmail.com> wrote:
>
> hi,
>
> I'm a new ivy user and briefly this is the scenario I have.
>
> <ivy-module version="2.0">
> <info organisation="ivy-ivy" module="ivy-test"/>
> <configurations>
> <conf name="compile" description="compile time dependencies" />
> <conf name="runtime" description="run time dependencies" />
> </configurations>
> <dependencies>
> <!-- runtime dependencies -->
> <dependency org="org.springframework" name="spring" rev="1.2.8" conf="*->default"/>
> </dependencies>
> </ivy-module>
>
> and the ivy build target is
> <target name="ivy-resolve" description="--> retrieve dependencies with ivy">
> <ivy:retrieve pattern="${webinf.lib.dir}/[artifact]-[revision].[ext]" conf="runtime" sync="true" />
> <ivy:retrieve pattern="${devlib.dir}/[artifact]-[revision].[ext]" conf="compile" sync="true" />
> </target>
>
> Now spring atrifact has a lot of optional dependencies which I do not want in my 'runtime' configuration.
>
> I have followed the instructions in the thread
> http://mail-archives.apache.org/mod_mbox/ant-ivy-user/200703.mbox/%3C635a05060703310946q2f50880aqe07219c9e3026b83@mail.gmail.com%3E
>
> And I still see that ivy is trying to get jta which is optional and ivy is still trying to download the optional dependencies.
>
>
> Can you please help me with this.