Skip to content

build: remove misspelled log4j-1.2-api property and obsolete zookeeper log4j exclusion (#7609) - #7618

Merged
Aias00 merged 1 commit into
apache:masterfrom
konlue:build/remove-log4j-dead-config
Oct 19, 2026
Merged

Aias00 merged 1 commit into
apache:masterfrom
konlue:build/remove-log4j-dead-config

Conversation

@konlue

@konlue konlue commented Oct 13, 2026

Copy link
Copy Markdown
Contributor

Fixes #7609

What is the purpose of the change

Build hygiene cleanup in the root POM, as requested in the issue:

  1. Remove the misspelled property <log4j-1.2-api.vetsion> — it has no references anywhere in the repository (neither the misspelled nor the correctly spelled form), so it is removed rather than renamed.
  2. Remove the log4j:log4j exclusion under the org.apache.zookeeper:zookeeper entry in <dependencyManagement> — obsolete with zookeeper 3.9.5.

Brief changelog

  • pom.xml: drop one property line and the zookeeper log4j:log4j exclusion block.

Verifying this change

  • grep -rn "log4j-1.2-api" --include="*.xml" . → only the removed definition line existed; no ${...} references before or after the change, so no dangling references.
  • zookeeper POM check: org.apache.zookeeper:zookeeper:3.9.5 declares no log4j dependency.
  • Empirical check: with the exclusion removed, ./mvnw -pl shenyu-infra/shenyu-infra-zookeeper dependency:tree -Dincludes=log4j:log4j returns zero hits while zookeeper 3.9.5 still resolves (transitively via curator).
  • Build green: ./mvnw -B validate -pl shenyu-common,shenyu-spi,shenyu-registry/shenyu-registry-api,shenyu-infra/shenyu-infra-common -am SUCCESS; and ./mvnw -B install -DskipTests -Dmaven.javadoc.skip=true -pl shenyu-registry/shenyu-registry-api,shenyu-registry/shenyu-registry-zookeeper -am — 9/9 modules SUCCESS (BUILD SUCCESS in 21.9s, incl. shenyu-infra-zookeeper which resolves zookeeper 3.9.5 transitively via curator). Full reactor build runs in CI.

Checklist

  • I have read the contributor guide.
  • Unit tests / integration tests added or modified: not applicable — POM-only cleanup, no production code touched.
  • Local build passes.

…r log4j exclusion (apache#7609)

- <log4j-1.2-api.vetsion> has no references anywhere in the repository
  (neither the misspelled nor the correctly spelled form), so it is
  removed rather than renamed.
- The log4j:log4j exclusion under org.apache.zookeeper:zookeeper is
  obsolete with zookeeper 3.9.5: its POM declares no log4j dependency,
  and a dependency:tree run with the exclusion removed shows zero log4j
  hits.

Fixes apache#7609

@Aias00 Aias00 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review: build: remove misspelled log4j-1.2-api property and obsolete zookeeper log4j exclusion (#7609)

Exactly the cleanup proposed in #7609. The misspelled log4j-1.2-api.vetsion property is dead (nothing references it, and the correct key is log4j-1.2-api.version), and the log4j:log4j exclusion on zookeeper is obsolete: the project uses zookeeper.version 3.9.5, which depends on log4j-1.2-api (the Log4j2 bridge) rather than the legacy log4j:log4j 1.x artifact, so removing the exclusion does not reintroduce a vulnerable 1.x dependency.

Trivial, safe, correct. Approving.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

build: fix typo 'log4j-1.2-api.vetsion' property key in root pom

2 participants