You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ivy-dev@incubator.apache.org by Xavier Hanin <xa...@gmail.com> on 2006/11/07 21:00:20 UTC
future Ivy development
Hi All,
Ivy subversion repository should soon be migrated to ASF infrastructure, so
I'd like to start discussing what will be the future developments of the
project within the ASF incubator.
The first thing I'm wondering about is what will be the next version of Ivy.
Well, right now the next version will be 1.4.1, but it will be released
tomorrow, and still with the old infrastructure and branding. What I'm
wondering is what will be the first apache incubator version of Ivy? Will it
be a bug fix focused version (1.4.2), a feature focused with backward
compatiblity (1.5) or a major version, with some or a lot of backward
incompatibilities (2.0)?
The 1.x stream has began more than a year ago, and I see several reasons why
we may consider a 2.0 version:
* Ivy has been developed by a few people only so far, and so were the
choices made for its development. The apache community is a great
opportunity to discuss some choices that were made a long time ago and see
if we can provide better solutions. There is in particular two things I
would like to review which may break backward compatibility:
* module identification
For the moment module are identified by an organisation / module / revision
uple (called ModuleRevisionId in Ivy code). The problem is that very often
people have difficulties to find what to use as organisation and / or
module. Hence I thought that we may like to review this choice, and maybe go
with something similar to JSR 277 module identification system: a simple
module / revision couple, in which the module name is a qualified name
similar to a package name. The main advantage I see is that it would be very
easy to guess the name for a jar. Even a tool could guess it in most cases,
by finding the shortest non empty / non default package in a jar. Then
converting dots in slashes for repository management as is done in maven 2
would make Ivy repositories closer to maven 2 ones.
* terminology
A choice I often regret on Ivy is the use of 'configuration' both to
configure Ivy (with a configuration file) and for module configurations.
First time users are often confused about that, so I'd like to change the
terminology. This could be done without breaking backward compatibility
(with deprecated old names), but it's an important change which would better
be put in a 2.0 version
* We will have to refactor existing code to move to org.apache package, this
will break API backward compatibility (even if Ivy API hasn't really be
meant to be a real API so far, I think it's time to stabilize it so that
other tools could better use Ivy internally)
* Ivy code is quite old now, with core classes developed only by one not so
talented person (me :-)) very often with not much time. I'm fed up with the
too flat package structure, with core classes being way too big (e.g. Ivy
and IvyNode), so I can only imagine how someone taking a first look to the
code can feel :-) So I think it's a good time for an important refactoring,
to clean code and write some design documentation (not really my cup of tea,
but we definitly need some)
For all of these reasons I think we could target the next release to be a
2.0 version. However, the danger I see is that to deliver a 2.0 version it
will take more time, and during this time Ivy may be considered with less
interest (especially if we state that the next version will not be backward
compatible). To avoid that I think we should try to keep the scope of this
2.0 version focused on the most important things, and keep the rest for
later versions. We should also limit backward incompatibilty with deprecated
features/attributes (except for the API, in which using deprecation would
make the change too difficult), and provide tools for migration from 1.x to
2.x.
So, what do you think?
Xavier
Re: future Ivy development
Posted by Xavier Hanin <xa...@gmail.com>.
On 11/8/06, Steve Loughran <st...@apache.org> wrote:<snip/>
I have a work colleague who is converting all the maven2 metadata into
> RDF, including class information, with which we can mine some
> interesting things.
I've seen that on the repository mailing list, but I must admit that I'm not
familiar with the RDF format, so I was waiting to see what can be done with
it. If you (or your colleague) could give a little example of what kind of
data he want to obtain, this could be very useful for people in the dark
like me.
My own goal is to use the data to audit the repo, look for anomalies
> (loops, duplicate classes in different project's jars, missing links).
> It makes a very good place to see if some of the semantic web vision
> -individually published information- really can be merged together to
> produce a unified whole, or whether consistency fails down as things
> scale.
>
> Stefano M is also interested in some RDF-based Gump successor, which is
> itself dependency driven.
Dependency driven build server is a topic which interests me particularly.
I've developed a plugin for cruisecontrol a long time ago to get dependency
driven builds in cruisecontrol, but the result is not perfect and does not
work with latest cruisecontrol version. Right now I haven't found a tool
satisfying my expectation, and was even wondering if I could find the time
to develop/patch something on my own.
While I personally dont think that much of RDF, I can see value in
> having some metadata info that is entirely tool-neutral, which RDF is,
> and in the N3 notation, almost human readable once you've had enough
> training in it. Plus swiprolog has good rdf integration, so I can work
> with a proper logic language while processing it.
I'll believe you, my prolog courses are far away now, and as I said I do not
clearly see what an RDF representation of the maven repository could look
like.
It may make sense to have an RDF form as an interchange representation
> of data, between m2, ivy and gump, and any other tools.
Why not, if it makes sense.
Where to discuss this? Here? repository@apache.org? the maven mailing
> list is too busy for a big discussion.
This is clearly related to dependency management, so here can be a good
place. I'm not confortable enough with the intent and the expectation of the
repository mailing list to say if it's appropriate or not, for me both are
ok.
Xavier
-Steve
>
>
>
>
Re: future Ivy development
Posted by Steve Loughran <st...@apache.org>.
Xavier Hanin wrote:
> On 11/8/06, Brett Porter <br...@apache.org> wrote:
>>
>> Is there any scope to revisit collaborating on the metadata?
>
>
> I think that moving to apache is a great opportunity to collaborate on the
> metadata, and if we choose to go with a 2.0 version, it will allow to give
> more flexibility to our point of view :-) So that's one more pro for a
> 2.0version :-)
>
> I know
>> you ruled it out back in 2005,
>
>
> I regret you understood it like that, I should had been more cautious when
> speaking about that. The problem we identified at that time was that our
> users liked the flexibility of our module configurations and configuration
> mapping, and your point of view about that kind of flexibility was
> different. That's why I thought we both concluded we were not ready to
> collaborate on metadata. Anyway now I think both maven 2 and ivy are more
> mature, thus it should be easier to identify use cases that must be
> addressed and how we can address them.
>
> but you've identified that getting
>> contributed metadata in has been a problem for Ivy, something Maven
>> is well familiar with and are (slowly) addressing and making good
>> progress (especially with tooling in the area now). Seems like a good
>> opportunity.
>
>
> Yes, getting contributed metadata is difficult, and Maven has a lot more
> experience on the subject than Ivy community has. So I'd love to benefit
> from your experience, and so does the Ivy community I guess :-)
>
> Maven is getting into it's next big development cycle so additions/
>> changes to the POM and revisions to the way the dependencies are
>> resolved are both up for grabs and high on my list of things to do.
>
>
> This is great if we are both at a step where discussions can really lead to
> change in the tools and a more homogeneous way to deal with that difficult
> problem of managing dependencies.
>
> Is it worth discussing?
I have a work colleague who is converting all the maven2 metadata into
RDF, including class information, with which we can mine some
interesting things.
My own goal is to use the data to audit the repo, look for anomalies
(loops, duplicate classes in different project's jars, missing links).
It makes a very good place to see if some of the semantic web vision
-individually published information- really can be merged together to
produce a unified whole, or whether consistency fails down as things scale.
Stefano M is also interested in some RDF-based Gump successor, which is
itself dependency driven.
While I personally dont think that much of RDF, I can see value in
having some metadata info that is entirely tool-neutral, which RDF is,
and in the N3 notation, almost human readable once you've had enough
training in it. Plus swiprolog has good rdf integration, so I can work
with a proper logic language while processing it.
It may make sense to have an RDF form as an interchange representation
of data, between m2, ivy and gump, and any other tools.
Where to discuss this? Here? repository@apache.org? the maven mailing
list is too busy for a big discussion.
-Steve
Re: future Ivy development
Posted by Xavier Hanin <xa...@gmail.com>.
On 11/8/06, Brett Porter <br...@apache.org> wrote:
>
> Is there any scope to revisit collaborating on the metadata?
I think that moving to apache is a great opportunity to collaborate on the
metadata, and if we choose to go with a 2.0 version, it will allow to give
more flexibility to our point of view :-) So that's one more pro for a
2.0version :-)
I know
> you ruled it out back in 2005,
I regret you understood it like that, I should had been more cautious when
speaking about that. The problem we identified at that time was that our
users liked the flexibility of our module configurations and configuration
mapping, and your point of view about that kind of flexibility was
different. That's why I thought we both concluded we were not ready to
collaborate on metadata. Anyway now I think both maven 2 and ivy are more
mature, thus it should be easier to identify use cases that must be
addressed and how we can address them.
but you've identified that getting
> contributed metadata in has been a problem for Ivy, something Maven
> is well familiar with and are (slowly) addressing and making good
> progress (especially with tooling in the area now). Seems like a good
> opportunity.
Yes, getting contributed metadata is difficult, and Maven has a lot more
experience on the subject than Ivy community has. So I'd love to benefit
from your experience, and so does the Ivy community I guess :-)
Maven is getting into it's next big development cycle so additions/
> changes to the POM and revisions to the way the dependencies are
> resolved are both up for grabs and high on my list of things to do.
This is great if we are both at a step where discussions can really lead to
change in the tools and a more homogeneous way to deal with that difficult
problem of managing dependencies.
Is it worth discussing?
Definitely!
Xavier
Incidentally, I think it solves your
> configuration vs configuration naming issue too :)
Cheers,
> Brett
>
> On 08/11/2006, at 8:00 AM, Xavier Hanin wrote:
>
> > Hi All,
> >
> > Ivy subversion repository should soon be migrated to ASF
> > infrastructure, so
> > I'd like to start discussing what will be the future developments
> > of the
> > project within the ASF incubator.
> >
> > The first thing I'm wondering about is what will be the next
> > version of Ivy.
> > Well, right now the next version will be 1.4.1, but it will be
> > released
> > tomorrow, and still with the old infrastructure and branding. What I'm
> > wondering is what will be the first apache incubator version of
> > Ivy? Will it
> > be a bug fix focused version (1.4.2), a feature focused with backward
> > compatiblity (1.5) or a major version, with some or a lot of backward
> > incompatibilities (2.0)?
> >
> > The 1.x stream has began more than a year ago, and I see several
> > reasons why
> > we may consider a 2.0 version:
> > * Ivy has been developed by a few people only so far, and so were the
> > choices made for its development. The apache community is a great
> > opportunity to discuss some choices that were made a long time ago
> > and see
> > if we can provide better solutions. There is in particular two
> > things I
> > would like to review which may break backward compatibility:
> > * module identification
> > For the moment module are identified by an organisation / module /
> > revision
> > uple (called ModuleRevisionId in Ivy code). The problem is that
> > very often
> > people have difficulties to find what to use as organisation and / or
> > module. Hence I thought that we may like to review this choice, and
> > maybe go
> > with something similar to JSR 277 module identification system: a
> > simple
> > module / revision couple, in which the module name is a qualified name
> > similar to a package name. The main advantage I see is that it
> > would be very
> > easy to guess the name for a jar. Even a tool could guess it in
> > most cases,
> > by finding the shortest non empty / non default package in a jar. Then
> > converting dots in slashes for repository management as is done in
> > maven 2
> > would make Ivy repositories closer to maven 2 ones.
> > * terminology
> > A choice I often regret on Ivy is the use of 'configuration' both to
> > configure Ivy (with a configuration file) and for module
> > configurations.
> > First time users are often confused about that, so I'd like to
> > change the
> > terminology. This could be done without breaking backward
> > compatibility
> > (with deprecated old names), but it's an important change which
> > would better
> > be put in a 2.0 version
> >
> > * We will have to refactor existing code to move to org.apache
> > package, this
> > will break API backward compatibility (even if Ivy API hasn't
> > really be
> > meant to be a real API so far, I think it's time to stabilize it so
> > that
> > other tools could better use Ivy internally)
> >
> > * Ivy code is quite old now, with core classes developed only by
> > one not so
> > talented person (me :-)) very often with not much time. I'm fed up
> > with the
> > too flat package structure, with core classes being way too big
> > (e.g. Ivy
> > and IvyNode), so I can only imagine how someone taking a first look
> > to the
> > code can feel :-) So I think it's a good time for an important
> > refactoring,
> > to clean code and write some design documentation (not really my
> > cup of tea,
> > but we definitly need some)
> >
> > For all of these reasons I think we could target the next release
> > to be a
> > 2.0 version. However, the danger I see is that to deliver a 2.0
> > version it
> > will take more time, and during this time Ivy may be considered
> > with less
> > interest (especially if we state that the next version will not be
> > backward
> > compatible). To avoid that I think we should try to keep the scope
> > of this
> > 2.0 version focused on the most important things, and keep the rest
> > for
> > later versions. We should also limit backward incompatibilty with
> > deprecated
> > features/attributes (except for the API, in which using deprecation
> > would
> > make the change too difficult), and provide tools for migration
> > from 1.x to
> > 2.x.
> >
> > So, what do you think?
> >
> > Xavier
>
Re: future Ivy development
Posted by Xavier Hanin <xa...@gmail.com>.
On 11/8/06, Steve Loughran <st...@hpl.hp.com> wrote:
<snip>
> I understand that everyone wants stable, flawless metadata, but it
> doesnt happen.
It depends. For a private repository limited to a company use cases, you can
have stable metadata. And it may be a strict requirement.
With what we have today, the tools' caches stay frozen
> the moment they do their first fetch, so if things change then old
> machines never pick up the problem. Case in point, some of our machines
> here had a commons-logging that included log4j and logkit, even though
> they are now marked as optional in the pom. as a result, different
> machines build differently.
As soon as you accept metadata change without restriction (or even artifact
change) and do not check the repository each time, two machines may result
in a different build. The only (major) difference is how often it occurs. In
my opinion (which I had the opportunity with several Ivy users), build
reproducibility is so important that it's better to deal with flaws instead
of fixing them directly (by releasing a new version for instance, as Antoine
suggests). Unless we find a way to ensure that some kind of metadata updates
do not impact build reproducibility (and I think it's possible).
We need to recognise that infallibility-of-metadata is an unrealistic
> ideal and adapt to it.
>
I strongly agree, the difference of my point of view is in the way to adapt
to it.
Xavier
Re: Who owns the metadata
Posted by Antoine Levy-Lambert <an...@gmx.de>.
Bonjour Steve,
-------- Original-Nachricht --------
Datum: Thu, 09 Nov 2006 15:01:20 +0000
Von: Steve Loughran <st...@apache.org>
An: ivy-dev@incubator.apache.org
Betreff: Who owns the metadata
> Well, you have added a comment saying 'talk to the ant team about these
> poms' to each one, though I'd be happier if the poms were driven off
> lib/libraries.properties, as I've stated before. The risk now is that
> those poms will age badly, with new releases of ant having poms out of
> sync with the source. That is, unless you can get continuum or to build
> ant from source using them.
>
this is a valid point. I will do something like
<property file="library.properties"/>
then use these properties when generating the release (with the filter <replaceproperties/>
There is already one property in the POMs which gets replaced in the build.
Regards,
Antoine
Who owns the metadata
Posted by Steve Loughran <st...@apache.org>.
Antoine Levy-Lambert wrote:
> This is a valid point. Ideally POMs should only come from the project
> releasing the binaries, not from its users.
SHOULD as opposed to MUST, in RFC terms.
Nobody wants to write the POMs, but as Maven effectively forces you to
get all your dependencies from a repository, if you want to build with
something, you need the Pom in there, even if it is a stub with no
dependencies (which are how most of my poms are, BTW). By letting users
contribute that stuff back, only one person has to do the work.
The hope is that that one person gets it right, else a mistake is hard
coded in wrong, forever.
>
> I myself sent an upload request for jsch with initially a wrong groupId
> of jsch and not com.jcraft. This was fixed later by Carlos Sanchez.
> Users of libraries who need Maven uploads should contact the library
> provider and make them create their own POMs.
> ;-) So I have to contact jcraft concerning POMs, I did not do it until now.
Naughty.
> Realistically, your release manager will not want to make a 1.0.1
> release because of the wrong POM.
> But projects which provide their own POMs should consider the POMs as
> part of their sources.
Better have a test process for it, then. Something to audit the md and
verify that all the artifacts are available.
>
> This means that if people have issues with the Ant POMs after 1.7.0 is
> out, IMHO they should create bug reports in bugzilla with a patch attached,
> and wait until the next release.
Well, you have added a comment saying 'talk to the ant team about these
poms' to each one, though I'd be happier if the poms were driven off
lib/libraries.properties, as I've stated before. The risk now is that
those poms will age badly, with new releases of ant having poms out of
sync with the source. That is, unless you can get continuum or to build
ant from source using them.
As I stated earlier on in this discussion: every artifact's metadata
ought to inclue information about the origin of the metadata, rather
than just the artifact. Both groups could leave space for dublin-core
author metadata about both, just with something in the schema, elements
<artifactinfo> and <metadatainfo> of type xsd:any xmlns="##other".
-Steve
-steve
Re: future Ivy development
Posted by Stephane Bailliez <sb...@gmail.com>.
Antoine Levy-Lambert wrote:
> Anyway, corporate environments have their own repositories. So on their own repository, they can patch whatever they need. Ideally, one should patch the data locally, and post a bug report parallel to that.
>
> Where I am working we are setting up ivy, and we will have our own repository.
>
Absolutely and I think this is what should be advocated rather than
making people believe than an online repo is the greatest thing on earth
since sliced bread and trying to control entropy by creating super
complicated solutions.
-- stephane
Re: future Ivy development
Posted by Antoine Levy-Lambert <an...@gmx.de>.
Bonjour Stephane,
-------- Original-Nachricht --------
Datum: Thu, 09 Nov 2006 14:46:26 +0100
Von: Stephane Bailliez <sb...@gmail.com>
An: ivy-dev@incubator.apache.org
Betreff: Re: future Ivy development
> Antoine Levy-Lambert wrote:
> > This means that if people have issues with the Ant POMs after 1.7.0 is
> > out, IMHO they should create bug reports in bugzilla with a patch
> attached,
> > and wait until the next release.
> >
> This would be unacceptable in most corporate environments.
>
Anyway, corporate environments have their own repositories. So on their own repository, they can patch whatever they need. Ideally, one should patch the data locally, and post a bug report parallel to that.
Where I am working we are setting up ivy, and we will have our own repository.
Regards,
Antoine
Re: future Ivy development
Posted by Stephane Bailliez <sb...@gmail.com>.
Steve Loughran wrote:
> When using M2 I ended with a private repo with custom metadata to
> strip out things that weren't needed. I will inevitably do the same
> with Ivy. I may not cache artifacts, but I will certainly tune the
> dependency information, because someone's belief on what the
> dependencies are may not match mine. Go import hibernate if you want
> an example of what I had to deal with. They discard one team's
> metadata, then add their own. This is what it is like out there.
>
> http://www.ibiblio.org/maven2/org/hibernate/hibernate/3.1rc2/hibernate-3.1rc2.pom
>
>
> Of course, if we have standard confs with standard semantics (e.g
> master==artifact with no dependencies) then
> I dont need to exclude things, just add others,
I agree
>> Just like bugs, you may perfectly end up in a situation where you
>> need to patch (or workaround) your opensource/commercial component
>> (even though the patch is submitted and applied) and run with it
>> until the next release and/or use a custom snapshot. It does not have
>> to be the norm (and I'm the very first one to fight against such
>> practice which consist of patching everything just because it's
>> opensource and you can do it) but this type of thing _will_ happen.
>
> mmm. Open source is the right to edit the code. It is not a duty.
mmm...was not probably very clear but you have 2 things there:
1) when you _have to_ (ie: your corporate duty) release something on a
fixed date and you have an annoying bug in a third party that gets in
your way and which code prevent you to subclass, etc... then you may end
up in 'patching' this third party code (and of course you may definitely
want to report that as a bug and submit the patch...in your own interest)
2) Some have a tendency to follow a very much
'patch-everything-because-I-can' as there is the code so whatever the
criticality of the 'annoyance', a javadoc and extensions, etc..you will
end up with a whole set of 'patched' dependencies, which will then
increase very much your maintenance problem. It's usually when there is
confusion between what the company objective and the fun side of messing
around everything and feeling that it would be cool to patch linux to
add that and httpd this and tomcat that, and axis this and postgresql
that.. (which I agree can give you some super cool feeling but is not
exactly helping to release your product)
It's all trade off and weighting benefits/costs/annoyances, which of
course is not easy.
-- stephane
Re: future Ivy development
Posted by Steve Loughran <st...@apache.org>.
Stephane Bailliez wrote:
> Antoine Levy-Lambert wrote:
>> This means that if people have issues with the Ant POMs after 1.7.0 is
>> out, IMHO they should create bug reports in bugzilla with a patch
>> attached,
>> and wait until the next release.
>>
> This would be unacceptable in most corporate environments.
>
> If you can afford to depend on an online repository which is unreliable
> and uncontrolled as well as the release schedule of an opensource (or
> commercial) component which is unreliable and uncontrolled and hold on,
> that's fine, but that's far from the norm.
When using M2 I ended with a private repo with custom metadata to strip
out things that weren't needed. I will inevitably do the same with Ivy.
I may not cache artifacts, but I will certainly tune the dependency
information, because someone's belief on what the dependencies are may
not match mine. Go import hibernate if you want an example of what I had
to deal with. They discard one team's metadata, then add their own. This
is what it is like out there.
http://www.ibiblio.org/maven2/org/hibernate/hibernate/3.1rc2/hibernate-3.1rc2.pom
Of course, if we have standard confs with standard semantics (e.g
master==artifact with no dependencies) then
I dont need to exclude things, just add others,
>
> Just like bugs, you may perfectly end up in a situation where you need
> to patch (or workaround) your opensource/commercial component (even
> though the patch is submitted and applied) and run with it until the
> next release and/or use a custom snapshot. It does not have to be the
> norm (and I'm the very first one to fight against such practice which
> consist of patching everything just because it's opensource and you can
> do it) but this type of thing _will_ happen.
mmm. Open source is the right to edit the code. It is not a duty.
>
> Especially when we are talking about a piece of text.
>
>
> -- stephane
Re: future Ivy development
Posted by Stephane Bailliez <sb...@gmail.com>.
Antoine Levy-Lambert wrote:
> This means that if people have issues with the Ant POMs after 1.7.0 is
> out, IMHO they should create bug reports in bugzilla with a patch attached,
> and wait until the next release.
>
This would be unacceptable in most corporate environments.
If you can afford to depend on an online repository which is unreliable
and uncontrolled as well as the release schedule of an opensource (or
commercial) component which is unreliable and uncontrolled and hold on,
that's fine, but that's far from the norm.
Just like bugs, you may perfectly end up in a situation where you need
to patch (or workaround) your opensource/commercial component (even
though the patch is submitted and applied) and run with it until the
next release and/or use a custom snapshot. It does not have to be the
norm (and I'm the very first one to fight against such practice which
consist of patching everything just because it's opensource and you can
do it) but this type of thing _will_ happen.
Especially when we are talking about a piece of text.
-- stephane
Re: future Ivy development
Posted by Antoine Levy-Lambert <an...@gmx.de>.
Hello Stefan,
Stefan Bodewig wrote:
> On Wed, 08 Nov 2006, Antoine Levy-Lambert <an...@gmx.de> wrote:
>
>
>> I would more agree with Xavier, and believe that if the metadata in
>> the POM or ivy.xml is wrong, there should be a new release with a
>> new version number.
>>
>
> I'll be the first one to admit that I have almost no experience with a
> Maven repo and absolutely no experience with Ivy's repo. But I have
> seen people add POMs to Maven repos for projects they are not involved
> with.
>
>
This is a valid point. Ideally POMs should only come from the project
releasing the binaries, not from its users.
> If somebody adds a POM for release 1.0 of a project X I am the release
> manager of, do you really expect me to release 1.0.1 because this
> other guy made a mistake in the POM which probably was created without
> even consulting with me?
I myself sent an upload request for jsch with initially a wrong groupId
of jsch and not com.jcraft. This was fixed later by Carlos Sanchez.
Users of libraries who need Maven uploads should contact the library
provider and make them create their own POMs.
;-) So I have to contact jcraft concerning POMs, I did not do it until now.
Realistically, your release manager will not want to make a 1.0.1
release because of the wrong POM.
But projects which provide their own POMs should consider the POMs as
part of their sources.
This means that if people have issues with the Ant POMs after 1.7.0 is
out, IMHO they should create bug reports in bugzilla with a patch attached,
and wait until the next release.
If POMs have their own revisions on top of the version of the artifacts,
then it would be OK to fix them.
Regards,
Antoine
Re: future Ivy development
Posted by Stephane Bailliez <sb...@gmail.com>.
Stefan Bodewig wrote:
> If somebody adds a POM for release 1.0 of a project X I am the release
> manager of, do you really expect me to release 1.0.1 because this
> other guy made a mistake in the POM which probably was created without
> even consulting with me?
>
Exactly.
The perfect world is fine if you are controlling the release, you can
(should) be psycho-rigid for your release. But the fact of the matter is
that a repository is full of things and especially full of things where
dependencies where not described or described in way that might be limited
Can I expect everybody in the world to ship binaries with a super nice
ivy.xml.
No.
So someone would have to do it or I would have to do it. So I may do it
for version X and then revisit later with the same version X because
actually just the process of 'discovering' the 'real' dependencies of
the project and describing the dependencies takes time. The metadata
might also be 'not pretty' at first... like missing url, license,
description and so on.
So metadata do change.
Re: future Ivy development
Posted by Stefan Bodewig <bo...@apache.org>.
On Wed, 08 Nov 2006, Antoine Levy-Lambert <an...@gmx.de> wrote:
> I would more agree with Xavier, and believe that if the metadata in
> the POM or ivy.xml is wrong, there should be a new release with a
> new version number.
I'll be the first one to admit that I have almost no experience with a
Maven repo and absolutely no experience with Ivy's repo. But I have
seen people add POMs to Maven repos for projects they are not involved
with.
If somebody adds a POM for release 1.0 of a project X I am the release
manager of, do you really expect me to release 1.0.1 because this
other guy made a mistake in the POM which probably was created without
even consulting with me?
Stefan
Re: future Ivy development
Posted by Stephane Bailliez <sb...@gmail.com>.
Steve Loughran wrote:
> Stephane Bailliez wrote:
>
>>
>> You will change the metadata. If you want reproductability (and you
>> will want that) then version your repository.
>>
>
> ahh, now there's a thought.
>
> Rather than seek stability, let you say you want to build against last
> month's version of the metadata. We could do this if the public
> repository were actually a viewsvn front end to an SVN repo.
>
> Of course, this gets complex fast. You dont want to depend on the
> 2006-11-08 repository for one artifact, and the 2006-11-03 for another...
Does not need to be complex unless you want it to be and not observing
rules. It is all about having one unique configuration parameter saying
"I depend on that". If you are on a team and people are not following
that and doing there own stuff, sure problem will happen, but it is not
as different as people developing module A using third party 1.1 and
people developing B using third party 2.0 while they are incompatible
and that these modules are bound to join in the future... you would very
much prefer everybody to use the same version 90% of the time, the 10%
remaining time being for emergency case, where simply put, you depend on
another third party which depends on 1.1.
Re: future Ivy development
Posted by Steve Loughran <st...@apache.org>.
Stephane Bailliez wrote:
>
> You will change the metadata. If you want reproductability (and you will
> want that) then version your repository.
>
ahh, now there's a thought.
Rather than seek stability, let you say you want to build against last
month's version of the metadata. We could do this if the public
repository were actually a viewsvn front end to an SVN repo.
Of course, this gets complex fast. You dont want to depend on the
2006-11-08 repository for one artifact, and the 2006-11-03 for another...
Re: future Ivy development
Posted by Stephane Bailliez <sb...@gmail.com>.
Antoine Levy-Lambert wrote:
> Steve Loughran wrote:
>
>>
>> We need to recognise that infallibility-of-metadata is an unrealistic
>> ideal and adapt to it.
>>
> I would more agree with Xavier, and believe that if the metadata in the
> POM or ivy.xml is wrong, there should be a new release with a new
> version number.
>
No. Because there is a world of difference between people releasing a
piece of software and people using it and dealing with dependencies.
What exists right now is what Steve describes. What will happen is that
when you will need component A you will add it to the repo and add the
dependency descriptor. Don't think a minute you will get it right the
first time. You won't.
As for people describing the dependencies of their own piece of
software, just look at any Maven project and you will realize that most
of them are totally wrong as well, don't care about scope or simply
mixing development and release.
> Otherwise, you can start tweaking everything everyday no ?
>
Not everyday. But this is why an online repo does not work to me unless
there is a revision system behind it instead of binning stuff.
You will change the metadata. If you want reproductability (and you will
want that) then version your repository.
Re: future Ivy development
Posted by Steve Loughran <st...@apache.org>.
Antoine Levy-Lambert wrote:
> Steve Loughran wrote:
> I would more agree with Xavier, and believe that if the metadata in the
> POM or ivy.xml is wrong, there should be a new release with a new
> version number.
so if someone accidentally releases an artifact to the public repository
ahead of schedule (it has happended), the only solution is to increase
the version marker and release a new artifact?
-steve
Re: future Ivy development
Posted by Antoine Levy-Lambert <an...@gmx.de>.
Steve Loughran wrote:
> Xavier Hanin wrote:
>> On 11/8/06, Steve Loughran <st...@apache.org> wrote:
>>
>> Both systems, by default, should check for updates to the
>>> metadata on a regular basis, because it does take a while to stabilise.
>>>
>>> I'm not sure about this point... well, I'm not opposed to the idea,
>>> but it
>> requires more reflexion. IMO metadata should never be modified,
>> except in
>> way that ensure backward compatibility, because it's the only to ensure
>> build reproducibility over time, which is a key concept IMO. So making a
>> check for updates a default may encourage updates. But if we find a
>> way to
>> ensure that an update is backward compatible, then it would make more
>> sense
>> to me. But maybe this is not applicable for a public repository like
>> the one
>> maven has. So maybe the default should simply be different for a public
>> repository and for a private/home made one.
>>
>> Xavier
>>
>
>
> I understand that everyone wants stable, flawless metadata, but it
> doesnt happen. With what we have today, the tools' caches stay frozen
> the moment they do their first fetch, so if things change then old
> machines never pick up the problem. Case in point, some of our
> machines here had a commons-logging that included log4j and logkit,
> even though they are now marked as optional in the pom. as a result,
> different machines build differently.
>
> We need to recognise that infallibility-of-metadata is an unrealistic
> ideal and adapt to it.
I would more agree with Xavier, and believe that if the metadata in the
POM or ivy.xml is wrong, there should be a new release with a new
version number.
Otherwise, you can start tweaking everything everyday no ?
Antoine
Re: future Ivy development
Posted by Steve Loughran <st...@hpl.hp.com>.
Xavier Hanin wrote:
> On 11/8/06, Steve Loughran <st...@apache.org> wrote:
>
> Both systems, by default, should check for updates to the
>> metadata on a regular basis, because it does take a while to stabilise.
>>
>> I'm not sure about this point... well, I'm not opposed to the idea,
>> but it
> requires more reflexion. IMO metadata should never be modified, except in
> way that ensure backward compatibility, because it's the only to ensure
> build reproducibility over time, which is a key concept IMO. So making a
> check for updates a default may encourage updates. But if we find a way to
> ensure that an update is backward compatible, then it would make more sense
> to me. But maybe this is not applicable for a public repository like the
> one
> maven has. So maybe the default should simply be different for a public
> repository and for a private/home made one.
>
> Xavier
>
I understand that everyone wants stable, flawless metadata, but it
doesnt happen. With what we have today, the tools' caches stay frozen
the moment they do their first fetch, so if things change then old
machines never pick up the problem. Case in point, some of our machines
here had a commons-logging that included log4j and logkit, even though
they are now marked as optional in the pom. as a result, different
machines build differently.
We need to recognise that infallibility-of-metadata is an unrealistic
ideal and adapt to it.
Re: future Ivy development
Posted by Xavier Hanin <xa...@gmail.com>.
On 11/8/06, Steve Loughran <st...@apache.org> wrote:
>
> <snip/>
>
> Seems to me the first things we could do is
>
> 1. have an <ivy:topom> task to create a Pom from an ivy file, given
> mappings from configs to maven states.
There's already an undocumented task which does the opposite: convertpom
converts a pom (well the dependency part of a pom) to an ivy file. It does
not take into account all pom features, like pom inheritance and dependency
management section which have no counterpart in Ivy. Converting Ivy files to
pom is also limiting, because ivy configurations are not limited, nor is the
configuration mapping, and there is no pom counterpart as far as I know.
That's one of the main point why we still do not use poms as default format
in Ivy, otherwise everything in Ivy is independent of the file format
describing the dependencies, as long as you can parse it to an in memory
ModuleDescriptor instance (and this is already pluggable with
ModuleDescriptorParser, our of the box Ivy supports ivy files and "basic"
pom files.
2. Agree on a set of default configurations for ivy artifacts (and the
> new pom files) which we are all happy with . Something like
>
> compile
> test
> minimal
> standalone
> full
This seems to be a good set as default. But we also need to agree on default
configuration mapping. And this is more difficult, because in maven the
mapping is hard coded and a bit complex to handle in Ivy. We have an
approximation for maven 2 compatibility using fancy configurations, but this
is not a very good solution in my opinion. So I think we should discuss
about that too.
3. Make changes to the pom files/ivy xml files that we all think
> metadata should have. My suggestions are
> -include information about who wrote the pom, so you know who to talk
> to
> -include timestamp info.
Both are already part of ivy files specification, even if not always used:
- http://www.jayasoft.org/ivy/doc/ivyfile/info (publication attribute)
- http://www.jayasoft.org/ivy/doc/ivyfile/ivyauthor
4. tweak both apps to fix the assumption that published metadata is
> perfect.
I agree that checking if a file is correct both grammatically and
semantically is a must that we need to implement.
Both systems, by default, should check for updates to the
> metadata on a regular basis, because it does take a while to stabilise.
>
> I'm not sure about this point... well, I'm not opposed to the idea, but it
requires more reflexion. IMO metadata should never be modified, except in
way that ensure backward compatibility, because it's the only to ensure
build reproducibility over time, which is a key concept IMO. So making a
check for updates a default may encourage updates. But if we find a way to
ensure that an update is backward compatible, then it would make more sense
to me. But maybe this is not applicable for a public repository like the one
maven has. So maybe the default should simply be different for a public
repository and for a private/home made one.
Xavier
Re: future Ivy development
Posted by Steve Loughran <st...@apache.org>.
Brett Porter wrote:
> Is there any scope to revisit collaborating on the metadata? I know you
> ruled it out back in 2005, but you've identified that getting
> contributed metadata in has been a problem for Ivy, something Maven is
> well familiar with and are (slowly) addressing and making good progress
> (especially with tooling in the area now). Seems like a good opportunity.
>
> Maven is getting into it's next big development cycle so
> additions/changes to the POM and revisions to the way the dependencies
> are resolved are both up for grabs and high on my list of things to do.
I have some early opinions about the current data, though not with any
scientific evidence to back it up.
> Is it worth discussing? Incidentally, I think it solves your
> configuration vs configuration naming issue too :)
>
> Cheers,
> Brett
>
Seems to me the first things we could do is
1. have an <ivy:topom> task to create a Pom from an ivy file, given
mappings from configs to maven states.
2. Agree on a set of default configurations for ivy artifacts (and the
new pom files) which we are all happy with . Something like
compile
test
minimal
standalone
full
3. Make changes to the pom files/ivy xml files that we all think
metadata should have. My suggestions are
-include information about who wrote the pom, so you know who to talk to
-include timestamp info.
4. tweak both apps to fix the assumption that published metadata is
perfect. Both systems, by default, should check for updates to the
metadata on a regular basis, because it does take a while to stabilise.
Re: future Ivy development
Posted by Brett Porter <br...@apache.org>.
Is there any scope to revisit collaborating on the metadata? I know
you ruled it out back in 2005, but you've identified that getting
contributed metadata in has been a problem for Ivy, something Maven
is well familiar with and are (slowly) addressing and making good
progress (especially with tooling in the area now). Seems like a good
opportunity.
Maven is getting into it's next big development cycle so additions/
changes to the POM and revisions to the way the dependencies are
resolved are both up for grabs and high on my list of things to do.
Is it worth discussing? Incidentally, I think it solves your
configuration vs configuration naming issue too :)
Cheers,
Brett
On 08/11/2006, at 8:00 AM, Xavier Hanin wrote:
> Hi All,
>
> Ivy subversion repository should soon be migrated to ASF
> infrastructure, so
> I'd like to start discussing what will be the future developments
> of the
> project within the ASF incubator.
>
> The first thing I'm wondering about is what will be the next
> version of Ivy.
> Well, right now the next version will be 1.4.1, but it will be
> released
> tomorrow, and still with the old infrastructure and branding. What I'm
> wondering is what will be the first apache incubator version of
> Ivy? Will it
> be a bug fix focused version (1.4.2), a feature focused with backward
> compatiblity (1.5) or a major version, with some or a lot of backward
> incompatibilities (2.0)?
>
> The 1.x stream has began more than a year ago, and I see several
> reasons why
> we may consider a 2.0 version:
> * Ivy has been developed by a few people only so far, and so were the
> choices made for its development. The apache community is a great
> opportunity to discuss some choices that were made a long time ago
> and see
> if we can provide better solutions. There is in particular two
> things I
> would like to review which may break backward compatibility:
> * module identification
> For the moment module are identified by an organisation / module /
> revision
> uple (called ModuleRevisionId in Ivy code). The problem is that
> very often
> people have difficulties to find what to use as organisation and / or
> module. Hence I thought that we may like to review this choice, and
> maybe go
> with something similar to JSR 277 module identification system: a
> simple
> module / revision couple, in which the module name is a qualified name
> similar to a package name. The main advantage I see is that it
> would be very
> easy to guess the name for a jar. Even a tool could guess it in
> most cases,
> by finding the shortest non empty / non default package in a jar. Then
> converting dots in slashes for repository management as is done in
> maven 2
> would make Ivy repositories closer to maven 2 ones.
> * terminology
> A choice I often regret on Ivy is the use of 'configuration' both to
> configure Ivy (with a configuration file) and for module
> configurations.
> First time users are often confused about that, so I'd like to
> change the
> terminology. This could be done without breaking backward
> compatibility
> (with deprecated old names), but it's an important change which
> would better
> be put in a 2.0 version
>
> * We will have to refactor existing code to move to org.apache
> package, this
> will break API backward compatibility (even if Ivy API hasn't
> really be
> meant to be a real API so far, I think it's time to stabilize it so
> that
> other tools could better use Ivy internally)
>
> * Ivy code is quite old now, with core classes developed only by
> one not so
> talented person (me :-)) very often with not much time. I'm fed up
> with the
> too flat package structure, with core classes being way too big
> (e.g. Ivy
> and IvyNode), so I can only imagine how someone taking a first look
> to the
> code can feel :-) So I think it's a good time for an important
> refactoring,
> to clean code and write some design documentation (not really my
> cup of tea,
> but we definitly need some)
>
> For all of these reasons I think we could target the next release
> to be a
> 2.0 version. However, the danger I see is that to deliver a 2.0
> version it
> will take more time, and during this time Ivy may be considered
> with less
> interest (especially if we state that the next version will not be
> backward
> compatible). To avoid that I think we should try to keep the scope
> of this
> 2.0 version focused on the most important things, and keep the rest
> for
> later versions. We should also limit backward incompatibilty with
> deprecated
> features/attributes (except for the API, in which using deprecation
> would
> make the change too difficult), and provide tools for migration
> from 1.x to
> 2.x.
>
> So, what do you think?
>
> Xavier