Java Maven Compile Only Changed Files

20-01-2015
If you want to compile only changed Java files, you can use <useIncrementalCompilation>false</useIncrementalCompilation> as follows:
<plugin>
    <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-compiler-plugin</artifactId>
    <version>3.2</version>
    <configuration>
        <source>1.6</source>
        <target>1.6</target>
        <useIncrementalCompilation>false</useIncrementalCompilation>
    </configuration>
</plugin>

© 2019 All rights reserved. Codesenior.COM