cancel
Showing results for 
Search instead for 
Did you mean: 

SCP tutorial question - CSN2JPA

neilprince
Participant
0 Kudos

I am trying to follow the tutorial on the SAP help pages for 'Using JPA in custom handlers' - https://help.sap.com/viewer/65de2977205c403bbc107264b8eccf4b/Cloud/en-US/efe23af169df4c80880285f18de... . I have completed the getting started tutorial without issue.

I have completed up to the steps where you modify the pom.xml and build the project - about half way down. However, I am getting a build error:

[INFO] Downloading: https://repo.maven.apache.org/maven2/com/sap/cloud/servicesdk/prov/cf-xsa-util/1.13.1/cf-xsa-util-1....
[WARNING] The POM for com.sap.cloud.servicesdk.prov:cf-xsa-util:jar:1.13.1 is missing, no dependency information available

[ERROR] Failed to execute goal on project srv: Could not resolve dependencies for project com.company.bookshop:srv:war:0.0.1-SNAPSHOT: Could not find artifact com.sap.cloud.servicesdk.prov:cf-xsa-util:jar:1.13.1 in central (https://repo.maven.apache.org/maven2) -> [Help 1]

I am not a java programmer but have searched Maven (search.maven.org) for this component without any joy. I have tried numerous version numbers for the SDK. The only reference I have managed to find to this jar file is at the following link https://mvnrepository.com/artifact/com.sap.cloud.servicesdk.prov/odatav2/1.13.1

My github repository is https://github.com/princeneil/bookshop.git if anyone is keen to resolve it.

Is this still a valid approach to generate the JPA classes from a CDS file? or is there another approach and the documentation is not up to date?

Any help appreciated.


Accepted Solutions (0)

Answers (2)

Answers (2)

Ivan-Mirisola
Product and Topic Expert
Product and Topic Expert

Hi Neil,

The dependency of "cf-xsa-util" is not distributed by SAP on Maven Central. I'd suggest posting a ticket on SAP's support system for further investigation.

Regards,
Ivan

neilprince
Participant
0 Kudos

Hi Ivan

Thanks for your response - this now makes more sense to me. Just one more question. The openSAP course uses Eclipse - are you able to to use the downloaded library content in the SAP WebIDE Full Stack version? or is this not available as yet?

Regards

Neil

neilprince
Participant
0 Kudos

Hi Ivan

I have experimented with this further and still cannot get it to build successfully using the WebIDE Full Stack. The error is:

[ERROR] Failed to execute goal on project srv: Could not resolve dependencies for project com.company.bookshop:srv:war:0.0.1-SNAPSHOT: Could not find artifact com.sap.cloud.servicesdk.prov:cf-xsa-util:jar:1.17.1 in central (https://repo.maven.apache.org/maven2)

I am guessing I have done something incorrectly in the pom.xml, but this is stretching my current knowledge. I've attached the pom.xml ( pomxml.txt ).

Any guidance on where I've gone wrong or how to resolve are appreciated.

Regards

Neil

Ivan-Mirisola
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Niel,

Sorry. This time it was my mistake. The Java Security Libraries do not contain that particular library - like I told you previously. Please disregard that statement.

My conclusion is that there is nothing wrong with your pom.xml. The library should be available on our internal repository. WebIDE should be able to reach-out for this library, but on public instances it is configured for maven central only. I've check for this particular library on both hanatrial and productive accounts on SCP. At both I get the same error as you.

I've checked the missing library and it contains just the implementation for com.sap.cloud.sdk.service.prov.api.connection.UserTransactionProvider. Therefore I don't see any particular reason why it shouldn't be provided via maven central. Maybe the team responsible for it forgot to upload it into the central repository. Or maybe this implementation could be found somewhere else which could avoid having an additional dependency in your project. I really have no clue on why it is not there.

My suggestion is that you open an incident on SAP Support Channels for further investigation on that issue. Please add their answer here so others are able to search for similar issues.

Regards,
Ivan

neilprince
Participant
0 Kudos

Hi Ivan

Thanks for following up. I have been unable to log an incident as my S-Id has no products against it nor any to be able to assign to it. As we are still working in the trial environment for a proof of concept, we do not subscribe to an enterprise SCP so can't log it under that either as trial accounts are limited to community support. Is there any other way to get this to the appropriate area of SAP?

I am happy to assist with anything to progress this based on your advice.

Regards

Neil

0 Kudos

Hello, support answer, they did not even read

Ivan-Mirisola
Product and Topic Expert
Product and Topic Expert
0 Kudos

My instructions on this question were wrong. I am deeply sorry about that. I had mistook the libraries. Please disregard that answer...

0 Kudos

Hello, Neil,

I have the same problem:

[INFO] Downloading: https://repo.maven.apache.org/maven2/com/sap/cloud/servicesdk/prov/cf-xsa-util/1.17.1/cf-xsa-util-1....
[WARNING] The POM for com.sap.cloud.servicesdk.prov:cf-xsa-util:jar:1.17.1 is missing, no dependency information available

...

[ERROR] Failed to execute goal on project srv: Could not resolve dependencies for project com.company.tms:srv:war:0.0.1-SNAPSHOT: Could not find artifact com.sap.cloud.servicesdk.prov:cf-xsa-util:jar:1.17.1 in central (https://repo.maven.apache.org/maven2) -> [Help 1]
[ERROR]

Such directory doesn't exist: cf-xsa-util

Did anyone find a solution?

Regards,

Yuri.

neilprince
Participant
0 Kudos

Hi Yuri

No answer yet - I have been unable to log a ticket as yet due to licensing issues. Do you have access to log a support ticket? If not, I hope to be able to log one by the end of August.

Cheers

Neil

Ivan-Mirisola
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Guys,

I came back from a well deserved vacation and while giving another look into this issue I've found the developers had forgotten to make the library publicly available. This is no longer an issue (apparently since August 1st):

Regards,
Ivan