Re: How do exec:java on a mainclass that calls System.exit() without terminating the maven build?

Steinar Bang <[email protected]>
Newsgroups gmane.comp.jakarta.turbine.maven.user
Organization Probably a good idea
Message-ID <[email protected]>
>>>>> Steinar Bang <[email protected]>:

> Side note: Heh, I just discovered an unexpected side effect of my schema
> conversion with System.exit(): it can bring down eclipse that has a
> maven project where the schema conversion is done.

exec-maven-plugin has been released and this now works:
 https://github.com/steinarb/convert-xsd-to-rnc/blob/master/pom.xml#L46

> I wonder if the exec-maven-plugin fix mentioned in this thread also will
> fix eclipse or if I need a different fix there...?
[snip!]
> (I'll update this thread with what I discover wrt. to eclipse behaviour
> once the exec-maven-plugin fix is released)

This is a regular java project that crashed eclipse when blockSystemExit
didn't block exit from com.thaiopensource.relaxng.translate.Driver
 https://github.com/steinarb/sampleapp/blob/master/sampleapp.db.liquibase/pom.xml#L157

But with exec-maven-plugin 3.5.1, eclipse now survives a maven update of
the project.

Thanks!
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.