public class MavenPlugin extends Object
| Modifier and Type | Method and Description |
|---|---|
String |
getParameter(String key)
Gets a parameter of the plugin based on its key
|
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
|
public String getParameter(String key)
key - the param key@CheckForNull public 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–2018. All rights reserved.