Hi,
What you need is a project with modules... Create a pom.xml file with pom
packaging (<packaging>pom</packaging>) in this file, place <modules> tag
with contains all the module (your sub-project).
Regards,
Sylvain DeschĂȘnes
On 9/21/06, Neeraj Bisht <[EMAIL PROTECTED]> 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.Butwe
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?
Regards
Neeraj