Skip to content

fix: enforce maven-enforcer-plugin 3.6.3 in release profile and fix POM structure#394

Merged
AnshulPatni merged 2 commits into
GoogleCloudPlatform:mainfrom
AnshulPatni:fix-api-pom
Jul 9, 2026
Merged

fix: enforce maven-enforcer-plugin 3.6.3 in release profile and fix POM structure#394
AnshulPatni merged 2 commits into
GoogleCloudPlatform:mainfrom
AnshulPatni:fix-api-pom

Conversation

@AnshulPatni

@AnshulPatni AnshulPatni commented Jul 8, 2026

Copy link
Copy Markdown
Contributor

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 PR:

  1. 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.
  2. Cleanly merges pluginManagement blocks in functions-framework-api/pom.xml to resolve duplicate tag parse errors and ensure valid POM XML structure.

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
…ofile

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
@AnshulPatni AnshulPatni changed the title build: fix duplicate pluginManagement tag in functions-framework-api build: enforce maven-enforcer-plugin 3.6.3 in release profile and fix POM structure Jul 8, 2026
@AnshulPatni AnshulPatni changed the title build: enforce maven-enforcer-plugin 3.6.3 in release profile and fix POM structure fix: enforce maven-enforcer-plugin 3.6.3 in release profile and fix POM structure Jul 8, 2026
@AnshulPatni AnshulPatni merged commit 3a7faaf into GoogleCloudPlatform:main Jul 9, 2026
27 of 28 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants