cancel
Showing results for 
Search instead for 
Did you mean: 

Adding connectivity-destination-service as a dependency makes the CAP service endpoints disappear

MioYasutake
Active Contributor
0 Kudos

Hi community,

In a CAP application developed with Java, I am trying to use SAP Cloud SDK (Java) to make batch request to a remote OData service. Local testing works fine. Now, to deploy this application to Cloud Foundry, I've added the following dependency to the srv/pom.xml, as per the document. Cloud SDK version is 5.8.0.

		<dependency>
			<groupId>com.sap.cloud.sdk.cloudplatform</groupId>
			<artifactId>connectivity-destination-service</artifactId>
		</dependency>	

Then, strangely, all the service endpoints are disappeared. 

Before adding the dependency:

MioYasutake_0-1714599473185.png

After adding the dependency:

MioYasutake_1-1714599493088.png

Have any of you experienced such issue? 

The code is available at: https://github.com/miyasuta/java-batch-root/tree/main/java-batch-v4.

 

 

Accepted Solutions (1)

Accepted Solutions (1)

MioYasutake
Active Contributor
0 Kudos

After replacing the dependency with the snippet above, the service started to work.

		<dependency>
			<groupId>com.sap.cloud.sdk</groupId>
			<artifactId>sdk-core</artifactId>
		</dependency>

Answers (0)