cancel
Showing results for 
Search instead for 
Did you mean: 

CPI Adapter - OSGI Bundles - Dependencies

former_member37947
Participant
0 Kudos

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/0b4364a961874ea8b98b89f...

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

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

Example 1: Pointing to our .m2 recent installation:

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

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

Thanks in advance.

Mikel

Accepted Solutions (1)

Accepted Solutions (1)

asutoshmaharana2326
Active Participant

Dear Mikel,

You can refer the pom file I have created for one custom adapter. I have used Jackson and Apache HTTP components.

Thanks,

Asutosh

former_member37947
Participant
0 Kudos

Thanks,

Your pom example helped me a lot.

I was not properly exporting the dependencies.

Best regards.

Mikel

Answers (0)