Out of interest...
How many modules is that?
How many java files?
Any code generation happening like XMLBeans etc?
Also does that half day include or exclude test execution time?

I worked somewhere, where the build was 3 hours not including tests,
by simply upgrading from maven 2.x to 3 and splitting some of the code
into smaller modules I managed to drop the build to 20 minutes.
Compiling 10 modules each with 200 java files is much quicker than
compiling 2,000 java files at once.

On 17 April 2012 15:24, Srinath C <[email protected]> wrote:
> Wow! Half a day sounds like a huge code base!
>
> Anyways, yes you can do this in Maven 3 but maven takes the call on how the
> modules get build. You can enforce a build order among modules using
> dependencies (if A depends on B, maven will build B before A) but I'm not
> aware of any other ways to enforce the order.
>
> Another notable point is to check if your plugins are compatible with
> parallel builds - either check their documentation or simply build with "-T
> N" option and watch for warnings (N is the number of threads to build in
> parallel).
>
> Regards,
> Srinath.
>
>
> On Tue, Apr 17, 2012 at 5:04 PM, Ramith Jayasinghe 
> <[email protected]>wrote:
>
>>
>> Greetings Everyone,
>> I'm trying to build my project in parallel using Maven 3, so I can
>> reduce the time taken (Currently it takes around better half of a day to
>> completely build it).
>> May be this sounds stupid, but the way I want to do is to build
>> some of the modules in project serially while others in parallel.
>>
>> So ideally, when I do a 'mvn clean install', I want maven to
>> parallel build parts of the project that are marked/configured for
>> that and others sequentially.
>>
>> Is this possibe with current
>> capabilities of maven 3?
>>
>> Thanks in advance,
>> - Ramith
>> Jayasinghe
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [email protected]
>> For additional commands, e-mail: [email protected]
>>
>>

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to