Closed mcanalesmayo closed 5 years ago
Spring libraries are currently only delivered through SAP Marketplace. Please check https://github.com/SAP/cloud-cf-product-list-sample/blob/master/exercises/09_secure/Spring.md on how to download them.
Alterative is to use the SAP Java buildpack with a non-Spring Java application, see option 2 in step3 on https://github.com/SAP/cloud-cf-product-list-sample/blob/master/exercises/09_secure/README.md.
We're working on getting the Spring libraries to Maven Central, expected to be end of Q4 this year.
Thanks for the quick response @mwdb. Downloading and installing the libraries in my local repo did the trick.
Hopefully everything will be set up in Maven Central by the end of this year.
We have a first release candate for the spring libraries available at https://github.com/SAP/cloud-security-xsuaa-integration/tree/develop/samples/spring-security-xsuaa-usage
Expected Behavior
Maven should fetch the required dependencies to build the Spring application artifact, which will be deployed in SAP Cloud Platform.
Current Behavior
Maven can't resolve the following dependencies:
com.sap.xs2.security:java-container-security:0.26.4
com.sap.xs2.security:java-container-security-api:0.26.4
com.sap.security.nw.sso.linuxx86_64.opt:sapjwt.linuxx86_64:jar:1.1.19
com.sap.security.nw.sso.ntamd64.opt:sapjwt.ntamd64:jar:1.1.19
com.sap.security.nw.sso.linuxppc64.opt:sapjwt.linuxppc64:jar:1.1.19
com.sap.security.nw.sso.darwinintel64.opt:sapjwt.darwinintel64:jar:1.1.19
Steps to reproduce the issue
mvn clean install
Context
OS/Platform: macOS High Sierra 10.13.6 Maven version: 3.5.4
Stack trace/log output
Output of command
mvn clean install
:Resolution
The above mentioned dependencies are not publicly available in the Maven Central repo. If SAP has its own public maven repo I suggest adding it to the POM. Otherwise, uploading the artifacts to the Maven Central repo would also work.