Skip to Content
0
Jun 03, 2022 at 11:50 AM

CPI Adapter - OSGI Bundles - Dependencies

108 Views

Hi there,

We are developing a third-party adapter and we are having some trouble with the external dependencies.

We have added the dependencies as an OSGI Bundle as explained in:

https://help.sap.com/docs/CLOUD_INTEGRATION/368c481cd6954bdfa5d0435479fd4eaf/0b4364a961874ea8b98b89f7d4838914.html?locale=en-US

Once we have created the bundle, we do install it in our maven rep (.m2) and we add it to the pom.xml of the adapter project for compilation and packaging.

During compilation and packaging, it seems fine, even during deployment, but at runtime, when the code hits a line that makes use of the dependency it crashes. We can´t see no logs.

We are afraid we might be doing something wrong when creating the OSGI Bundle for the dependency.

So I have some questions regarding the OSGI Bundles.


Which OSGI Bundle should be selected between these two?

- Standard

- Equinox

image.png

Once the Bundle is created and the jar exported, how should we reference it?

Example 1: Pointing to our .m2 recent installation:

image.png

Example 2: Pointing to src/main/resources project folder:

image.png

Any other hints about OSGI Bundles creation that is not mentioned in the SAP Official Documentation?

Thanks in advance.

Mikel

Attachments

image.png (44.0 kB)
image.png (6.8 kB)
image.png (10.6 kB)