Class MavenPlugin.ExecutionBuilder
java.lang.Object
io.spring.initializr.generator.buildsystem.maven.MavenPlugin.ExecutionBuilder
- Enclosing class:
- MavenPlugin
Builder for an
MavenPlugin.Execution
.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionconfiguration
(Consumer<MavenPlugin.ConfigurationBuilder> configuration) Customize theconfiguration
of the execution using the specified consumer.Add a goal to invoke for this execution.Set thephase
of the build lifecycle that goals will execute in.
-
Constructor Details
-
ExecutionBuilder
-
-
Method Details
-
phase
Set thephase
of the build lifecycle that goals will execute in.- Parameters:
phase
- the phase to use- Returns:
- this for method chaining
-
goal
Add a goal to invoke for this execution.- Parameters:
goal
- the goal to invoke- Returns:
- this for method chaining
-
configuration
public MavenPlugin.ExecutionBuilder configuration(Consumer<MavenPlugin.ConfigurationBuilder> configuration) Customize theconfiguration
of the execution using the specified consumer.- Parameters:
configuration
- a consumer of the current configuration- Returns:
- this for method chaining
-