Class EmbeddedMavenExecutor

java.lang.Object
org.apache.maven.cling.executor.embedded.EmbeddedMavenExecutor
All Implemented Interfaces:
AutoCloseable, Executor

public class EmbeddedMavenExecutor extends Object implements Executor
Embedded executor implementation, that invokes Maven from installation directory within this same JVM but in isolated classloader. This class supports Maven 4.x and Maven 3.x as well. The ClassWorld of Maven is kept in memory as long as instance of this class is not closed. Subsequent execution requests over same installation home are cached.