Use exec:exec instead: https://www.mojohaus.org/exec-maven-plugin/examples/example-exec-for-java-programs.html
Le mer. 7 mai 2025, 23:24, Steinar Bang <s...@dod.no> a écrit : > I am trying to make exec:java from exec-maven-plugin convert a Relax-NG > schema in XML notation (RNG) to a Relax-NG schema in compact notation: > > https://gist.github.com/steinarb/9f5105c68bf0c5978272e5af99b2ab5f#file-pom-xml-L197 > > The config successfully does the file conversion, but then the maven > build abrubtly terminates, and the reason is here in the mainClass: > > https://github.com/relaxng/jing-trang/blob/master/mod/rng-validate/src/main/com/thaiopensource/relaxng/util/Driver.java#L35 > > I.e. the maven build termination is caused by the call to System.exit() > from the Driver.main() method. > > As you can see in the gist I have tried to use the blockSystemExit > config, but the maven build still terminates: > > https://gist.github.com/steinarb/9f5105c68bf0c5978272e5af99b2ab5f#file-pom-xml-L205 > > Is there a way around this that do not involve creating my own Java code > to run the desired stuff from trang? (calling the Driver.doMain() method > would be sufficient, I think...?) > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org > For additional commands, e-mail: users-h...@maven.apache.org > >