Class EmbeddedMavenExecutor

java.lang.Object
io.helidon.build.devloop.BuildExecutor
io.helidon.build.devloop.maven.EmbeddedMavenExecutor

public class EmbeddedMavenExecutor extends BuildExecutor
A BuildExecutor that executes within the current process. Uses reflection to avoid build time dependencies, so assume usage within a maven plugin or some equivalent that sets up the thread context ClassLoader correctly.
  • Constructor Details

  • Method Details

    • willFork

      public boolean willFork()
      Description copied from class: BuildExecutor
      Returns whether this executor will fork the maven process.
      Specified by:
      willFork in class BuildExecutor
      Returns:
      true if will fork.
    • execute

      public void execute(String... args) throws Exception
      Description copied from class: BuildExecutor
      Execute maven with the given arguments.
      Specified by:
      execute in class BuildExecutor
      Parameters:
      args - The maven arguments.
      Throws:
      Exception - on error.