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 Romain CAMPOURCY <ro...@gmail.com> on 2010/07/21 09:23:55 UTC

[Maven]Resolve maven dependencies

Hi everyone.
I'm evaluating ivy as a dependency manager, actually i'm using maven.
I test simple case in Ivy : I use Ivy + ant. I can "connect"  to my
local maven repository.
But is it possible to resolve, with Ivy, dependencies from my pom.xml
(in ivy.xml)?
Because currently all my dependencies are managed with maven in a
pom.xml.  it would allow me to change gradually from maven to Ivy.

Thank's !


-- 
Romain CAMPOURCY

Re: [Maven]Resolve maven dependencies

Posted by Romain Campourcy <ro...@gmail.com>.
Nicolas Lalevée <ni...@...> writes:

> 
> On Wednesday 21 July 2010 09:23:55 Romain CAMPOURCY wrote:
> > Hi everyone.
> > I'm evaluating ivy as a dependency manager, actually i'm using maven.
> > I test simple case in Ivy : I use Ivy + ant. I can "connect"  to my
> > local maven repository.
> > But is it possible to resolve, with Ivy, dependencies from my pom.xml
> > (in ivy.xml)?
> > Because currently all my dependencies are managed with maven in a
> > pom.xml.  it would allow me to change gradually from maven to Ivy.
> 
> yep, instead of specifying an ivy.xml, just point to your pom.xml:
> 
> <ivy:resolve file="path/to/pom.xml"/>
> 
> Nicolas
> 
> 


Thx ! I alsol found this ant taks :
<target name="ivy-convert" depends="ivy-init">
	<ivy:convertpom pomFile="pom.xml" ivyFile="ivy.xml" />
</target>
It generates an ivy.xml from a pom.xml


Re: [Maven]Resolve maven dependencies

Posted by Nicolas Lalevée <ni...@hibnet.org>.
On Wednesday 21 July 2010 09:23:55 Romain CAMPOURCY wrote:
> Hi everyone.
> I'm evaluating ivy as a dependency manager, actually i'm using maven.
> I test simple case in Ivy : I use Ivy + ant. I can "connect"  to my
> local maven repository.
> But is it possible to resolve, with Ivy, dependencies from my pom.xml
> (in ivy.xml)?
> Because currently all my dependencies are managed with maven in a
> pom.xml.  it would allow me to change gradually from maven to Ivy.

yep, instead of specifying an ivy.xml, just point to your pom.xml:

<ivy:resolve file="path/to/pom.xml"/>

Nicolas