Maven just exits when it's done and then the jdk pulls everything down. Isn't there a flag you can set on a thread to mark it as a daemon thread, and then the system waits before killing it?
On Wed, Oct 28, 2009 at 9:20 AM, Gajo Csaba <[email protected]> wrote: > Good idea! I was actually hoping there was some switch I can set in Maven to > tell it not to terminate my thread, but I guess your idea would work fine as > well. Thanks! > Csaba > > > Stephen Connolly wrote: >> >> add a second goal >> >> the first goal will store some thread completion object in MavenSession or >> in a Class level static field >> >> When all threads are finished the completion object will be updated by the >> last thread >> >> The second goal blocks until the completion object is completed. >> >> Then add the second goal execution to your project at the appropriate >> phase >> where you need the execution to have completed... >> >> for example if you start the threads in the process-sources phase, you >> might >> be happy to let them run in the background until the test phase has >> completed, but they must be finished by the time the package phase runs, >> so >> I would bind your execution of the second goal to the test phase >> >> -Stephen >> >> 2009/10/28 Gajo Csaba <[email protected]> >> >> > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
