davsclaus opened a new pull request, #25716:
URL: https://github.com/apache/camel/pull/25716

   # Description
   
   Backport of #25715 to `camel-4.22.x`. Fixes 
[CAMEL-24483](https://issues.apache.org/jira/browse/CAMEL-24483).
   
   > ⚠️ **Do not merge before the main PR #25715 is merged.**
   
   An explicit `--dep=group:artifact:version` passed to `camel export` was 
silently dropped when Camel auto-detected the same `groupId:artifactId` (e.g. a 
Postgres JDBC driver inferred from a `BasicDataSource` bean), because the 
export dedup in `ExportBaseCommand.resolveDependencies()` keyed only on 
`groupId:artifactId` and kept the first entry by `TreeSet` sort order, ignoring 
the version. This fix makes an explicit `--dep` version take precedence over 
the auto-detected one.
   
   Clean cherry-pick of the `main` commit (`git cherry-pick -x`).
   
   ## Testing
   
   `ExportTest#shouldOverrideAutoDetectedDriverVersion` verified passing on 
this branch.
   
   ---
   _Reported via the Camel community (Marat Gubaidullin). Backport authored by 
Claude Code on behalf of Claus Ibsen (@davsclaus)._
   
   🤖 Generated with [Claude Code](https://claude.com/claude-code)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to