Repository navigation
CAMEL-26534: camel-itest-spring-boot - drop -nsu from the nested Maven runs - #2070
Merged
Merged
Conversation
…n runs -nsu sets the Maven session update policy to never, which Maven Resolver applies to release repositories too. Version ranges in a starter's dependency tree were therefore resolved against whatever metadata the shared local repository cached, and CamelOpenfeatureIT failed on builds35 once flagd 0.15.0 required flagd-core [3.0.0,4.0.0).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes CAMEL-26534.
CamelOpenfeatureITfails in Camel-Spring-Boot Daily #439 (builds35):Cause
flagdfrom 0.14.2 to 0.15.0 on 2026-11-02. 0.15.0 declaresflagd-coreas[3.0.0,4.0.0)(0.14.2 declared[2.0.0,3.0.0)). The reactor build isn't affected because camel-parent pinsflagd-core, but the generated archetype project only importscamel-spring-boot-bom, so it has to resolve the range.ArchetypeGenerationExtension.runMavenpasses-nsu(added in CAMEL-25465: Speed up and harden the starter integration test harness #2024). In Maven 3.9.11 that sets the session update policy tonever, and Maven Resolver 1.9.24 applies it to release repositories as well as snapshot ones. The range is therefore matched against theflagd-coremetadata the agent's shared~/.m2already holds. On builds35 that metadata dates from before 3.0.0 was released (2026-10-15), and it is never refreshed.Change
-nsufrom the nested Maven runs. The javadoc and the module README now explain why it is not used.-nsu, so this restores the earlier update behavior. Generating the template once, the 1 GB heap and the captured output from CAMEL-25465: Speed up and harden the starter integration test harness #2024 stay.Cost and trade-off
-U, so the Camel core snapshots have already been checked for the day. What's left is about one metadata request per IT, for its own starter, once per day. A request to repository.apache.org takes 150–300 ms.main, so in practice it's the same code.Testing
flagd:0.15.0, with a local repository seeded withflagd-coremetadata from before 3.0.0 and a last check on 2026-10-01.-q -B -nsu dependency:build-classpathfails with the same error as [CAMEL-17677]add tests in camel-jira-starter #439.-nsu, Maven refreshes the metadata and resolvesflagd-core-3.0.0.jar.tests/camel-itest-spring-bootcompiles.CamelOpenfeatureITon the next Daily run on builds35.CamelOpenfeatureITcovers it on CI.Claude Code (Claude Opus 5.5) on behalf of Federico Mariani