At 7:45 PM -0500 12/1/05, Laurie Harper wrote:
Wendy Smoak wrote:
I'm planning to work on the Maven build. Some combination of getting
the version number into the filename (I think right now it should be
tiles-core-0.2-SNAPSHOT) and possibly adding a third piece to the
version number should allow us to publish snapshots that don't get
overwritten.
If someone has already done this with Maven, let me know and save me
some reasearch. :) So far I haven't had occasion to publish/deploy a
build with Maven, we've just been copying the jars into the right
place for the internal repo.
I'm no Maven guru but as far as I understand, SNAPSHOTs are
specifically an unversioned artifact which you build and deploy with
variants of jar:install etc. Maven will automatically ignore the
version in project.xml and use -SNAPSHOT instead in the artifact
file names.
I expect that you could include -SNAPSHOT explicitly in project.xml,
but it might confuse people used to the 'Maven way'. Of course you
know Maven far better than me in general; this is just one of those
things that always struck me about Maven. I can't see why I would
ever want to depend on a SNAPSHOT build unless I built it myself (or
ever want to see one in a public repository, for that matter), since
there's no telling where it came from in terms of code history.
I generally agree with you Laurie; I find SNAPSHOT annoying because
(a) as you note you don't know its origin and (b) it makes Maven take
a lot longer every time to test for possible updates. However, for
something like nightly build code, it's the only plausible way to
keep a number of related projects together.
Certainly I think depending upon SNAPSHOT is better than depending
upon a pseudo-interim version like "1.3.0-dev", but I would tolerate
using the timestamps that are made when SNAPSHOTs are made instead of
the "symbolic" name "SNAPSHOT".
Joe
--
Joe Germuska
[EMAIL PROTECTED]
http://blog.germuska.com
"Narrow minds are weapons made for mass destruction" -The Ex
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]