What I’ve done so far:
bootstrapped project with graylog-project bootstrap github://Graylog2/graylog-project.git
run mvn install from graylog2-server (readme is not clear on this point, just in case I ran it from the graylog-project as well).
Created intellij run profile (also tried with the generated option idea setup with no much luck either).
on running the build I am getting Guice errors about injection, i.e.
2) No implementation for org.graylog2.indexer.cluster.ClusterAdapter was bound.
Did you mean?
org.graylog2.indexer.cluster.Cluster bound at org.graylog2.indexer.cluster.Cluster.class(Cluster.java:44)
while locating org.graylog2.indexer.cluster.ClusterAdapter
for the 4th parameter of org.graylog2.indexer.cluster.Cluster.<init>(Cluster.java:55)
while locating org.graylog2.indexer.cluster.Cluster
for the 2nd parameter of org.graylog2.initializers.BufferSynchronizerService.<init>(BufferSynchronizerService.java:51)
while locating org.graylog2.initializers.BufferSynchronizerService
for the 2nd parameter of org.graylog2.initializers.OutputSetupService.<init>(OutputSetupService.java:46)
at org.graylog2.bindings.InitializerBindings.configure(InitializerBindings.java:30)
Thanks @dennis, we are getting closer.
I bootstrapped a new project and now those errors related to the injection are gone.
However, there are issues related to Error:(564, 56) java: package RuleLangParser does not exist, see https://pastebin.com/gWGF6SQQ
Edit: after right clicking on graylog-server module in idea and selecting maven->“generate sources and update folder” all paths have been fixed and I am able to build final project.
p.s. it would be good to write somewhere instruction for releasing of a patched version of graylog, I believe that there is no such page for now and you have to search in community/elsewhere (mvn install?)