[MNG-8234] Revert the addition of the priority tag (#1711)

This commit is contained in:
Guillaume Nodet 2024-09-12 08:18:35 +02:00 committed by GitHub
parent 625b4561f0
commit 85f5dca4a6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 13 deletions

View File

@ -2511,7 +2511,7 @@
</field>
<field xml.transient="true">
<name>priority</name>
<version>4.0.0/4.0.99</version>
<version>4.0.0+</version>
<type>int</type>
<description>
<![CDATA[
@ -2522,17 +2522,6 @@
]]>
</description>
</field>
<field>
<name>priority</name>
<version>4.1.0+</version>
<type>int</type>
<description>
The priority of this execution compared to other executions which are bound to the same phase.
Executions derived from the default lifecycle have a negative priority by default so that they are executed
before any custom plugin executions.
@since Maven 4.0.0
</description>
</field>
<field>
<name>goals</name>
<version>4.0.0+</version>

View File

@ -70,6 +70,6 @@ class MavenModelVersionTest {
.withPlugins(Collections.singleton(Plugin.newInstance()
.withExecutions(Collections.singleton(
PluginExecution.newInstance().withPriority(5))))));
assertEquals("4.1.0", new MavenModelVersion().getModelVersion(m));
assertEquals("4.0.0", new MavenModelVersion().getModelVersion(m));
}
}