I'm working on a Maven project that injects and runs some tests in another Maven projects. I already managed to inject them, however, I'm struggling to programmatically compile the other Maven project given its path. I tried Java Compiler API and Maven Compiler API but couldn't manage to do so.
Does any one know any way to programmatically compile a Maven project given its path from another Maven project?