Cannot force Intellij to use AspectJ compiler

Everything I see on the Internet just says to select the "ajc" compiler from the list of compilers, but this is not an option for me. I have javac, jikes, eclipse and javac-in-process, but that.

How my project compiles from the command line with maven, but if I inject anything into an IDE that uses an aspect, I get compiler warnings.

+6
source share
2 answers

Make sure the AspectJ Support plugin is enabled in Settings ( Preferences on Mac) | Plugins Follow the documentation for more details.

When using the proper Maven project, the ajc compiler is automatically turned on .

+3
source

If you do not see this option, you may not be using the final edition.

This option is available only in the Ultimate Edition IntelliJ IDEA.

Documentation

+1
source

Source: https://habr.com/ru/post/907457/


All Articles