像这样为 CF 添加 Cloud SDK:
compile "com.sap.cloud.s4hana:s4hana-all:${cloudSDKVersion}"
compile ("com.sap.cloud.s4hana.cloudplatform:scp-cf:${cloudSDKVersion}")
会导致部署到 CF 的 spring boot jar 中出现重复的 jar。例子:
core-2.3.1.jar
connectivity-2.3.1.jar
- 这将导致 :
- 运行时的 ClassNotFoundExceptions
- 防止 cf push 命令出错:
Comparing local files to remote cache... Aborting push: File BOOT-INF/lib/core-2.3.1.jar has been modified since the start of push. Validate the correct state of the file and try again. FAILED