Skip to content

Commit

Permalink
[MNG-4840] fix requiredMavenVersion description #1444
Browse files Browse the repository at this point in the history
  • Loading branch information
hboutemy committed Mar 27, 2024
1 parent eae3947 commit 4d00ebe
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ public class PluginDescriptor extends ComponentSetDescriptor implements Cloneabl

private String description;

// MNG-4840
// MNG-4840: set from plugin's pom.xml, not plugin.xml
private String requiredMavenVersion;

private Plugin plugin;
Expand Down Expand Up @@ -297,17 +297,19 @@ public String getDescription() {
}

/**
* Set required Maven version.
* Set required Maven version, as defined in plugin's pom.xml (not plugin.xml).
*
* @param requiredMavenVersion Maven version required by the plugin
* @since 3.0.2
*/
// used by maven-core's org.apache.maven.plugin.internal.DefaultMavenPluginManager#getPluginDescriptor(...)
// but NOT PluginDescriptorBuilder
public void setRequiredMavenVersion(String requiredMavenVersion) {
this.requiredMavenVersion = requiredMavenVersion;
}

/**
* Get required Maven version.
* Get required Maven version, as defined in plugin's pom.xml (not plugin.xml).
*
* @return the Maven version required by the plugin
* @since 3.0.2
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@
import org.codehaus.plexus.util.xml.pull.XmlPullParserException;

/**
* Build plugin descriptor object from {@code plugin.xml}.
*
* @author Jason van Zyl
*/
public class PluginDescriptorBuilder {
Expand Down
9 changes: 0 additions & 9 deletions maven-plugin-api/src/main/mdo/plugin.mdo
Original file line number Diff line number Diff line change
Expand Up @@ -92,15 +92,6 @@ under the License.
<type>boolean</type>
<defaultValue>true</defaultValue>
</field>
<field>
<name>requiredMavenVersion</name>
<version>1.0.0</version>
<description>
Minimum Maven version required to use the plugin.
@since Maven 3.0.2
</description>
<type>String</type>
</field>
<field xdoc.separator="blank">
<name>mojos</name>
<version>1.0.0</version>
Expand Down

0 comments on commit 4d00ebe

Please sign in to comment.