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

   ## Summary
   
   The `camel-test-spring-junit6` dependency in the generated Spring Boot POM 
(from `camel export`) had no explicit `<version>`, relying on 
`camel-spring-boot-bom` to manage it.  Older BOM versions (e.g. 4.18.x) do not 
include this artifact, which causes a Maven build failure:
   
   ```
   [ERROR] 'dependencies.dependency.version' for 
org.apache.camel:camel-test-spring-junit6:jar is missing.
   ```
   
   ## Changes
   
   - **`SpringBootExporter.java`**: add `CamelVersion` to the FreeMarker model 
(resolved from the catalog earlier in `createMavenPom()`).
   - **`spring-boot-pom.ftl`** / **`spring-boot-kubernetes-pom.ftl`**: use 
`[=CamelVersion]` as the explicit version on `camel-test-spring-junit6`.
   - **`ExportTest.java`**: new test 
`shouldExportSpringBootWithExplicitCamelTestVersion()` asserting that the 
generated POM always includes an explicit version for this dependency.
   
   _Claude Sonnet 4.5 on behalf of Guillaume Nodet_


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