I’m amending my proposal to be:

Then, starting from the end of the version string, the following trailing
"null" tokens are trimmed:

    * “null” qualifier tokens ("", "final", "ga")

    * 0 tokens, except for those that are sandwiched between two hyphens
with a numeric token immediately following the latter hyphen. Thus, e.g.:

1.-0.0-20 -> 1-0-20
1-0-rc-2 -> 1-rc-2

On Thu, May 31, 2018 at 10:22 AM Ross Goldberg <[email protected]>
wrote:

> The maven Maven version order spec (
> https://maven.apache.org/pom.html#Version_Order_Specification) indicates
> that :
>
> 1-0-2 is equivalent to 1-2, so 1-0-2 = 1-2 > 1-1.
>
> That doesn't make much sense to me.
>
> I think the following line from the spec should be revised from:
>
> Then, starting from the end of the version, the trailing "null" values (0,
> "", "final", "ga") are trimmed.
>
> To:
>
> Then, starting from the end of the version string, all trailing "null"
> qualifier tokens ("", "final", "ga") are trimmed. All trailing numeric 0
> tokens that do not immediately follow a hyphen prefix (regardless of
> whether the hyphen is explicit or implicit) are likewise trimmed.
>

Reply via email to