I am interested in building my Graylog plugin without having to compile the whole graylog-server project (I am getting yarn build error).
I prefer to compile the plugin only and deploy to production. Is there a possibility of running mvn package for the plugin like before?
The only difference to before is that instead of using an example plugin code, I bootstrapped from github.
Yes, that is what I refer to. I used it to checkout version 4.2 and I then followed the below to bootstrap my plugin before I then ran mvn compile & mvn package for the whole project. I followed the 4-x version which seems similar.
Either I just picked up an Out of Memory issue with my server. I need to add some RAM so I can get the compilation to terminate successfully. I will post an update as soon as I complete this.
Wow, I somewhat underestimated the size of the compile. Finally I have something meaningful after resolving the memory issue.
I have managed to do the initial mvn compile. I manage to compile everything but my plugin. It talks of an issue with the target version. Not sure if this relates to Java 17? But I run Graylog 4.2 on openjdk 1.8 *. Below are the error logs.
Nice, can I ask what or how much resources do you have on that node? if the issues is resolved could you mark this as " resolved " for future searches.
Hi @gsmith
Resources: I had about 2GB RAM with 2 vCPUs and a minimum of 25GB HDD. This was not sufficient. I also remembered that when I was building glibc earlier this year, I needed more than 2GB RAM.
So to be safe I increased the RAM to 8GB.
I have now marked the issue as resolved. I am now left with basic programmatic issues (I copied and pasted an old plugin code to this new bootstrap) in order to make this new bootstrap work. It seems older plugin code doesnt run on Graylog 4.2.x hence I had to bootstrap (and made mistakes to learn from :))