Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Intellij Idea keeps resetting compiler to 'ajc'

Very often, when I change my Maven Projects settings (add/remove modules, change profile, refresh dependencies) - Idea resets Java Compiler (under Settings->Build->Compiler->Java Compiler) - to Ajc.

This is very annoying, because I use Javac for my project. And I feel like its very old bug, because I stumbled across it in earlier versions.

Is there any solution to stop Idea resetting default compiler to Ajc?

Thank you.

like image 555
user2171669 Avatar asked Oct 28 '22 21:10

user2171669


1 Answers

If "aspectj-maven-plugin" is used. Add 'skip' configuration, cheat 'aspectj support plugin' .

<plugin> 
  <groupId>org.codehaus.mojo</groupId>
  <artifactId>aspectj-maven-plugin</artifactId>
  <version>1.11</version>
  <configuration>
    <skip>true</skip>
  </configuration>
  <executions>
    <execution>
      <configuration>
        <skip>false</skip>
      </configuration>
      <goals>
        <goal>compile</goal>
      </goals>
    </execution>
  </executions>
</plugin>
like image 143
ggpl Avatar answered Nov 15 '22 05:11

ggpl