You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Danny Dang <da...@nova-hub.com> on 2006/04/25 07:28:17 UTC

main webapp include submodule's webapp - how to archive?

Dear all,

I would like to use maven for our new proj. The project has many modules and
we intend to assign one developer to do one module, from front-end ->
bis-logic -> DB. Therefore, we intend to have this structure

main-dir 
|--modules
   |--module1
      |--app -> this contains all biz logic and back end stuff
         |--src
            |--main
            |--test
         pom.xml
      |--web -> this contains all classes used by webcontent
         |--src
            |--main
            |--test
         pom.xml
      |--WebContent
         |--WEB-INF
      pom.xml
   |--module2
      |--app
         |--src
            |--main
            |--test
         pom.xml
      |--web
         |--src
            |--main
            |--test
         pom.xml
      |--WebContent
         |--WEB-INF
      pom.xml
   |--MainWebContent -> this module will include all other module webcontent
to generate only one war file
      |--WebContent
         |--WEB-INF
      pom.xml

I wonder if this is the good structure. If it's good, then how to config
maven to generate only one war file included all sub modules' webconten? If
it's not good, then how to archive this?

Thanks in advance

Danny Dang


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


Re: main webapp include submodule's webapp - how to archive?

Posted by Alexandre Poitras <al...@gmail.com>.
Well I think your structure is good but it is going to output a war
archive for every web module. But you can package more than one war
archive in a ear archive but I don't see any problem.

On 4/25/06, Danny Dang <da...@nova-hub.com> wrote:
> Dear all,
>
> I would like to use maven for our new proj. The project has many modules and
> we intend to assign one developer to do one module, from front-end ->
> bis-logic -> DB. Therefore, we intend to have this structure
>
> main-dir
> |--modules
>    |--module1
>       |--app -> this contains all biz logic and back end stuff
>          |--src
>             |--main
>             |--test
>          pom.xml
>       |--web -> this contains all classes used by webcontent
>          |--src
>             |--main
>             |--test
>          pom.xml
>       |--WebContent
>          |--WEB-INF
>       pom.xml
>    |--module2
>       |--app
>          |--src
>             |--main
>             |--test
>          pom.xml
>       |--web
>          |--src
>             |--main
>             |--test
>          pom.xml
>       |--WebContent
>          |--WEB-INF
>       pom.xml
>    |--MainWebContent -> this module will include all other module webcontent
> to generate only one war file
>       |--WebContent
>          |--WEB-INF
>       pom.xml
>
> I wonder if this is the good structure. If it's good, then how to config
> maven to generate only one war file included all sub modules' webconten? If
> it's not good, then how to archive this?
>
> Thanks in advance
>
> Danny Dang
>
>
> ---------------------------------------------------------------------
> 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