You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by hb...@apache.org on 2026/06/20 16:36:25 UTC

(maven) 01/01: increase lifecycle bindings priority against pom ones

This is an automated email from the ASF dual-hosted git repository.

hboutemy pushed a commit to branch lifecycle-bindings
in repository https://gitbox.apache.org/repos/asf/maven.git

commit bd55363af49e889d1208475cee78c1e1a2c66478
Author: Hervé Boutemy <hb...@apache.org>
AuthorDate: Sat Jun 20 18:36:12 2026 +0200

    increase lifecycle bindings priority against pom ones
---
 .../src/main/java/org/apache/maven/internal/impl/Lifecycles.java         | 1 +
 1 file changed, 1 insertion(+)

diff --git a/impl/maven-core/src/main/java/org/apache/maven/internal/impl/Lifecycles.java b/impl/maven-core/src/main/java/org/apache/maven/internal/impl/Lifecycles.java
index d7ddeeba3d..4d20267fc1 100644
--- a/impl/maven-core/src/main/java/org/apache/maven/internal/impl/Lifecycles.java
+++ b/impl/maven-core/src/main/java/org/apache/maven/internal/impl/Lifecycles.java
@@ -74,6 +74,7 @@ static Plugin plugin(String coords, String phase) {
                 .version(c[2])
                 .executions(Collections.singletonList(PluginExecution.newBuilder()
                         .id("default-" + c[3])
+                        .priority(-1)
                         .phase(phase)
                         .goals(Collections.singletonList(c[3]))
                         .location("", DefaultLifecycleRegistry.DEFAULT_LIFECYCLE_INPUT_LOCATION)