GitHub user ratoaq2 edited a discussion: java.lang.IllegalArgumentException: The `GraalVmProcessor` annotation processor is missing the required `log4j.graalvm.groupId` and `log4j.graalvm.artifactId` options
Hi all, I have a java 21 maven project which uses eclipse compiler org.codehaus.plexus:plexus-compiler-eclipse:2.15.0 and has a log4j plugin using a Log4j2Plugins.dat file and configured the compiler with: ``` <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <executions> <execution> <id>generate-log4j-plugin-descriptor</id> <goals> <goal>compile</goal> </goals> <phase>process-classes</phase> <configuration> <proc>only</proc> <annotationProcessorPaths> <path> <groupId>org.apache.logging.log4j</groupId> <artifactId>log4j-core</artifactId> </path> </annotationProcessorPaths> <annotationProcessors> <processor>org.apache.logging.log4j.core.config.plugins.processor.PluginProcessor</processor> </annotationProcessors> </configuration> </execution> </executions> </plugin> ``` After upgrading from 2.24.3 to 2.25.0 now my compilation is failing with: ``` 19:43:54 [INFO] --- compiler:3.14.0:compile (default-compile) @ common --- 19:43:55 [INFO] Recompiling the module because of changed source code. 19:43:55 [INFO] Compiling with eclipse [debug deprecation parameters target 21] to target/classes 19:43:55 [INFO] ------------------------------------------------------------- 19:43:55 [ERROR] COMPILATION ERROR : 19:43:55 [INFO] ------------------------------------------------------------- 19:43:55 [ERROR] /redacted/XXXX/redacted/src/main/redacted/Redacted.java: Internal compiler error: java.lang.Exception: java.lang.IllegalArgumentException: The `GraalVmProcessor` annotation processor is missing the required `log4j.graalvm.groupId` and `log4j.graalvm.artifactId` options. 19:43:55 The generation of GraalVM reflection metadata for your Log4j Plugins will be disabled. The generation of GraalVM reflection metadata for your Log4j Plugins will be disabled. 19:43:55 [ERROR] Unknown source: The `GraalVmProcessor` annotation processor is missing the required `log4j.graalvm.groupId` and `log4j.graalvm.artifactId` options. 19:43:55 The generation of GraalVM reflection metadata for your Log4j Plugins will be disabled. 19:43:55 [INFO] 2 errors ``` Is anyone facing similar issue? I tried to specify the graal processor with its arguments, but that doesn't work either. GitHub link: https://github.com/apache/logging-log4j2/discussions/3755 ---- This is an automatically sent email for dev@logging.apache.org. To unsubscribe, please send an email to: dev-unsubscr...@logging.apache.org