[ 
https://issues.apache.org/jira/browse/CAMEL-27767?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18153245#comment-18153245
 ] 

Guillaume Nodet commented on CAMEL-27767:
-----------------------------------------

This issue is being investigated by a coding agent (on behalf of gnodet).

Root cause confirmed: spring-boot-pom.ftl includes camel-test-spring-junit6 
(line 161) without an explicit version. The camel-spring-boot-bom BOM (also 
imported in the template) manages spring-boot artifacts but 
camel-test-spring-junit6 is a core Camel artifact that is only managed by 
camel-bom, not camel-spring-boot-bom. When an older camel-spring-boot version 
is specified (--camel-spring-boot-version=4.18.1), the generated pom.xml lacks 
the version for this test dependency.

Fix: add camel-bom to the dependencyManagement imports in spring-boot-pom.ftl 
(similar approach used in other export templates), or add an explicit 
<version>[=CamelVersion]</version> to the camel-test-spring-junit6 dependency.

_Note: This comment was generated by an AI coding agent and requires manual 
verification._

> TomcatExportITCase is broken on main branch
> -------------------------------------------
>
>                 Key: CAMEL-27767
>                 URL: https://issues.apache.org/jira/browse/CAMEL-27767
>             Project: Camel
>          Issue Type: Test
>          Components: camel-jbang
>    Affects Versions: 4.24.0
>            Reporter: Aurélien Pupier
>            Assignee: Guillaume Nodet
>            Priority: Major
>
> {noformat}
> command cd '/deployments/data/c2ab146a4a7bc/tomcat-export' && chmod +x ./mvnw 
> && ./mvnw -B -DskipTests package failed with output [INFO] Scanning for 
> projects...
> [ERROR] [ERROR] Some problems were encountered while processing the POMs:
> [ERROR] 'dependencies.dependency.version' for 
> org.apache.camel:camel-test-spring-junit6:jar is missing. @ line 76, column 21
>  @ 
> [ERROR] The build could not read 1 project -> [Help 1]
> [ERROR]   
> [ERROR]   The project com.example:camel-tomcat:1.0-SNAPSHOT 
> (/deployments/data/c2ab146a4a7bc/tomcat-export/pom.xml) has 1 error
> [ERROR]     'dependencies.dependency.version' for 
> org.apache.camel:camel-test-spring-junit6:jar is missing. @ line 76, column 21
> [ERROR] 
> [ERROR] To see the full stack trace of the errors, re-run Maven with the -e 
> switch.
> [ERROR] Re-run Maven using the -X switch to enable full debug logging.
> [ERROR] 
> [ERROR] For more information about the errors and possible solutions, please 
> read the following articles:
> [ERROR] [Help 1] 
> http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException
> {noformat}



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

Reply via email to