Re: Specify a dynamic profile

2007-05-15 Thread Evan Worley
That is a good suggestion Eric, I may give that a try. Thanks much, Evan On 5/15/07, Eric Redmond <[EMAIL PROTECTED]> wrote: You can have an external profile.xml file which contains all the profiles you need. Rather than dynamically generate the POM, you can generate the profiles.xml file easi

Re: Specify a dynamic profile

2007-05-15 Thread Eric Redmond
You can have an external profile.xml file which contains all the profiles you need. Rather than dynamically generate the POM, you can generate the profiles.xml file easily enough. Eric On 5/14/07, Evan Worley <[EMAIL PROTECTED]> wrote: Thanks for the reply Deng, The thing is, we don't know wh

Re: Specify a dynamic profile

2007-05-14 Thread Evan Worley
Thanks for the reply Deng, The thing is, we don't know what combinations we will want to run. We have over 20 modules and a developer might want to build any combination of them. We use a "precheckin" script which essentially is called such as "precheckin module1 module2 moduleN..." and we want

Re: Specify a dynamic profile

2007-05-14 Thread Maria Odea Ching
I'll go with #2, but instead of having each module in its own profile.. why don't you try grouping the modules you want to build per profile (e.g. have modules A and C in one profile), then build the project with -P? -Deng Evan Worley wrote: Hello, Does anyone know of a way to specify via th

Specify a dynamic profile

2007-05-14 Thread Evan Worley
Hello, Does anyone know of a way to specify via the command line a set of modules to build? For example, I have a pom with modules A,B,C. Is there a way I can specify that I would like to build modules A and C only? C:\> mvn -f mypom.xml A,C // something of the sort? Two approaches I've thoug