[
https://issues.apache.org/jira/browse/DRILL-1720?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Aditya Kishore updated DRILL-1720:
----------------------------------
Attachment: DRILL-1720-Enable-incremental-maven-builds.patch
Incremental build *without* this patch.
{noformat}
$ MAVEN_OPTS=-XX:MaxPermSize=786m mvn install -DskipTests
...
[INFO] --- maven-compiler-plugin:3.0:compile (default-compile) @ drill-protocol
---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 71 source files to .\apache-drill\protocol\target\classes
...
...
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 05:20 min
[INFO] Finished at: 2014-11-15T16:33:07-08:00
[INFO] Final Memory: 135M/1357M
[INFO] ------------------------------------------------------------------------
{noformat}
Incremental build *with* this patch.
{noformat}
$ MAVEN_OPTS=-XX:MaxPermSize=786m mvn install -DskipTests
...
[INFO] --- maven-compiler-plugin:3.2:testCompile (default-testCompile) @
drill-protocol ---
[INFO] No sources to compile
...
...
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 04:39 min
[INFO] Finished at: 2014-11-15T16:14:15-08:00
[INFO] Final Memory: 126M/864M
[INFO] ------------------------------------------------------------------------
{noformat}
The build time is cut by 40 seconds.
> Enable incremental maven builds
> -------------------------------
>
> Key: DRILL-1720
> URL: https://issues.apache.org/jira/browse/DRILL-1720
> Project: Apache Drill
> Issue Type: Sub-task
> Components: Tools, Build & Test
> Affects Versions: 0.7.0
> Reporter: Aditya Kishore
> Assignee: Aditya Kishore
> Attachments: DRILL-1720-Enable-incremental-maven-builds.patch
>
>
> The current maven build setup for Drill is not incremental due to a couple of
> bugs\[1],\[2] in maven-compiler-plugin v3.0.
> To fix this, we need to
> # Upgrade to maven-compiler-version 3.2, and
> # Use the paradoxically named setting {{useIncrementalCompilation}} to 'false'
> \[1] https://jira.codehaus.org/browse/MCOMPILER-205
> \[2] http://jira.codehaus.org/browse/MCOMPILER-209
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)