Package io.helidon.build.devloop.maven
Class EmbeddedMavenExecutor
java.lang.Object
io.helidon.build.devloop.BuildExecutor
io.helidon.build.devloop.maven.EmbeddedMavenExecutor
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 Summary
Constructors -
Method Summary
Methods inherited from class io.helidon.build.devloop.BuildExecutor
execute, monitor, projectDirectory
-
Constructor Details
-
EmbeddedMavenExecutor
Constructor.- Parameters:
projectDir- The project directory.monitor- The build monitor. All output is written toBuildMonitor.stdOut()andBuildMonitor.stdErr().
-
-
Method Details
-
willFork
public boolean willFork()Description copied from class:BuildExecutorReturns whether this executor will fork the maven process.- Specified by:
willForkin classBuildExecutor- Returns:
trueif will fork.
-
execute
Description copied from class:BuildExecutorExecute maven with the given arguments.- Specified by:
executein classBuildExecutor- Parameters:
args- The maven arguments.- Throws:
Exception- on error.
-