Thanks!

________________________________

From: Eric Pugh [mailto:[EMAIL PROTECTED]
Sent: Thu 2/24/2005 6:44 PM
To: 'Maven Users List'
Subject: RE: Incremental builds/service packs



<snip/>

When I prototyped "latestversion" a while ago I did a check by just
loading up an HTML page like
http://www.ibiblio.org/maven/acegisecurity/jars/ and then parsing out
all the .jar files.  I then had logic like 0.5 > 0.4 and 0.5 < 1.0 and
0.5-ANYTHING < 0.5 and 0.5-ANYTHING > 0.4.  Oh, and I also had some sort
of logic to parse snapshot versions as well as well as only deal with
released (just numbers) projects.

This of course was very inflexible and led to a lot of weird
programming.  Also, I was primarily JUST interested in if for a specific
jar, there was a newer one out there.  I couldn't use the timestamp b/c
that doesn't specify when a jar was released, only when it was deployed.

Now, since then I have realized that a better way of processing would be
to load up the POM's:
http://www.ibiblio.org/maven/acegisecurity/poms/acegi-security-0.7.0.pom
of all the projects that I depend on and build up a dependency graph
that way.  Eventually you would trace the tree to the roots, and then be
able to report back not just on your dependencies, but all your
dependencies' dependencies.

As far as a starting point goes, look at the dependency convergence
report done by the multiproject plugin.  Here is an example:
http://jakarta.apache.org/turbine/fulcrum/dependency-convergence-report.
html, it is basically doing what you want.

As far as Maven builds go, it will do incremental builds unless you do a
maven clean inbetween.  If you don't want incremental builds, then just
do 'maven clean jar' to ensure you are starting from scratch.   Of
course, this does make your builds take much longer!  In our CC
environment we do 'maven test' and then every 4th build do 'maven clean
test'.

Eric Pugh



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to