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

   ## Summary
     
     The `-Dcamel.jbang.quarkus.platform.url` system property is ignored when 
exporting
     with `--runtime quarkus` in Camel 4.18.3, causing the Quarkus platform 
version to
     not be resolved from the custom registry. This worked correctly in 4.18.1.
   
     The regression was introduced by CAMEL-23828, which added an `if 
(quarkusVersion == null)`
     guard to skip registry resolution when an explicit version is provided. 
However, this
     guard also prevents resolution when a custom platform URL is configured 
via `-D` flag —
     the registry is never queried, and the default version is used instead, 
which fails
     with Red Hat groupId/artifactId.
   
     ## Changes
     - **`Export.java`**: Read `quarkusPlatformUrl` from 
`application.properties` and
       system properties, and propagate it to `ExportQuarkus`
     - **`ExportBaseCommand.java`**: Added `quarkusPlatformUrl` field
     - **`ExportQuarkus.java`**: Allow registry resolution when a custom 
platform URL is
       configured (`quarkusPlatformUrl != null`), even if `quarkusVersion` is 
already set
     - **`QuarkusHelper.java`**: Updated `getQuarkusPlatformUrl()`, 
`resolveQuarkusPlatformVersion()`,
       and `fetchPlatformStreams()` to accept a user-supplied URL, giving it 
priority over
       the system property and default
   
   


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