Commit 3a7faaf
fix: enforce maven-enforcer-plugin 3.6.3 in release profile and fix POM structure (GoogleCloudPlatform#394)
* 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
* 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
---------
Co-authored-by: Anshul Patni <anshulpatni@google.com>1 parent 056bb07 commit 3a7faaf
3 files changed
Lines changed: 20 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
130 | 130 | | |
131 | 131 | | |
132 | 132 | | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
133 | 138 | | |
134 | 139 | | |
135 | 140 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | 78 | | |
88 | 79 | | |
89 | 80 | | |
| |||
129 | 120 | | |
130 | 121 | | |
131 | 122 | | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
132 | 128 | | |
133 | 129 | | |
134 | 130 | | |
| |||
163 | 159 | | |
164 | 160 | | |
165 | 161 | | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
166 | 167 | | |
167 | 168 | | |
168 | 169 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
98 | 98 | | |
99 | 99 | | |
100 | 100 | | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
101 | 106 | | |
102 | 107 | | |
103 | 108 | | |
| |||
0 commit comments