how to add third party jar into project #38379
-
|
I want to develop a feature that integrates other third-party Maven dependencies. I added the dependencies to the pom file, but I cannot directly use the methods from the jar packages in my code. Why is this happening? I update pom.xml like this: but in source code, i cannot use it |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments
-
|
@E1izabeth @ShadelessFox please help me |
Beta Was this translation helpful? Give feedback.
-
|
You can't use regular Maven dependencies - they are required to be OSGi-compatible. Can you explain your goals? Perhaps you can add driver libraries instead. |
Beta Was this translation helpful? Give feedback.
-
My goal is to add our team's encryption jar to dbeaver to achieve data encryption and decryption, similar to shardingsphere. Therefore, I must add our jar to it. @ShadelessFox |
Beta Was this translation helpful? Give feedback.
-
|
You can put a jar file directly in a bundle, similar to how it's done in other bundles. Then, you let OSGi know about it by listing it in dbeaver/plugins/org.jkiss.dbeaver.core/META-INF/MANIFEST.MF Lines 34 to 35 in 55b342e And don't forget to include it in the build: |
Beta Was this translation helpful? Give feedback.

You can put a jar file directly in a bundle, similar to how it's done in other bundles.
Then, you let OSGi know about it by listing it in
Bundle-ClassPath:dbeaver/plugins/org.jkiss.dbeaver.core/META-INF/MANIFEST.MF
Lines 34 to 35 in 55b342e
And don't forget to include it in the build:
dbeaver/plugins/org.jkiss.dbeaver.core/build.properties
Line 12 in f94e0ac