On 11/15/06, easyproglife <[EMAIL PROTECTED]> wrote:

Great.

If so, maybe it's time to start contributing ivy.xml files to various
open-source projects.


I don't know if it's related to the fact we have a pom converter. The
automatic pom conversion generates ivy files which are not really good,
simply because it's a generation and because Ivy do not support maven
scopes. So contributing ivy files written by hand is a good idea, but
contributing ivy files which are only pom converted in Ivy is not a good
thing in my opinion.
Another problem with file contribution is that most projects won't accept
them if they have to maintain them with subsequent versions, unless they use
ivy to manage their dependencies.

For example, I am currently dealing with Codehaus
XFire. They have pom.xml file along with their examples and I had to
download and install Maven in order to use them. Maybe we can initiate a
progress of contributing ivy.xml files for such projects.

(But, ivy alone is not enough. Maven also does the build. Supplying
build.xml may be a much more complicated task. I don't think we can do
automatic pom.xml to ivy.xml + build.xml convertion easily, unless
automatically creation of build.xml from pom.xml (+ the relevant Maven
plugins) is a possible task... I am not sure.)


This would mean creating a maven clone in ant, this is a huge task for which
the interest is limited IMO (except to ease migration from maven to
ant+ivy). I would personnally prefer focusing on releasing new Ivy versions
(1.5 first, then maybe a 2.0 with a reasonable scope) before involving time
in other time consuming tasks.

Xavier

What do you think?


On 11/15/06, Xavier Hanin <[EMAIL PROTECTED]> wrote:
>
> On 11/15/06, easyproglife <[EMAIL PROTECTED]> wrote:
> >
> > Hi Xavier.
> >
> > I am trying to write a simple command line utility to convert POM to
> > ivy.xml
>
>
> There's already such utility as an undocumented ant task:
> fr.jayasoft.ivy.ant.IvyConvertPom. Have a look to the code you should
> quickly see how to use it.
> And note that if you want to convert a bunch of files, you can use the
> install task to install everything from a m2 repo to an ivy repo.
>
> - Xavier
>
> .
> >
> > If you don't have the time to write it yourself, can you instruct me
how
> > can
> > I do so?
> >
> > I have started with a Java main class that uses "
> > fr.jayasoft.ivy.external.m2.PomModuleDescriptorParser".
> > I called "parseDescriptor" and got "ModuleDescriptor".
> >
> > How can I now write it as ivy.xml?
> >
> >
> > (In the future, I think this utility should get a list (regexp?) of
POM
> > files as a parameter. Later it may be written also as an Ant task.)
> >
> > Thanks,
> > easyproglife.
> >
> >
>
>


Reply via email to