On Fri, Sep 5, 2008 at 2:49 PM, Wim Deblauwe <[EMAIL PROTECTED]>
wrote:
Hi,
we have a kind of strange version mechanism, and I wonder I can
'translate'
this to maven.
This is how it works:
E1.01.01
E1.01.02
..
V1.01
Versions starting with E are test builds leading into the release
(V1.01 in
the example)
Is 1.01 considered newer then 1.01-E01 for example?
regards,
On Sep 5, 2008, at 17:14, Stephen Connolly replied:
From my reading of the code, anything with a qualifier is older than
anything without a qualifier
thus 1.01-blah < 1.01
yup
<http://maven.apache.org/ref/current/maven-artifact/xref/org/apache/maven/artifact/versioning/DefaultArtifactVersion.html#96
>
Unless the qualifier happens to be purely numeric, in which case it's
a build number and this happens:
1.01 < 1.01-1
Also "V1.01" > "E1.01.02" > "E1.01.01" because maven punts on the
unexpected syntax of the version and just treats it as a string.
p.s. Does anyone know the design history of Maven's idea of version?
To a new user with no experience in the code base it seems like such a
hack, particularly when you start mixing in SNAPSHOT. (I'd be willing
to bet that SNAPSHOT wasn't in the original design and was shoehorned
in when people decided it was too much of a pain to edit the pom file
for every build.)
// Ben
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]