# Graylog Plugin Development Setup

**URL:** <https://community.graylog.org/t/graylog-plugin-development-setup/5052>\
**Category:** Development\
**Created:** [April 21, 2018, 3:27am UTC](https://community.graylog.org/t/graylog-plugin-development-setup/5052 "2018-04-21T03:27:30Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![dg33bz](https://sea2.discourse-cdn.com/flex016/user_avatar/community.graylog.org/dg33bz/32/2196_2.png) [@dg33bz](https://community.graylog.org/u/dg33bz)\
**Post date:** [April 21, 2018, 3:27am UTC](https://community.graylog.org/t/graylog-plugin-development-setup/5052/1 "2018-04-21T03:27:30Z")

</div>

Hello Graylog Community,

I was hoping that I could get a little assistance on getting my plugin development environment setup.

I have been following the Plugin Development guide at:  
[http://docs.graylog.org/en/2.4/pages/plugins.html#writing-plugins](http://docs.graylog.org/en/2.4/pages/plugins.html#writing-plugins)

After downloading the latest master branch on the Meta Project, I noticed that the master branch no longer uses the scripts/bootstrap scripts.

So instead I tried the readme.md instructions a try and got the latest version of the cli tool from releases.  
Running:  
graylog-project bootstrap github://Graylog2/graylog-project.git  
didn’t work as it wasn’t a valid repo name so I adjusted to the actual repo name and ran:  
graylog-project bootstrap [https://github.com/Graylog2/graylog-project.git](https://github.com/Graylog2/graylog-project.git)

This downloaded the repos, but the server component didn’t appear ready to run in IntelliJ.

Looking into the Pull requests([https://github.com/Graylog2/graylog-project/pull/8](https://github.com/Graylog2/graylog-project/pull/8)), I saw someone had mentioned that you needed to compile the server component first before intelliJ could run the server by doing the following:  
cd graylog-plugin-repos/graylog2-server  
mvn compile  
cd …/graylog-plugin-pipeline-processor  
mvn compile

The 2nd directory doesn’t exist, but it the first appears to have worked with a build success at the end.However, once I opened IntelliJ, it still didn’t look like the runner module classpath was available.

Anyone run into anything similar and find a way around?

Currently I am running on Ubuntu 16.04 LTS and using openjdk 8

Thank You!

---

<div class="post-metadata">

**Author:** ![dg33bz](https://sea2.discourse-cdn.com/flex016/user_avatar/community.graylog.org/dg33bz/32/2196_2.png) [@dg33bz](https://community.graylog.org/u/dg33bz)\
**Post date:** [May 3, 2018, 9:48pm UTC](https://community.graylog.org/t/graylog-plugin-development-setup/5052/2 "2018-05-03T21:48:30Z")

</div>

Anyone out there able to help me out?

---

<div class="post-metadata">

**Author:** ![Sarro](https://avatars.discourse-cdn.com/v4/letter/s/f1d935/32.png) [@Sarro](https://community.graylog.org/u/Sarro)\
**Post date:** [May 14, 2018, 7:23am UTC](https://community.graylog.org/t/graylog-plugin-development-setup/5052/3 "2018-05-14T07:23:09Z")

</div>

Hi!

I had a lot a problem with my environment too. I think the tool graylog-project doesn’t work properly so here my solution:

- Download a Graylog release [https://github.com/Graylog2/graylog2-server/releases](https://github.com/Graylog2/graylog2-server/releases) (2.4.3 in my example)
- Unzip the file
- Use: `mvn archetype:generate -DarchetypeGroupId=org.graylog -DarchetypeArtifactId=graylog-plugin-archetype -DarchetypeVersion=2.4.3` in your graylog2-server-2.4.3 directory
- Answer the questions in interactive mode
- And here we go !

I’m not at all a specialist of Graylog or plugin development but I hope my answer will help you. Please let me know if it be so.

Regards.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/graylog/original/3X/c/7/c7c09c6b5099570133d6502b83f50ba4430de5b6.png) [@system](https://community.graylog.org/u/system)\
**Post date:** [May 28, 2018, 7:23am UTC](https://community.graylog.org/t/graylog-plugin-development-setup/5052/4 "2018-05-28T07:23:14Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
