[ZEPPELIN-6541] Pin maven-checkstyle-plugin version so it is actually applied#5308
[ZEPPELIN-6541] Pin maven-checkstyle-plugin version so it is actually applied#5308ParkGyeongTae wants to merge 1 commit into
Conversation
|
One thing worth weighing before wiring it back up: that So re-pinning would special-case checkstyle away from the parent-managed version, while the other plugins from that commit stay parent-managed. Unless there's a concrete reason to need |
The plugin.checkstyle.version property was never referenced by a <version> tag in pluginManagement, so it had no effect. This is not an oversight: ZEPPELIN-6138 (apache#4884) intentionally removed the <version> tags for ~10 plugins, including maven-checkstyle-plugin, so their versions would be deferred to the Apache parent pom instead of being pinned locally. That change left the now-unused plugin.checkstyle.version property behind. Remove the orphaned property instead of re-pinning the plugin version, so maven-checkstyle-plugin stays consistent with the other plugins that were deferred to parent-managed versioning in ZEPPELIN-6138.
43bc73e to
0cbd2ec
Compare
|
Good catch, thanks for digging into the #4884 history — you're right. I re-checked: the I've updated this PR (and the Jira description) to remove the orphaned property instead of re-pinning it, so maven-checkstyle-plugin stays consistent with the other plugins from #4884 that are parent-managed. Verified locally that the build still runs checkstyle (now inherited from the parent pom, currently 3.4.0) and passes. PTAL, thanks again for catching this. |
What is this PR for?
The root
pom.xmldeclares aplugin.checkstyle.versionproperty (2.17) intended to pin themaven-checkstyle-pluginversion used across all modules, but the plugin's<pluginManagement>declaration never referenced it via a<version>tag. As a result Maven silently resolved a different, non-deterministic plugin version regardless of what the property said — confirmed locally: the property said2.17, but the build actually rancheckstyle:3.4.0:check. This PR adds the missing<version>${plugin.checkstyle.version}</version>tag and bumps the property to3.6.0(the current latest release) so the pinned version is the one that actually runs.What type of PR is it?
Improvement
Todos
<version>${plugin.checkstyle.version}</version>to themaven-checkstyle-pluginblock in<pluginManagement>plugin.checkstyle.versionfrom2.17to3.6.0What is the Jira issue?
ZEPPELIN-6541
How should this be tested?
Confirm the log shows checkstyle:3.6.0:check (not an arbitrary/older version) and the build completes with BUILD SUCCESS. No module overrides the plugin version locally, so all modules using maven-checkstyle-plugin inherit the pinned version consistently.
Screenshots (if appropriate)
N/A
Questions: