Class ForkedMavenExecutor

java.lang.Object
org.apache.maven.executor.support.ProcessBuilderExecutorSupport
org.apache.maven.executor.forked.ForkedMavenExecutor
All Implemented Interfaces:
AutoCloseable, Executor

public class ForkedMavenExecutor extends ProcessBuilderExecutorSupport implements Executor
Forked executor implementation, that spawns a subprocess with Maven from the installation directory. Very costly but provides the best isolation.
  • Field Details

    • installationDirectory

      protected final Path installationDirectory
    • useMavenArgsEnv

      protected final boolean useMavenArgsEnv
  • Constructor Details

    • ForkedMavenExecutor

      public ForkedMavenExecutor(Path installationDirectory)
    • ForkedMavenExecutor

      public ForkedMavenExecutor(Path installationDirectory, boolean useMavenArgsEnv)
  • Method Details