Incremental Compilation Issue

Continuing the discussion from How to build directly from IntelliJ IDEA without command line "mvn compile" first?:

Indeed i eventually found related thing for this issue on github:

The statements:

There is a known issue with Maven and annotation processors.

Repleatedly invoking mvn compile after small code changes is not always calling annotation processors correctly. Instead you are forced to do a mvn clean compile in order to make sure that the sources will be generated completely.

one of the proposaled solution:

EDIT: According to this post from elucash there is another option, which enables incremental compilation directly on the maven-compiler-plugin.

<plugin>
  <groupId>org.apache.maven.plugins</groupId>
  <artifactId>maven-compiler-plugin</artifactId>
  <version>3.3</version>
  <configuration>
    <compilerVersion>1.8</compilerVersion>
    <source>1.8</source>
    <target>1.8</target>
    <useIncrementalCompilation>true</useIncrementalCompilation>
  </configuration>
</plugin>

so, if we should change the following property from false to true ?

<maven.compiler.useIncrementalCompilation>false</maven.compiler.useIncrementalCompilation>
ยทยทยท

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.