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

   # Description
   
   `camel export` documents `camel.jbang.camel-version` as a supported option, 
but setting it as a
   system property had no effect. The exported project kept the default Camel 
version, while the
   equivalent `--camel-version` flag worked, so the two ways of setting the 
same thing disagreed.
   
   `Export.overrideFromSystemProperties()` only read the Quarkus platform and
   `camel.jbang.camelSpringBootVersion`. The Camel version was read from 
`application.properties`
   but had no system property path, unlike `camelSpringBootVersion` which has 
both. This adds the
   missing line so the two options behave the same way.
   
   Reproducer from the issue:
   
   ```bash
   camel export --runtime=quarkus -Dcamel.jbang.camel-version=4.8.0 hello.java
   ```
   
   Before this change the exported pom used the running Camel version, after it 
the pom uses 4.8.0.
   
   `ExportTest#shouldOverrideCamelVersionFromSystemProperty` was added next to 
the existing Spring Boot
   and Quarkus system property tests. It asserts the exported pom imports 
`camel-bom` at the requested
   version. With the fix reverted it fails with `expected: "4.13.0" but was: 
"4.23.0-SNAPSHOT"`, which
   is the symptom described in the issue.
   
   # Target
   
   - [x] I checked that the commit is targeting the correct branch (Camel 4 
uses the `main` branch)
   
   # Tracking
   - [x] If this is a large change, bug fix, or code improvement, I checked 
there is a [JIRA issue](https://issues.apache.org/jira/browse/CAMEL) filed for 
the change (usually before you start working on it).
   
   CAMEL-24400
   
   # Apache Camel coding standards and style
   
   - [x] I checked that each commit in the pull request has a meaningful 
subject line and body.
   
   - [x] I have run `mvn clean install -DskipTests` locally from root folder 
and I have committed all auto-generated changes.
   
   # AI-assisted contributions
   
   - [x] If this PR includes AI-generated code, commits have proper 
co-authorship attribution (e.g., `Co-authored-by` trailers) and the PR 
description identifies the AI tool used.
   
   Written with Claude Code. The commit carries a `Co-authored-by` trailer.
   
   _Claude Code on behalf of chala2001_
   


-- 
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