pluginElement.appendChild(XmlUtils.createTextElement(document, "version", getVersion()));
/** * Constructor from a POM-style XML element that defines a Maven <plugin>. * * @param plugin the XML element to parse (required) */ public Plugin(final Element plugin) { this(getGroupId(plugin), getArtifactId(plugin), getVersion(plugin), getConfiguration(plugin), getDependencies(plugin), getExecutions(plugin)); }
if (StringUtils.isEmpty(newPlugin.getVersion())) { continue; if (addToPluginManagement && !StringUtils.isEmpty(newPlugin.getVersion())) { if (!newPlugin.getVersion().equals(existingPlugin.getVersion())) { if (addToPluginManagement && !StringUtils.isEmpty(newPlugin.getVersion())) {
+ plugin.getVersion() + "']", pluginsElement)) { final Plugin candidatePlugin = new Plugin(candidate); if (candidatePlugin.getGroupId().equals(plugin.getGroupId())) {