Graham Leggett schrieb:
> Sharon Whipple wrote:
>
>> I am part of team working on large scale web application,
>> As full application build cycle is approx 20 minutes.
>>
>> Is it possible to tell Maven to build changed classes only(change
>> since last
>> build)?
>
> Maven (or more accurately the maven-compile-plugin) already does this
> by default.

Does it? That would be great, but I haven't seen that documented anywhere.

Due to the way Java works, it is quite a difficult problem. A file
Foo.java needs to be recompiled not just if it changed, but if any class
that it depends upon (ancestor of any remoteness, member-variable,
local-variable, parameter type) changed.
 So AFAIK a full data-dependency analysis needs to be run on every class
to determine whether it needs to be recompiled. An IDE can possibly do
this then cache the results, but without such a cache it is probably
just as slow to do the analysis as to simply compile the source again.

Regards, Simon


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to