Package io.helidon.build.devloop.maven
Class MavenGoal
java.lang.Object
io.helidon.build.devloop.maven.MavenGoal
- All Implemented Interfaces:
BuildStep
An executable maven goal. Executions occur in process, in the context of the current project environment.
-
Method Summary
Modifier and TypeMethodDescriptionstatic MavenGoalcreate(String pluginGroupId, String pluginArtifactId, String goalName, String executionId, MavenEnvironment environment) Returns a new instance.voidexecute()Executes the goal.Returns the plugin key.voidincrementalBuild(BuildRoot.Changes changes, PrintStream stdOut, PrintStream stdErr) Execute the build step for the given changed files only.name()Returns the plugin goal name.Returns the plugin key.toString()
-
Method Details
-
create
public static MavenGoal create(String pluginGroupId, String pluginArtifactId, String goalName, String executionId, MavenEnvironment environment) Returns a new instance.- Parameters:
pluginGroupId- The plugin group id.pluginArtifactId- The plugin artifact id.goalName- The plugin goal to execute.executionId- The execution id.environment- The plugin execution environment.- Returns:
- The goal.
-
incrementalBuild
public void incrementalBuild(BuildRoot.Changes changes, PrintStream stdOut, PrintStream stdErr) throws Exception Description copied from interface:BuildStepExecute the build step for the given changed files only. Any component that does not match this predicate is ignored.- Specified by:
incrementalBuildin interfaceBuildStep- Parameters:
changes- The changes.stdOut- A print stream for stdout.stdErr- A print stream for stderr.- Throws:
Exception- on error.
-
execute
Executes the goal.- Throws:
Exception- if an error occurs.
-
name
Returns the plugin goal name. -
pluginKey
Returns the plugin key.- Returns:
- The key.
-
executionId
Returns the plugin key.- Returns:
- The key.
-
toString
-