Currently i use buildforge with maven but i do execute them separately for
each module, means runs mvn clean install commands from each module. This
will basically cleans and compiles everything whether there is change or
not. Now i'm trying to make use of incremental build function, so i changed
to execute mvn install from parent project itself with the -amd option
when i did this even though change is only in Module C it still
did compilation on Module A B. I can understand the compilation part of
Module D when there is a change in Module C but why A B?. Should i use
incremental build instead of -amd option? Basically i just want to
compile only changed source code files not everything everytime.
On Fri, Oct 5, 2012 at 10:22 AM, Ron Wheeler rwhee...@artifact-software.com
wrote:
What have you tried and what did it do?
Did you read up on multi-module builds to see how they are supposed to
work and what you need to do to make it happen?
Ron
On 05/10/2012 10:56 AM, Jan wrote:
Hi All,
I'm trying to see is there any best way or process to do incremental build
using maven?
Basically i have multi module project like show below, when i run mvn with
-amd command how maven will compile only changed files?
For Eg lets say i have
- Project A
| - Module-A
| - Module-B
| - Module-C
| - Module- D
Dependency wise
B - A,
C - A,B
D - A,B,C
In this setup when run my root pom from Project a location i expect maven
to identify only C Module is changed, so it will compile C D. Will maven
automatically finds which module code is updated or we have to pass the
changed module as argument for build.
Please help
--
Ron Wheeler
President
Artifact Software Inc
email: rwhee...@artifact-software.com
skype: ronaldmwheeler
phone: 866-970-2435, ext 102
--**--**-
To unsubscribe, e-mail:
users-unsubscribe@maven.**apache.orgusers-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org