Skip to content

Commit 3fb4c57

Browse files
authored
Add notes for unsupported WAR deployment strategy (#1987)
1 parent 03ac3be commit 3fb4c57

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

docs-java/guides/dependencies.mdx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,10 @@ It does not yet include it as a dependency in your project.
182182
The [SAP Java Buildpack](https://help.sap.com/products/BTP/65de2977205c403bbc107264b8eccf4b/a3f90069d6cd41da82f34a6123d82ce6.html) brings some dependencies that are also brought by the SAP Cloud SDK.
183183
This can lead to conflicts when using a `war` deployment.
184184

185+
:::danger WAR Deployments are not recommend
186+
We strongly advise against using WAR deployments and provide no support for this scenario.
187+
:::
188+
185189
To prevent any SAP Java Buildpack issues we recommend using the `cf-tomee7-bom`
186190
([or Tomcat or TomEE BOMs](https://help.sap.com/docs/BTP/65de2977205c403bbc107264b8eccf4b/6c6936e8e4ea40c9a9a69f6783b1e978.html)) followed by our `sdk-bom`.
187191

@@ -295,6 +299,8 @@ As a result the SAP Java Buildpack BOM is removed from the `dependencyManagement
295299

296300
</details>
297301

302+
:::
303+
298304
### Background: Dependency Version Conflicts
299305

300306
The dependency versions from the `sdk-bom` and the Buildpack may differ.

docs-java/guides/spring-boot-war-deployment.mdx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,12 @@ keywords:
1515
- cap
1616
---
1717

18+
:::danger No longer recommended
19+
We strongly advise against using WAR deployment and provide no support for this scenario.
20+
This guide is outdated and was last tested with Spring version 5, which is no longer supported as well.
21+
Please use the standard JAR deployment strategy instead.
22+
:::
23+
1824
This document outlines how to adjust a Spring Boot project to use WAR deployment (also known as traditional deployment).
1925
The traditional deployment of Spring helps overcome exceptions related to the SAP JCo library.
2026

0 commit comments

Comments
 (0)