This is an automated email from the ASF dual-hosted git repository.
lokiore pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/phoenix.git
The following commit(s) were added to refs/heads/master by this push:
new 132411c1d9 PHOENIX-7944 (addendum) Move bcprov-jdk18on unused-declared
ignore into phoenix-core pom (#2555)
132411c1d9 is described below
commit 132411c1d9dd1048bd349e16758853a582fcb509
Author: Lokesh Khurana <[email protected]>
AuthorDate: Sun Jun 28 17:54:56 2026 -0700
PHOENIX-7944 (addendum) Move bcprov-jdk18on unused-declared ignore into
phoenix-core pom (#2555)
The original fix added the ignore entries to the root pom's
maven-dependency-plugin config (under pluginManagement). However
phoenix-core/pom.xml re-declares the plugin under build/plugins with its
own non-empty <ignoredUnusedDeclaredDependencies> list, which overrides
(does not merge with) the parent's list. As a result the parent-level
bcprov-jdk18on entry never applied to phoenix-core, and the 2.6.0 profile
release still failed at analyze-only with:
Unused declared: org.bouncycastle:bcprov-jdk18on:jar:1.79:test
The companion bcprov-jdk15on used-undeclared ignore kept working because
phoenix-core's <ignoredUsedUndeclaredDependencies/> is empty, so the
parent entry passed through.
Add the bcprov-jdk18on entry directly to phoenix-core's child list so the
ignore actually applies.
Co-authored-by: Claude Opus 4.8 <[email protected]>
---
phoenix-core/pom.xml | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/phoenix-core/pom.xml b/phoenix-core/pom.xml
index 739f738a55..a69db4b597 100644
--- a/phoenix-core/pom.xml
+++ b/phoenix-core/pom.xml
@@ -470,6 +470,10 @@
<ignoredUnusedDeclaredDependency>org.apache.logging.log4j:log4j-1.2-api</ignoredUnusedDeclaredDependency>
<ignoredUnusedDeclaredDependency>org.slf4j:jul-to-slf4j</ignoredUnusedDeclaredDependency>
<ignoredUnusedDeclaredDependency>org.slf4j:jcl-over-slf4j</ignoredUnusedDeclaredDependency>
+ <!-- bcprov is declared as bcprov-jdk18on but on some HBase
profiles (e.g. 2.6.0)
+ HBase transitively pulls the older bcprov-jdk15on, so jdk18on
is reported as
+ unused-declared. Ignore it here (this child list overrides
the parent's). -->
+
<ignoredUnusedDeclaredDependency>org.bouncycastle:bcprov-jdk18on</ignoredUnusedDeclaredDependency>
</ignoredUnusedDeclaredDependencies>
<ignoredNonTestScopedDependencies>
<ignoredNonTestScopedDependency>org.apache.phoenix:phoenix-core-client</ignoredNonTestScopedDependency>