pluginsjardbeaver

Problems with adding custom plugin to dbeaver /plugin folder


I'm trying to develop a custom plugin for DBeaver. I prepared a simple Hello World plugin and can not run it in my local dbeaver instance.

I tried to add it to /plugins directory in my DBeaver folder, but nothing happened. I tried to put the same jar in eclipse /plugin directory and everything works fine. Also, when I run DBeaver as target platform in eclipse, plugin works. I double-checked MANIFEST.MF, plugin.xml - everything seems good. I put exactly in /plugin folder. Also tried to run dbeaver with -clean option, didn’t help. Same about running with -consolelog option, no errors or warnings about the plugin, ss command doesn't show that plugin is imported, so it seems like dbeaver just ignores it

DBeaver version 25.0.2.202504061727

Can someone please help with this?

Manifest.mf

Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: Dbeaverplugin
Bundle-SymbolicName: com.scb.dbeaverplugin; singleton:=true
Bundle-Version: 1.0.0
Bundle-Activator: com.scb.dbeaverplugin.Activator
Bundle-Vendor: SCB
Require-Bundle: org.eclipse.ui, org.eclipse.core.runtime
Bundle-RequiredExecutionEnvironment: JavaSE-21
Automatic-Module-Name: com.scb.dbeaverplugin
Bundle-ActivationPolicy: lazy

Solution

  • Finally found a solution. Updating file bundles.info in

    \dbeaver\configuration\org.eclipse.equinox.simpleconfigurator
    

    With the value

    com.scb.dbeaverplugin,1.0.0,plugins/com.scb.dbeaverplugin_1.0.0.jar,4,false
    

    (You have to insert your own plugin name) helped to solve the issue