In my case, the problem was the java language level - aspectj version compatibility: https://eclipse.dev/aspectj/doc/latest/release/JavaVersionCompatibility.html I use IntellijIDEA and I had to set language level explicitly in Project Structure. (Java version in pom.xml and SDK default in Project Structure weren't enough)