This is an automated email from the ASF dual-hosted git repository.
gnodet pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/maven.git
The following commit(s) were added to refs/heads/master by this push:
new 85f5dca4a6 [MNG-8234] Revert the addition of the priority tag (#1711)
85f5dca4a6 is described below
commit 85f5dca4a61f2e0595c9cb7e7cbaa2de26a48e4a
Author: Guillaume Nodet <[email protected]>
AuthorDate: Thu Sep 12 08:18:35 2024 +0200
[MNG-8234] Revert the addition of the priority tag (#1711)
---
api/maven-api-model/src/main/mdo/maven.mdo | 13 +------------
.../org/apache/maven/model/v4/MavenModelVersionTest.java | 2 +-
2 files changed, 2 insertions(+), 13 deletions(-)
diff --git a/api/maven-api-model/src/main/mdo/maven.mdo
b/api/maven-api-model/src/main/mdo/maven.mdo
index 8b37455309..d117d403fe 100644
--- a/api/maven-api-model/src/main/mdo/maven.mdo
+++ b/api/maven-api-model/src/main/mdo/maven.mdo
@@ -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>
diff --git
a/maven-model/src/test/java/org/apache/maven/model/v4/MavenModelVersionTest.java
b/maven-model/src/test/java/org/apache/maven/model/v4/MavenModelVersionTest.java
index 371561fe04..9c3555aeff 100644
---
a/maven-model/src/test/java/org/apache/maven/model/v4/MavenModelVersionTest.java
+++
b/maven-model/src/test/java/org/apache/maven/model/v4/MavenModelVersionTest.java
@@ -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));
}
}