On Sun, Apr 25, 2021 at 4:53 PM Apache <[email protected]> wrote:
> Thanks Christian. I’ve read that blog several times. It helped me > immensely in getting anything to work. You're welcome and glad to hear that it helped you! > However, it doesn’t exactly cover my situation where some of the test > classes need to be packaged into their own module for downstream maven > modules. Yeah. That's one reason I decided for Bach [0] that "javac + jar" is an atomic action. And that goes for sources of main and test scope. That simplifies a lot of cases, not only when testing in the modular world (adding main/test MRJARs to the mix is easy here, for example). IIRC, using the Maven-Invoker-Plugin (or Maven-Exec-Plugin) with hand-crafted mvn (java) calls was always a way to get things working again. At least, as a last resort. [0]: https://github.com/sormuras/bach
