-
Notifications
You must be signed in to change notification settings - Fork 36
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
ide upgrade cannot find latest version at least for SNAPSHOTs #1159
Comments
Steps taken so far:
I have overridden the IdeVersion during debugging to UpgradeMode.getVersion = "*-SNAPSHOT" because we're in Snapshot mode and no version was given. VersionIdentifier line 76: It compares the "*" (because we want to upgrade to latest Snapshot version) with latest Snapshot version e.g. "2025" from metadata and that resolves to MavenRepository line 202 returns the 2025.02.002-beta-SNAPSHOT, but I could not yet figure out why. |
Fixes: devonfw#1159 **Implements** * changed UpgradeMode SNAPSHOT to *!=SNAPSHOT * added beta-snapshot to VersionPhase SNAPSHOT * added tests for unstable version and snapshot detection
Co-authored-by: Jörg Hohwiller <[email protected]>
Expected behavior
As a IDEasy user, I want to use
ide upgrade
to get the latest release so that I can benefit from latest bugfixes and features.Actual behavior
Whatever is going on here reveals that #786 is not properly implemented:
This is definetly incorrect since this is currently the latest version:
https://s01.oss.sonatype.org/content/repositories/snapshots/com/devonfw/tools/IDEasy/ide-cli/2025.03.002-SNAPSHOT/
So it should print
2025.03.002-SNAPSHOT
instead of2025.02.002-beta-SNAPSHOT
.You can also verify that here:
https://s01.oss.sonatype.org/content/repositories/snapshots/com/devonfw/tools/IDEasy/ide-cli/maven-metadata.xml
Check for
<latest>
element in the XML.Steps to reproduce (bug) / Use Case of feature request (enhancement)
ide -fd upgrade --mode=snapshot
Related/Dependent Issues
Comments/Hints:
IDEasy/cli/src/main/java/com/devonfw/tools/ide/tool/repository/MavenRepository.java
Lines 164 to 170 in bbe3a82
Force mode is not considered here what was actually discussed during implementation and review
Still after deleting the maven metadata from my local repo, the problem remains.
Further trace should start debugging here:
IDEasy/cli/src/main/java/com/devonfw/tools/ide/tool/repository/MavenRepository.java
Line 201 in bbe3a82
Affected version:
The text was updated successfully, but these errors were encountered: