You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by Neeraj Bisht <ne...@daffodildb.com> on 2006/09/20 15:05:51 UTC

Propose structure for multiproject

 Hello all,

Please help to get out of the following confusions:

I am having many projects which may be dependent on each other or not.But we
need to make one ear having all the archives file made of all projects.
In one project, we can have one jar,jar+war,jar+war+har,or some other
application specific archives like if har not supported by other applciation
servers.
These all projects are different cvs modules in the following structure but
with no maven files(also we can't place file there) and
test contains the testcases for all sub projects(object/services/UI) of one
project/CVS module.

Following is the structure:

 Project1
   src
    objects(har)
      java
      resource

    services(jar)
      java
      resource

    UI(war)
      java
      resource
      webapps

   test


So two problems:
1)Is it possible that we place our maven scripts somewhere at our system and
projects are somewhere else,
  Can maven build all subprojects,make war,har,jar etc from that location
and then package all of them to make ear?
2)Now i want ot run the testcases after building the project,not after
making war/har/jar.I know if we place test in subproject thjen before making
any archive it will run the testcases
but ours is different case.Our testcases are in Main project not in
different subprojects,so how can we achieve it?

Re: Propose structure for multiproject

Posted by Wayne Fay <wa...@gmail.com>.
1. Yes, you will have fun configuring the complete paths in every pom.

2. You will need to use filesets with includes/excludes to specify
which files to use for each test, and include that in the poms
specified in #1.

This is going to be complicated and troublesome for you. It is far
better (and easier!) to reorganize the project to "fit" Maven than to
force Maven to fit your project, imho.

Wayne

On 9/20/06, Neeraj Bisht <ne...@daffodildb.com> wrote:
>  Hello all,
>
> Please help to get out of the following confusions:
>
> I am having many projects which may be dependent on each other or not.But we
> need to make one ear having all the archives file made of all projects.
> In one project, we can have one jar,jar+war,jar+war+har,or some other
> application specific archives like if har not supported by other applciation
> servers.
> These all projects are different cvs modules in the following structure but
> with no maven files(also we can't place file there) and
> test contains the testcases for all sub projects(object/services/UI) of one
> project/CVS module.
>
> Following is the structure:
>
>  Project1
>    src
>     objects(har)
>       java
>       resource
>
>     services(jar)
>       java
>       resource
>
>     UI(war)
>       java
>       resource
>       webapps
>
>    test
>
>
> So two problems:
> 1)Is it possible that we place our maven scripts somewhere at our system and
> projects are somewhere else,
>   Can maven build all subprojects,make war,har,jar etc from that location
> and then package all of them to make ear?
> 2)Now i want ot run the testcases after building the project,not after
> making war/har/jar.I know if we place test in subproject thjen before making
> any archive it will run the testcases
> but ours is different case.Our testcases are in Main project not in
> different subprojects,so how can we achieve it?
>
>

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