This is a dangerous advice.
Yes, it'll only compile the touched files, but not the source files using it. For example method signature changes are not detected and you will hit that issue at runtime with a NoSuchMethodException, which is too late (and then Maven is of course the one to blame...)

thanks,
Robert

On Sat, 01 Dec 2018 19:48:21 +0100, Martin Desruisseaux <martin.desruisse...@geomatys.com> wrote:

Hello Francesco

Have you tried following configuration? It seems counter-intuitive, but
last time I tried it made compilation much faster (i.e. it seems to have
the opposite effect of what we would expect):

    <build>
      <plugins>
        <plugin>
          <artifactId>maven-compiler-plugin</artifactId>
          <configuration>
<useIncrementalCompilation>false</useIncrementalCompilation> <!-- https://jira.codehaus.org/browse/MCOMPILER-209 -->
          </configuration>
        </plugin>
      </plugins>
    </build>

Martin


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org

Reply via email to