GitHub user jbisotti added a comment to the discussion:
java.lang.IllegalArgumentException: The `GraalVmProcessor` annotation processor
is missing the required `log4j.graalvm.groupId` and `log4j.graalvm.artifactId`
options
Adding the two options it's complaining about results in a different failure.
```xml
<compilerArgs>
<arg>-Alog4j.graalvm.groupId=${project.groupId}</arg>
<arg>-Alog4j.graalvm.artifactId=${project.artifactId}</arg>
...
</compilerArgs>
```
Previously, it was breaking when attempting to compile the test code; this
time, it's breaking when attempting to compile the production code.
```shell
...
[INFO] --- compiler:3.13.0:compile (default-compile) @ kfs-core ---
[INFO] Compiling 5589 source files with javac [debug release 21] to
target/classes
[INFO] Annotation processing is enabled because one or more processors were
found
on the class path. A future release of javac may disable annotation processing
unless at least one processor is specified by name (-processor), or a search
path is specified (--processor-path, --processor-module-path), or annotation
processing is enabled explicitly (-proc:only, -proc:full).
Use -Xlint:-options to suppress this message.
Use -proc:none to disable annotation processing.
[INFO] -------------------------------------------------------------
[WARNING] COMPILATION WARNING :
[INFO] -------------------------------------------------------------
[WARNING] The following options were not recognized by any processor:
'[log4j.graalvm.artifactId, log4j.graalvm.groupId]'
[INFO] 1 warning
[INFO] -------------------------------------------------------------
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] warnings found and -Werror specified
[INFO] 1 error
...
```
GitHub link:
https://github.com/apache/logging-log4j2/discussions/3755#discussioncomment-13765958
----
This is an automatically sent email for [email protected].
To unsubscribe, please send an email to: [email protected]