Debugging plugin in IntelliJ

Working on my first plugin I’m having a little trouble setting up the run configuration. I found this image posted by jochen in another forum from last year. Is this still the best way? When I put in org.graylog2.bootstrap.Main I got an error that it couldn’t find it in Runner.

Yes, that’s still the correct setting.

Take a look at http://docs.graylog.org/en/2.2/pages/plugins.html#writing-plugins and https://github.com/Graylog2/graylog-project for details.

I’m following both of those and am still getting
Class ‘org.graylog2.bootstrap.Main’ not found in module ‘runner’

Any ideas? I’ve been at this for at least 15 hours trying to get it to work.

Any updates on this? I’m still stuck on getting this to work.

A week later still no response on this. I thought you guys wanted to encourage people to develop for Graylog.

1 Like

Looks like the deprecated graylog-project tooling is broken (again) and it won’t be fixed, so don’t hold your breath for it.

You can still simply check out the graylog2-server repository and add it as a module to your plugin workspace in IntelliJ IDEA to run everything in the same class path. While it’s not very elegant, it at least works. ¯\(ツ)

Perfect I’ll give it a try thanks.