From 85f5dca4a61f2e0595c9cb7e7cbaa2de26a48e4a Mon Sep 17 00:00:00 2001 From: Guillaume Nodet Date: Thu, 12 Sep 2024 08:18:35 +0200 Subject: [PATCH] [MNG-8234] Revert the addition of the priority tag (#1711) --- api/maven-api-model/src/main/mdo/maven.mdo | 13 +------------ .../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 @@ priority - 4.0.0/4.0.99 + 4.0.0+ int - - priority - 4.1.0+ - int - - 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 - - goals 4.0.0+ 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)); } }