Making Log4j 2 (i.e., the `2.x` branch) and Log4j 3 (the `main` branch) run in IntelliJ IDEA has been a futile effort so far. I had times when it worked, though after a `./mvnw clean` or re-import in IDEA, things got broken again. I personally even tried pulling some strings within my network to get in touch with some JetBrains engineers to assist us. There is work to be done, by both sides, and I couldn't invest more time into it.
In conclusion, your safest bet, and the one that will most likely *always* work, is to use Maven. How to compile with Maven, test your changes, debug in IDEA, etc. are all explained in BUILDING.adoc <https://github.com/apache/logging-log4j2/blob/2.x/BUILDING.adoc> linked in our Development guide <https://logging.apache.org/log4j/2.x/development.html>. Please let us know if `BUILDING.adoc` falls short in answering your question or there are instructions that don't work for you. On Wed, Jun 4, 2025 at 7:09 AM Ryan Schmitt <rschm...@apache.org> wrote: > Does anyone know how to get Log4j2 building in IntelliJ? I'm having > issues with the annotation processor configuration, and any time I try > to run a test case or something I just get: > > java: java.lang.IllegalArgumentException: missing option: > `log4j.docgen.groupId` >