Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jakartaee-spec-project-leads] How to recognize the latest version of artifacts in central?

On 5/26/20 11:10 PM, arjan tijms wrote:
Hi,

Should be date.

Both qualifiers are Maven recognised though, see https://octopus.com/blog/maven-versioning-explained

I'm not talking about version number recognition, I'm talking about proper version ordering, so one can rely on available tooling to save some time and use automation to take care of updating dependencies.


Normally rc should come after m, and the separator is optional. Do note that they differ here: the "-" in RC vs the "." in the M1. I'm not entirely sure why Maven displays them out of order though, but my guess is the different separators confuse it.

http://maven.apache.org/pom.html#Version_Order_Specification explains it - '.' is a version number separator, while '-' is not, so:

4.0.0-RC1 has 3 parts - 4, 0, 0-RC1
4.0.0.M1 has 4 parts - 4, 0, 0, M1

and maven compares 3rd part - '.0-RC1' with '.0' and if I got it right, ".qualifier" < ".number" applies => '.0-RC1' < '.0', so in the end '4.0.0-RC1' < '4.0.0.M1'

thanks,
--lukas



Kind regards,
Arjan





On Tue, May 26, 2020 at 10:54 PM Lukas Jungmann <lukas.jungmann@xxxxxxxxxx <mailto:lukas.jungmann@xxxxxxxxxx>> wrote:

    Hi,

         I'm trying to update dependencies in some implementation projects
    and came through this:

    when I visit ie
    https://search.maven.org/artifact/jakarta.el/jakarta.el-api I can see
    that the latest version "by date" is 4.0.0-RC1

    when I run `mvn -U -C versions:display-property-updates` I see:
    [INFO] The following dependencies in Dependency Management have newer
    versions:
    [INFO]   jakarta.el:jakarta.el-api ...................... 4.0.0-RC1 ->
    4.0.0.M1

    which basically says that 4.0.0-RC1 has been updated by 4.0.0.M1.

    Who should I trust? Maven? Date?

    thanks,
    --lukas
    _______________________________________________
    jakartaee-spec-project-leads mailing list
    jakartaee-spec-project-leads@xxxxxxxxxxx
    <mailto:jakartaee-spec-project-leads@xxxxxxxxxxx>
    To unsubscribe from this list, visit
    https://www.eclipse.org/mailman/listinfo/jakartaee-spec-project-leads


_______________________________________________
jakartaee-spec-project-leads mailing list
jakartaee-spec-project-leads@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/jakartaee-spec-project-leads



Back to the top