gnodet-bot commented on code in PR #30559:
URL: https://github.com/apache/camel/pull/30559#discussion_r4653932856
##########
dsl/camel-jbang/camel-jbang-run/src/main/resources/templates/spring-boot-pom.ftl:
##########
@@ -114,6 +117,17 @@
<groupId>org.apache.camel.springboot</groupId>
<artifactId>camel-spring-boot-starter</artifactId>
</dependency>
+[#if Tomcat]
+ <dependency>
+ <groupId>org.springframework.boot</groupId>
+ <artifactId>[=SpringBootWebStarter]</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>org.springframework.boot</groupId>
+ <artifactId>spring-boot-starter-tomcat</artifactId>
+ <scope>provided</scope>
+ </dependency>
+[/#if]
Review Comment:
⚠️ **Missing `spring-boot-starter-actuator` in standalone Tomcat export**
The `[#if Tomcat]` dependency block adds the web starter and
`spring-boot-starter-tomcat` (provided scope) but omits
`spring-boot-starter-actuator`. Without actuator, `/actuator/health` returns
404 when this WAR is deployed to external Tomcat.
The Kubernetes POM template (`spring-boot-tomcat-kubernetes-pom.ftl`)
correctly includes `spring-boot-starter-actuator`. The integration tests
(`Tomcat10ExportITCase`, `TomcatExportITCase`) verify health via
`/actuator/health` — if those tests use the Kubernetes template they will pass,
but users running `camel export --runtime=tomcat` (the non-Kubernetes path)
will get a WAR with no health endpoint.
```suggestion
[#if Tomcat]
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>[=SpringBootWebStarter]</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-tomcat</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId>
</dependency>
[/#if]
```
--
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]