Skip to content

Conversation

ppkarwasz
Copy link
Contributor

This update refines the GraalVmProcessor configuration example in response to feedback from #3755. The goal is to make the example more reliable and aligned with common Maven project setups. Key improvements include:

  • Ensuring consistent parameter usage: The example now adds -Alog4j.graalvm.groupId and -Alog4j.graalvm.artifactId to all executions of the Maven Compiler Plugin. This guarantees correct behavior regardless of the execution ID used in user projects.

  • Simplifying plugin execution setup: Instead of introducing a dedicated generate-log4j-plugin-descriptor execution, the example now modifies the existing default-compile execution. This reflects the most typical use case, where annotation processing and compilation occur together.

These changes aim to make the setup easier to adopt while reducing configuration errors.

This update refines the `GraalVmProcessor` configuration example in response to feedback from #3755. The goal is to make the example more reliable and aligned with common Maven project setups. Key improvements include:

* **Ensuring consistent parameter usage:**
  The example now adds `-Alog4j.graalvm.groupId` and `-Alog4j.graalvm.artifactId` to **all executions** of the Maven Compiler Plugin. This guarantees correct behavior regardless of the execution ID used in user projects.

* **Simplifying plugin execution setup:**
  Instead of introducing a dedicated `generate-log4j-plugin-descriptor` execution, the example now modifies the existing `default-compile` execution. This reflects the most typical use case, where annotation processing and compilation occur together.

These changes aim to make the setup easier to adopt while reducing configuration errors.
@ppkarwasz ppkarwasz requested a review from vy June 26, 2025 07:22
@ppkarwasz ppkarwasz moved this from To triage to In review in Log4j bug tracker Jun 26, 2025
@ppkarwasz ppkarwasz merged commit c4df56e into 2.x Jul 3, 2025
9 checks passed
@ppkarwasz ppkarwasz deleted the doc/2.x/graalvm-arguments branch July 3, 2025 14:02
@github-project-automation github-project-automation bot moved this from In review to Done in Log4j bug tracker Jul 3, 2025
ppkarwasz added a commit that referenced this pull request Jul 5, 2025
)

This update refines the `GraalVmProcessor` configuration example in response to feedback from #3755. The goal is to make the example more reliable and aligned with common Maven project setups. Key improvements include:

* **Ensuring consistent parameter usage:**
  The example now adds `-Alog4j.graalvm.groupId` and `-Alog4j.graalvm.artifactId` to **all executions** of the Maven Compiler Plugin. This guarantees correct behavior regardless of the execution ID used in user projects.

* **Simplifying plugin execution setup:**
  Instead of introducing a dedicated `generate-log4j-plugin-descriptor` execution, the example now modifies the existing `default-compile` execution. This reflects the most typical use case, where annotation processing and compilation occur together.

These changes aim to make the setup easier to adopt while reducing configuration errors.
vy pushed a commit to ashr123/logging-log4j2 that referenced this pull request Jul 20, 2025
…ache#3786)

This update refines the `GraalVmProcessor` configuration example in response to feedback from apache#3755. The goal is to make the example more reliable and aligned with common Maven project setups. Key improvements include:

* **Ensuring consistent parameter usage:**
  The example now adds `-Alog4j.graalvm.groupId` and `-Alog4j.graalvm.artifactId` to **all executions** of the Maven Compiler Plugin. This guarantees correct behavior regardless of the execution ID used in user projects.

* **Simplifying plugin execution setup:**
  Instead of introducing a dedicated `generate-log4j-plugin-descriptor` execution, the example now modifies the existing `default-compile` execution. This reflects the most typical use case, where annotation processing and compilation occur together.

These changes aim to make the setup easier to adopt while reducing configuration errors.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants