If you want modules run in a specific order, then set up dependencies
between them, and Maven will sort it out and run them in the proper
order.

ie You want unittests run before domain, then make domain depend on
unittests in the pom.

Wayne

On 7/20/07, Baz <[EMAIL PROTECTED]> wrote:
Interesting tho, if you do what you mentioned in the email, then the modules
in the <profiles> will execute after the one in the declared after.

For example, project-domain will run before project-unittests.

Is it a normal behavior? What if i want project-unittests run before
project-domain (Yes i know it is bad example, I just want to follow whats in
the email), then what should i do? Can it be done?

Thanks.

A.


On 7/14/07, Manos Batsis <[EMAIL PROTECTED]> wrote:
>
> Baz wrote:
> > All,
> >
> > So i asked similar question before... How can i build multiple
> > sub-directories with one pom.xml? The answer is using <modules>.
> >
> > What if, there are two sets of sub-directories, one for product A and
> the
> > other for product B, how can i do "mvn product_a" and "mvn product_b"?
> >
> > Using profile?
>
> Yup, e.g.:
>
>
>     </profiles>
>         <profile>
>             <id>test</id>
>             <modules>
>                 <module>project-unittests</module>
>             </modules>
>         </profile>
>     </profiles>
>
> <!-- ... -->
>
>     <modules>
>         <module>project-domain</module>
>         <module>project-ear</module>
>         <module>project-ejb</module>
>         <module>project-web</module>
>     </modules>
>
> hth,
>
> Manos
>
> ---------------------------------------------------------------------
> 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