From 285490ff35a59b3aae49cea8123ba730119372c5 Mon Sep 17 00:00:00 2001 From: Anshul Patni Date: Wed, 8 Jul 2026 23:12:49 +0000 Subject: [PATCH 1/2] build: fix duplicate pluginManagement tag in functions-framework-api In functions-framework-api/pom.xml, an existing pluginManagement block at line 130 caused duplicate tag parse errors when adding maven-enforcer-plugin:3.6.3. This merges the maven-enforcer-plugin configuration into the single existing pluginManagement block, ensuring valid POM XML structure. Change-Id: Iaf22b3348ecd9cbbd42f0ed995e2ce5e1831a4f6 --- functions-framework-api/pom.xml | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/functions-framework-api/pom.xml b/functions-framework-api/pom.xml index b3e1e5c7..644c9505 100644 --- a/functions-framework-api/pom.xml +++ b/functions-framework-api/pom.xml @@ -75,15 +75,6 @@ - - - - org.apache.maven.plugins - maven-enforcer-plugin - 3.6.3 - - - maven-compiler-plugin @@ -129,6 +120,11 @@ + + org.apache.maven.plugins + maven-enforcer-plugin + 3.6.3 + maven-javadoc-plugin ${maven-javadoc-plugin.version} From 81d04dd69e72e48b13f872eafff917f82536add7 Mon Sep 17 00:00:00 2001 From: Anshul Patni Date: Wed, 8 Jul 2026 23:29:14 +0000 Subject: [PATCH 2/2] build: enforce maven-enforcer-plugin 3.6.3 in sonatype-oss-release profile When release builds activate the sonatype-oss-release profile inherited from oss-parent:9, Maven executes maven-enforcer-plugin:1.2 declared in the parent profile's plugins block, overriding root-level pluginManagement. This explicitly declares maven-enforcer-plugin:3.6.3 inside the sonatype-oss-release profile across all modules, guaranteeing modern plugin execution during automated release builds. Change-Id: I410f36f6f53309388dcdef52a53131367b2cb165 --- function-maven-plugin/pom.xml | 5 +++++ functions-framework-api/pom.xml | 5 +++++ invoker/pom.xml | 5 +++++ 3 files changed, 15 insertions(+) diff --git a/function-maven-plugin/pom.xml b/function-maven-plugin/pom.xml index e4b5689a..b3599957 100644 --- a/function-maven-plugin/pom.xml +++ b/function-maven-plugin/pom.xml @@ -130,6 +130,11 @@ sonatype-oss-release + + org.apache.maven.plugins + maven-enforcer-plugin + 3.6.3 + org.apache.maven.plugins maven-source-plugin diff --git a/functions-framework-api/pom.xml b/functions-framework-api/pom.xml index 644c9505..ab4234d3 100644 --- a/functions-framework-api/pom.xml +++ b/functions-framework-api/pom.xml @@ -159,6 +159,11 @@ sonatype-oss-release + + org.apache.maven.plugins + maven-enforcer-plugin + 3.6.3 + org.apache.maven.plugins maven-source-plugin diff --git a/invoker/pom.xml b/invoker/pom.xml index f5e0c972..26d2a1d8 100644 --- a/invoker/pom.xml +++ b/invoker/pom.xml @@ -98,6 +98,11 @@ sonatype-oss-release + + org.apache.maven.plugins + maven-enforcer-plugin + 3.6.3 + org.apache.maven.plugins maven-source-plugin