You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by smceneaney <sh...@hotmail.com> on 2008/10/23 13:05:21 UTC

Build only a subset of projects/modules in maven2

Hi,

Our build takes up to 20 minutes to complete using maven2.

Is it possible to have a profile that only builds certain modules? I had a
look at the docs but can't see a way of doing this.

Thanks in advance,

Shane
-- 
View this message in context: http://www.nabble.com/Build-only-a-subset-of-projects-modules-in-maven2-tp20128757p20128757.html
Sent from the Maven - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Build only a subset of projects/modules in maven2

Posted by Vincent Beretti <vb...@gmail.com>.
Hi,
The build takes 20 minutes with a clean install or only install ? with tests
compile and execution ?
You can do incremental builds, skip tests or move them to an integration
tests phase.
With incremental builds, if you split your project into modules, you will
manage to save even more compilation time. The projects whose sources are
almost never modified will not be rebuild every time. For a clean
incremental build (only install and no clean install), use
maven-incremental-build : https://maven-incremental-build.dev.java.net/

Vincent.

On Thu, Oct 23, 2008 at 1:05 PM, smceneaney <sh...@hotmail.com>wrote:

>
> Hi,
>
> Our build takes up to 20 minutes to complete using maven2.
>
> Is it possible to have a profile that only builds certain modules? I had a
> look at the docs but can't see a way of doing this.
>
> Thanks in advance,
>
> Shane
> --
> View this message in context:
> http://www.nabble.com/Build-only-a-subset-of-projects-modules-in-maven2-tp20128757p20128757.html
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

Re: Build only a subset of projects/modules in maven2

Posted by Brett Porter <br...@apache.org>.
EJ is correct. Another alternative you might consider is the reactor  
plugin which keeps the build intact but can run a specified subset  
depending on your needs (Based on scm changes and/or dependencies).

- Brett

On 23/10/2008, at 9:17 PM, EJ Ciramella wrote:

> Could you make the modules profile enabled?
>
> This could wind up being messy though, what's the default set?
>
> I think the true solution is to make the project more modular and have
> aggregator poms where necessary.
>
> -----Original Message-----
> From: smceneaney [mailto:shane_mceneaney@hotmail.com]
> Sent: Thursday, October 23, 2008 7:05 AM
> To: users@maven.apache.org
> Subject: Build only a subset of projects/modules in maven2
>
>
> Hi,
>
> Our build takes up to 20 minutes to complete using maven2.
>
> Is it possible to have a profile that only builds certain modules? I  
> had
> a look at the docs but can't see a way of doing this.
>
> Thanks in advance,
>
> Shane
> --
> View this message in context:
> http://www.nabble.com/Build-only-a-subset-of-projects-modules-in-maven2-
> tp20128757p20128757.html
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>

--
Brett Porter
brett@apache.org
http://blogs.exist.com/bporter/


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


RE: Build only a subset of projects/modules in maven2

Posted by EJ Ciramella <ec...@upromise.com>.
Could you make the modules profile enabled?

This could wind up being messy though, what's the default set?

I think the true solution is to make the project more modular and have
aggregator poms where necessary.

-----Original Message-----
From: smceneaney [mailto:shane_mceneaney@hotmail.com] 
Sent: Thursday, October 23, 2008 7:05 AM
To: users@maven.apache.org
Subject: Build only a subset of projects/modules in maven2


Hi,

Our build takes up to 20 minutes to complete using maven2.

Is it possible to have a profile that only builds certain modules? I had
a look at the docs but can't see a way of doing this.

Thanks in advance,

Shane
--
View this message in context:
http://www.nabble.com/Build-only-a-subset-of-projects-modules-in-maven2-
tp20128757p20128757.html
Sent from the Maven - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org