Skip to content

Commit

Permalink
Add notes for unsupported WAR deployment strategy (#1987)
Browse files Browse the repository at this point in the history
  • Loading branch information
MatKuhr authored Jan 10, 2025
1 parent 03ac3be commit 3fb4c57
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions docs-java/guides/dependencies.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,10 @@ It does not yet include it as a dependency in your project.
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.
This can lead to conflicts when using a `war` deployment.

:::danger WAR Deployments are not recommend
We strongly advise against using WAR deployments and provide no support for this scenario.
:::

To prevent any SAP Java Buildpack issues we recommend using the `cf-tomee7-bom`
([or Tomcat or TomEE BOMs](https://help.sap.com/docs/BTP/65de2977205c403bbc107264b8eccf4b/6c6936e8e4ea40c9a9a69f6783b1e978.html)) followed by our `sdk-bom`.

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

</details>

:::

### Background: Dependency Version Conflicts

The dependency versions from the `sdk-bom` and the Buildpack may differ.
Expand Down
6 changes: 6 additions & 0 deletions docs-java/guides/spring-boot-war-deployment.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,12 @@ keywords:
- cap
---

:::danger No longer recommended
We strongly advise against using WAR deployment and provide no support for this scenario.
This guide is outdated and was last tested with Spring version 5, which is no longer supported as well.
Please use the standard JAR deployment strategy instead.
:::

This document outlines how to adjust a Spring Boot project to use WAR deployment (also known as traditional deployment).
The traditional deployment of Spring helps overcome exceptions related to the SAP JCo library.

Expand Down

0 comments on commit 3fb4c57

Please sign in to comment.