You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Joao Batistella <jo...@ptinovacao.pt> on 2005/11/03 18:12:59 UTC

Wrong processing order

Hello.

I'm trying to build my EAR with Maven but it builds my EAR before my
EJBs. The processing order is wrong. 

Here is how my directory structure looks like:

- root
  - maven.xml
  - project.xml (default configuration)
  - project.properties
  - server
    - maven.xml (it has a reactor with includes="*/project.xml")
    - project.xml (here I have my dependencies for the server side
application. Extends ${basedir}/../project.xml)
    - ear
      maven.xml
      project.properties
      project.xml (EAR dependencies. Depends on mobileEJB and
console-common. Extends ${basedir}/../project.xml)
    - console-common (this component is used by EJBs anda EAR)
      - maven.xml
      - project.xml (Extends ${basedir}/../project.xml)
      - project.properties      
    - ejb (directory for my EJBs)
      - maven.xml (it has a reactor with includes="*/project.xml")
      - project.properties
      - project.xml (common dependencies for EJBs. Depends on
console-common. Extends ${basedir}/../project.xml)
      - mobileEJB  
        - maven.xml
        - project.xml (no dependencies. Extends
${basedir}/../project.xml)


The order Maven uses is:
common-console
EAR
mobileEJB

I need the EJBs to be built before EAR.
Is there something wrong?

Thanks

PS: I use Maven 1.0.2



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


RE: Wrong processing order

Posted by Arnaud HERITIER <ah...@gmail.com>.
Did you define in your EAR project a dependency to your EJBs ?
The reactor will use it to know it should build the EJBs before the EAR.

Arnaud
 

> -----Message d'origine-----
> De : Joao Batistella [mailto:joao-p-batistella@ptinovacao.pt] 
> Envoyé : jeudi 3 novembre 2005 18:13
> À : users@maven.apache.org
> Objet : Wrong processing order
> 
> Hello.
> 
> I'm trying to build my EAR with Maven but it builds my EAR 
> before my EJBs. The processing order is wrong. 
> 
> Here is how my directory structure looks like:
> 
> - root
>   - maven.xml
>   - project.xml (default configuration)
>   - project.properties
>   - server
>     - maven.xml (it has a reactor with includes="*/project.xml")
>     - project.xml (here I have my dependencies for the server 
> side application. Extends ${basedir}/../project.xml)
>     - ear
>       maven.xml
>       project.properties
>       project.xml (EAR dependencies. Depends on mobileEJB and 
> console-common. Extends ${basedir}/../project.xml)
>     - console-common (this component is used by EJBs anda EAR)
>       - maven.xml
>       - project.xml (Extends ${basedir}/../project.xml)
>       - project.properties      
>     - ejb (directory for my EJBs)
>       - maven.xml (it has a reactor with includes="*/project.xml")
>       - project.properties
>       - project.xml (common dependencies for EJBs. Depends on 
> console-common. Extends ${basedir}/../project.xml)
>       - mobileEJB  
>         - maven.xml
>         - project.xml (no dependencies. Extends
> ${basedir}/../project.xml)
> 
> 
> The order Maven uses is:
> common-console
> EAR
> mobileEJB
> 
> I need the EJBs to be built before EAR.
> Is there something wrong?
> 
> Thanks
> 
> PS: I use Maven 1.0.2
> 
> 
> 
> ---------------------------------------------------------------------
> 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