Skip to content

display-dependency-updates not resolving to correct version #638

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
c3auer opened this issue Aug 19, 2022 · 4 comments
Closed

display-dependency-updates not resolving to correct version #638

c3auer opened this issue Aug 19, 2022 · 4 comments

Comments

@c3auer
Copy link

c3auer commented Aug 19, 2022

Example output:
[INFO] commons-beanutils:commons-beanutils ......... 1.9.4 -> 20030211.134440
[INFO] commons-codec:commons-codec .................. 1.12 -> 20041127.091804
[INFO] commons-io:commons-io ...................... 2.11.0 -> 20030203.000550
[INFO] commons-net:commons-net ....................... 3.3 -> 20030805.205232

Occurs if conventional versioning is not used for a given library. Example for commons-codec, version 20041127.091804 was from 24-Nov-2005. Latest version is actually 1.15 from 1-Sep-2020.

@slawekjaranowski
Copy link
Member

unfortunately versions like: 20041127.091804 are correct Maven version, both items separated by dot are numbers ...

when we compare numbers that is true:

20041127 > 1

The same effect:
https://search.maven.org/search?q=g:commons-codec%20AND%20a:commons-codec

Of course conventional versioning is broken in this example ...

versions-m-p and Maven compare versions by numbers not by date of release.

@pzygielo
Copy link
Contributor

I believe - once artifacts with changed versioning scheme are determined, Ignoring certain versions can be used to solve such problem.
IMO this is not an issue to be solved here.

@slawekjaranowski
Copy link
Member

agree it is not a bug in versions-m-p

@slawekjaranowski slawekjaranowski closed this as not planned Won't fix, can't repro, duplicate, stale Aug 21, 2022
@Marcono1234
Copy link
Contributor

Can this plugin access / determine the release date of artifacts? In that case, even though the versioning of the projects is incorrect, the versions-maven-plugin could possibly first search for versions released after the current one (based on the release date) and only then compare the version numbers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants