Question

I have a multi module Maven project and I need help to optimize the time spent to build my Android module. When running the goals "clean install" or "verify" concluded that the Android project is consuming most of the time. The summary of time spent on builds is shown below:

[INFO] ------------------------------------------------------------------
[INFO] Building M-SPLearning Parent 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------
[INFO] ------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO] 
[INFO] M-SPLearning Entity ................... SUCCESS [1.710s]
[INFO] M-SPLearning Repository ............... SUCCESS [0.226s]
[INFO] M-SPLearning Service .................. SUCCESS [0.115s]
[INFO] M-SPLearning RESTful .................. SUCCESS [2.925s]
[INFO] M-SPLearning Android .................. SUCCESS [38.153s] << The Problem
[INFO] M-SPLearning Parent ................... SUCCESS [0.000s]
[INFO] ------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------
[INFO] Total time: 44.430s
[INFO] Finished at: Tue Jan 28 23:24:54 BRST 2014
[INFO] Final Memory: 24M/137M
[INFO] ------------------------------------------------------------------

The full output console can be accessed here.

Like to know if there are ways to improve the time spent in the build of the Android project, because I need run the build procedure (programmatically) in one of my RESTful services and 45~60 seconds is too long to wait the response.

The project source code is stored on GitHub.

Already, thanks!

Was it helpful?

Solution

For starters I would upgrade to the Android Maven Plugin 3.8.1 (not 3.8.2 since that breaks apklib usage) and Maven 3.1.1 and then I would see what is actually slow. I have a feeling it is the dex run since you have a lot of dependencies. And if that is the case there is not much you can do.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top