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
Hi @ratoaq2, Thanks for the detailed error log — it's very helpful. >From what you've shared, the issue is occurring during the `default-compile` >Maven Compiler Plugin execution, not in the custom >`generate-log4j-plugin-descriptor` execution you configured. Specifically: ``` [INFO] --- compiler:3.14.0:compile (default-compile) @ common --- [INFO] Compiling with eclipse [...] to target/classes [ERROR] Internal compiler error: java.lang.IllegalArgumentException: The `GraalVmProcessor` annotation processor is missing the required `log4j.graalvm.groupId` and `log4j.graalvm.artifactId` options. ``` If you want to use a separate execution for annotation processing, you need to disable annotation processing in `default-compile`: ```xml <execution> <id>default-compile</id> <configuration> <proc>none</proc> </configuration> </execution> ``` If, on the other hand, you want to perform both compilation and annotation processing (Log4j plugin descriptor + GraalVM metadata) **in a single Maven execution**, you can fully configure the `default-compile` phase like this: ```xml <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <version>3.14.0</version> <dependencies> <dependency> <groupId>org.codehaus.plexus</groupId> <artifactId>plexus-compiler-eclipse</artifactId> <version>2.15.0</version> </dependency> </dependencies> <configuration> <!-- Use Eclipse Compiler explicitly --> <compilerId>eclipse</compilerId> <release>21</release> <!-- Default to no annotation processing unless explicitly enabled --> <proc>none</proc> </configuration> <executions> <execution> <id>default-compile</id> <configuration> <!-- Enable annotation processing in this phase --> <proc>only</proc> <annotationProcessorPaths> <path> <groupId>org.apache.logging.log4j</groupId> <artifactId>log4j-core</artifactId> <version>2.25.0</version> </path> </annotationProcessorPaths> <annotationProcessors> <annotationProcessor> org.apache.logging.log4j.core.config.plugins.processor.PluginProcessor </annotationProcessor> <annotationProcessor> org.apache.logging.log4j.core.config.plugins.processor.GraalVmProcessor </annotationProcessor> </annotationProcessors> <compilerArgs> <!-- Required arguments for GraalVmProcessor --> <arg>-Alog4j.graalvm.groupId=${project.groupId}</arg> <arg>-Alog4j.graalvm.artifactId=${project.artifactId}</arg> </compilerArgs> </configuration> </execution> </executions> </plugin> ``` GitHub link: https://github.com/apache/logging-log4j2/discussions/3755#discussioncomment-13512223 ---- This is an automatically sent email for dev@logging.apache.org. To unsubscribe, please send an email to: dev-unsubscr...@logging.apache.org