GitHub user ppkarwasz 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
I'm not a Tycho user, but from what I can tell, the configuration for
`tycho-compiler-plugin` is quite similar to `maven-compiler-plugin` in this
context.
I tested this successfully on a small example project using Tycho version
`4.0.13` with a custom Log4j appender. To ensure the Log4j `GraalVmProcessor`
works correctly, I added the following configuration:
```xml
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-compiler-plugin</artifactId>
<configuration>
<compilerArgs>
<arg>-Alog4j.graalvm.groupId=${project.groupId}</arg>
<arg>-Alog4j.graalvm.artifactId=${project.artifactId}</arg>
</compilerArgs>
</configuration>
</plugin>
```
> Also my project has no `GraalVM` stuff in it.
A quick clarification: the `GraalVmProcessor` is **not** triggered by using
GraalVM itself. Instead, it is activated by the presence of custom Log4j Core
plugins in your code—specifically, classes annotated with
`@org.apache.logging.log4j.core.config.plugins.Plugin`.
Hope this helps clarify things!
GitHub link:
https://github.com/apache/logging-log4j2/discussions/3755#discussioncomment-13560242
----
This is an automatically sent email for [email protected].
To unsubscribe, please send an email to: [email protected]