public class MavenProjectUtil extends Object
| Constructor and Description |
|---|
MavenProjectUtil() |
| Modifier and Type | Method and Description |
|---|---|
static File |
getManifestFile(org.apache.maven.project.MavenProject proj,
String pluginArtifactId)
Get manifest file from plugin configuration
|
static String |
getPluginConfiguration(org.apache.maven.project.MavenProject proj,
String pluginGroupId,
String pluginArtifactId,
String key)
Get a configuration value from a plugin
|
static String |
getPluginExecutionConfiguration(org.apache.maven.project.MavenProject proj,
String pluginGroupId,
String pluginArtifactId,
String executionId,
String key)
Get a configuration value from an execution of a plugin
|
static String |
getPluginGoalConfigurationString(org.apache.maven.project.MavenProject project,
String pluginKey,
String goal,
String configName)
Get a configuration value from a goal from a plugin
|
static org.apache.maven.model.PluginExecution |
getPluginGoalExecution(org.apache.maven.project.MavenProject project,
String pluginKey,
String goal)
Get an execution of a plugin
|
static org.apache.maven.model.PluginExecution |
getPluginGoalExecution(org.apache.maven.model.Plugin plugin,
String goal)
Get an execution of a plugin
|
public static String getPluginConfiguration(org.apache.maven.project.MavenProject proj, String pluginGroupId, String pluginArtifactId, String key)
proj - the Maven projectpluginGroupId - the plugin group idpluginArtifactId - the plugin artifact idkey - the configuration key to get frompublic static String getPluginExecutionConfiguration(org.apache.maven.project.MavenProject proj, String pluginGroupId, String pluginArtifactId, String executionId, String key)
proj - the Maven projectpluginGroupId - the plugin group idpluginArtifactId - the plugin artifact idexecutionId - the plugin execution idkey - the configuration key to get frompublic static String getPluginGoalConfigurationString(org.apache.maven.project.MavenProject project, String pluginKey, String goal, String configName) throws net.wasdev.wlp.common.plugins.util.PluginScenarioException
project - pluginKey - goal - configName - net.wasdev.wlp.common.plugins.util.PluginScenarioExceptionpublic static org.apache.maven.model.PluginExecution getPluginGoalExecution(org.apache.maven.model.Plugin plugin,
String goal)
throws net.wasdev.wlp.common.plugins.util.PluginScenarioException
plugin - goal - net.wasdev.wlp.common.plugins.util.PluginScenarioExceptionpublic static org.apache.maven.model.PluginExecution getPluginGoalExecution(org.apache.maven.project.MavenProject project,
String pluginKey,
String goal)
throws net.wasdev.wlp.common.plugins.util.PluginScenarioException
project - pluginKey - goal - net.wasdev.wlp.common.plugins.util.PluginScenarioExceptionCopyright © 2019 the original author or authors.