I was just able to work around that by setting the following env variable:
It seems that the plugin code that I be trying to do something “weird” and causes the Java process to fork and therefore become in foreground.
Like i mentioned, this problem i had with FindBugs but not anymore (not sure if this or similar option is being configured for FindBugs process). Anyways… This is my workaround for the process. If you want to try to replicate the behaviour and also see what the plugin does, its essentially the same thing as this plugin (the code is the same for the part that makes the process to become in foreground):
Generating any referencePdf from Asciidoc will without problem generate docbook xml but when the XML is converted to PDF (when Apache FOP starts working) this is when the process goes into foreground and becomes a problem on OSX…
But, once again… setting the headless property for tools seems to solve the problem… not sure if it will cause any problems for other tools/processes yet…