public interface PluginGoal
| Modifier and Type | Interface and Description |
|---|---|
static class |
PluginGoal.LifecyclePhase
Maven Lifecycles to run PluginGoals in.
|
| Modifier and Type | Method and Description |
|---|---|
void |
configuration(PluginGoalConfiguration configuration)
Configure the Plugin Goal.
|
default String |
configValue(String elementName)
Extract the value of a configuration element by name.
|
org.codehaus.plexus.util.xml.Xpp3Dom |
getConfiguration()
Gets the Configuration of the plugin.
|
List<String> |
getGoals()
Get the Goals for the Plugin.
|
String |
getName()
Returns the name of the plugin-goal.
|
org.apache.maven.model.Plugin |
getPlugin()
Get the Plugin.
|
default Integer |
getWeight()
Defines the weight of the plugin goal.
|
void |
groupArtifactVersion(String groupId,
String artifactId,
String version)
Set the maven coordinates for the plugin.
|
default boolean |
matches(PluginGoal.LifecyclePhase lifecyclePhase)
Defines the maven lifecycle phase to run the plugin in.
|
default void |
onComplete(String goal)
Hook called just after the plugin is executed, whether there is any error or not.
|
default void |
onError(String goal,
org.apache.maven.plugin.MojoExecutionException e)
Hook called if there is an error when the plugin is executed.
|
default void |
onExecute(String goal)
Hook called just before the plugin is executed.
|
default void |
onSuccess(String goal)
Hook called just after the plugin is executed without throwing any exceptions.
|
org.apache.maven.model.Plugin getPlugin()
void groupArtifactVersion(String groupId, String artifactId, String version)
groupId - The groupIdartifactId - The artifactIdversion - The versionvoid configuration(PluginGoalConfiguration configuration)
configuration - The configurationorg.codehaus.plexus.util.xml.Xpp3Dom getConfiguration()
default String configValue(String elementName)
elementName - the name of the elementdefault void onExecute(String goal)
This default implementation does nothing.
goal - The goaldefault void onSuccess(String goal)
This default implementation does nothing.
goal - The goaldefault void onError(String goal, org.apache.maven.plugin.MojoExecutionException e)
This default implementation does nothing.
goal - The goale - The exception that was throwndefault void onComplete(String goal)
This default implementation does nothing.
goal - The goalString getName()
e.g. This is the name used when a plugin needs to be disabled.
default Integer getWeight()
Lighter (lower numberically) plugin goals are executed first.
default boolean matches(PluginGoal.LifecyclePhase lifecyclePhase)
lifecyclePhase - the phaseCopyright © 2015–2017. All rights reserved.