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

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

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

Root cause identified: the camel-test-spring-junit6 dependency in the generated 
Spring Boot POM (from spring-boot-pom.ftl and spring-boot-kubernetes-pom.ftl) 
has no <version> element, relying on camel-spring-boot-bom to manage it. 
However, camel-spring-boot-bom only started managing 
org.apache.camel:camel-test-spring-junit6 from version 4.22.0. For older Camel 
Spring Boot versions (e.g. 4.18.1 as used in the test parameterized cases), the 
BOM does not include this artifact, causing Maven to fail with: 
'dependencies.dependency.version' for 
org.apache.camel:camel-test-spring-junit6:jar is missing.

Proposed fix: add an explicit <version> tag (using the Camel version property) 
to the camel-test-spring-junit6 dependency in both FTL templates.

_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