Skip to content

Commit 132411c

Browse files
lokioreclaude
andauthored
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 <noreply@anthropic.com>
1 parent 7bc2f3f commit 132411c

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

phoenix-core/pom.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -470,6 +470,10 @@
470470
<ignoredUnusedDeclaredDependency>org.apache.logging.log4j:log4j-1.2-api</ignoredUnusedDeclaredDependency>
471471
<ignoredUnusedDeclaredDependency>org.slf4j:jul-to-slf4j</ignoredUnusedDeclaredDependency>
472472
<ignoredUnusedDeclaredDependency>org.slf4j:jcl-over-slf4j</ignoredUnusedDeclaredDependency>
473+
<!-- bcprov is declared as bcprov-jdk18on but on some HBase profiles (e.g. 2.6.0)
474+
HBase transitively pulls the older bcprov-jdk15on, so jdk18on is reported as
475+
unused-declared. Ignore it here (this child list overrides the parent's). -->
476+
<ignoredUnusedDeclaredDependency>org.bouncycastle:bcprov-jdk18on</ignoredUnusedDeclaredDependency>
473477
</ignoredUnusedDeclaredDependencies>
474478
<ignoredNonTestScopedDependencies>
475479
<ignoredNonTestScopedDependency>org.apache.phoenix:phoenix-core-client</ignoredNonTestScopedDependency>

0 commit comments

Comments
 (0)