Closed arkand2 closed 1 year ago
Are you sure, you're using SAP Cloud SDK?
None of the mentioned dependencies are related to SAP Cloud SDK (com.sap.cloud.sdk
).
Hi @newtork,
Sure. I generated this app with this maven archeatype.
mvn archetype:generate "-DarchetypeGroupId=com.sap.cloud.sdk.archetypes" \ "-DarchetypeArtifactId=scp-cf-tomee" \ "-DarchetypeVersion=RELEASE"
This is my pon in root app directory.
`<?xml version='1.0' encoding='utf-8'?>
`
and this is from my application directory.
`<?xml version='1.0' encoding='utf-8'?>
`
Thanks in advance
I'm seeing that com.sap.cloud.connectivity.apiext:com.sap.cloud.connectivity.apiext:3.21.0
has a parent module
com.sap.cloud.connectivity.apiext:ConnectivityAPIExtParent:3.21.0
which is not available on Maven Central.
SAP Java Buildpack offers and declares some dependency that are only available company internally: https://github.wdf.sap.corp/xs2-java/xs-java-buildpack/blob/3608d6db1fbdc188b3097c36c5bbe912ebff7d76/resources/pom.xml#L67
If you want to use them, please understand the following limitations:
settings.xml
file and use it with all mvn
commands, e.g. mvn verify -s settings.xml
.Kind regards Alexander
Thank you Alexander.
I can't access this link. I guess this gitHub is only available for SAP employees because of what you say. The host not reached.
the external employees cannot access to resolve this depencency, rigth?
Thanks in advance.
Yes the links are internal only, but they are not required to use the SAP Java Buildpack, as the Buildpack is accessible all SAP BTP users.
Hi all again,
But I dont understand how i can resolve the dependency. Could you give me an example please?
I need to compile the maven proyect before deploy and for that I need to resolve the depencecy first, right?
Thanks in advance.
Hi, sorry I think I missed an important point in your question. I think you probably need the classes contained in com.sap.cloud.connectivity.apiext
at compile time? Typically, if a scope provided
is given, the classes are needed at runtime only. But I assume in this case they are also needed at compile time?
If so, then I think this might currently not be possible, because the relevant parent POM seems to be missing on Maven Central. I suspect this is an oversight. But the relevant dependency is not part of the SAP Cloud SDK, so I can't give a definitive answer on that.
Which functionality are you using on Neo at the moment? Are you only reading destinations, or also creating / updating / deleting them?
Hello, sorry for the delay. I was on holiday. We finally implemented this logic in a CPI service, but you are right, we only use it to read the description and then use it.
Thanks for everything.
Hello everyone,
Issue Description
I'm trying to migrate a service from a NeoEnvironment to CloudFoundry. I'm using the latest version of the SAP Java Cloud SDK, but I'm having some problems with dependencies.
The original service imported and used the following dependencies:
I found a PDF manual from SAP BTP Connectivity Service with a date of April 19, 2023 for Cloud Foundry, which mentions using the following dependency:
https://help.sap.com/doc/92c0b171cceb4db2a93518b34b84febd/Cloud/en-US/connectivity_service.pdf
However, when I try to build the project, I receive the following error:
I've tried adding the dependency to the application's pom, and if I use it in an external pom2, it doesn't give this error, but the dependency is not resolved.
Impact / Priority
Affected development phase: Development
Impact: Blocked
Timeline: N/A
Error Message
N/A
Project Details
This service is used for convert data from ui5 apps to CPI service.
Checklist