public class MavenPlugin extends Object
| Constructor and Description |
|---|
MavenPlugin(org.apache.maven.model.Plugin plugin)
Creates a MavenPlugin based on a Plugin
|
| Modifier and Type | Method and Description |
|---|---|
String |
getParameter(String key)
Gets a parameter of the plugin based on its key
|
org.apache.maven.model.Plugin |
getPlugin() |
static MavenPlugin |
getPlugin(org.apache.maven.project.MavenProject pom,
String groupId,
String artifactId)
Returns a plugin from a pom based on its group id and artifact id
It searches in the build section, then the reporting section and finally the pluginManagement section
|
String |
toString() |
public MavenPlugin(org.apache.maven.model.Plugin plugin)
plugin - the pluginpublic org.apache.maven.model.Plugin getPlugin()
public String getParameter(String key)
key - the param keypublic static MavenPlugin getPlugin(org.apache.maven.project.MavenProject pom, String groupId, String artifactId)
It searches in the build section, then the reporting section and finally the pluginManagement section
pom - the project pomgroupId - the plugin group idartifactId - the plugin artifact idCopyright © 2009–2015 MojoHaus. All rights reserved.