Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added async support for exec:java #148

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

koh-osug
Copy link

@koh-osug koh-osug commented Apr 7, 2020

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 koh-osug force-pushed the java_async_support branch 7 times, most recently from ddddc3c to f8540ad Compare April 7, 2020 23:31
@koh-osug koh-osug marked this pull request as ready for review April 8, 2020 00:37
@koh-osug koh-osug force-pushed the java_async_support branch from f8540ad to a337e76 Compare May 4, 2020 23:58
@michaelkrasa
Copy link

What's stopping this from being merged? Maven exec takes the most time out of all goals in my build. Async would help tremendously.

@sebthom
Copy link
Contributor

sebthom commented Aug 7, 2024

@michaelkrasa I guess what this stops from being merged or consider is that there are merge conflicts. I created a new PR for another existing PR with merge conflicts and that got then merged. so my suggestion is you do the same for this PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants