This is an automated email from the ASF dual-hosted git repository.

lokiore pushed a commit to branch 5.3
in repository https://gitbox.apache.org/repos/asf/phoenix.git


The following commit(s) were added to refs/heads/5.3 by this push:
     new 71eb4d7ca0 PHOENIX-7944 (addendum) Move bcprov-jdk18on unused-declared 
ignore into phoenix-core pom (#2554)
71eb4d7ca0 is described below

commit 71eb4d7ca005740dee15be1afbf247f7f36eace6
Author: Lokesh Khurana <[email protected]>
AuthorDate: Sun Jun 28 17:55:09 2026 -0700

    PHOENIX-7944 (addendum) Move bcprov-jdk18on unused-declared ignore into 
phoenix-core pom (#2554)
    
    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. Verified locally with
      mvn -Dhbase.profile=2.6.0 -pl phoenix-core \
          dependency:analyze-only@enforce-dependencies
    -> No dependency problems found / BUILD SUCCESS.
    
    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 b5c615730f..094ea5d3a6 100644
--- a/phoenix-core/pom.xml
+++ b/phoenix-core/pom.xml
@@ -456,6 +456,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>
           <ignoredUsedUndeclaredDependencies/>
         </configuration>

Reply via email to