exec-maven-plugin icon indicating copy to clipboard operation
exec-maven-plugin copied to clipboard

added async support for exec:java

Open koh-osug opened this issue 4 years ago • 1 comments

I had the problem of a server started with exec:java blocking the further execution of Maven after the pre-integration phase. The current plugin seems to offer no suitable way of executing a Java main class and let the execution continue while Maven can continue.

This patch supports an async option together with a flexible asyncStartCheck option to be able to provide a custom script evaluating if the started Java class is ready. It is using the JavaScriptEngine for this evaluation supporting a wide range of script languages. I added a test using Groovy as project16. I had to update the Groovy version of some plugins, the used version was very old.

koh-osug avatar Apr 07 '20 20:04 koh-osug