public interface PluginGoal
| 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.
|
String |
getGoal()
Get the Goal for the Plugin.
|
org.apache.maven.model.Plugin |
getPlugin()
Get the Plugin.
|
void |
groupArtifactVersion(String groupId,
String artifactId,
String version)
Set the maven coordinates for the plugin.
|
default void |
onComplete()
Hook called just after the plugin is executed, whether there is any error or not.
|
default void |
onError(org.apache.maven.plugin.MojoExecutionException e)
Hook called if there is an error when the plugin is executed.
|
default void |
onExecute()
Hook called just before the plugin is executed.
|
default void |
onSuccess()
Hook called just after the plugin is executed without throwing any exceptions.
|
org.apache.maven.model.Plugin getPlugin()
String getGoal()
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()
This default implementation does nothing.
default void onSuccess()
This default implementation does nothing.
default void onError(org.apache.maven.plugin.MojoExecutionException e)
This default implementation does nothing.
e - The exception that was throwndefault void onComplete()
This default implementation does nothing.
Copyright © 2015–2017. All rights reserved.