If you're placing them all in the same ear, mark the dependencies as
provided and make sure the common-module is defined in your ear project.

If not, each war project would list the common module as a dependency. 

You have a common-module/src/main/webapp folder as well - do you intend
to share servlets and jsp pages across them too?

kris bravo


-----Original Message-----
From: Srinivas Pavani [mailto:[EMAIL PROTECTED] 
Sent: Thursday, July 13, 2006 2:51 PM
To: users@maven.apache.org
Subject: m2 multiple war files with some common code


Can someone shed some light on how to setup maven2 to allow sharing some
common code across multiple war files? Given below is an example of how
I would like to setup multiple  modules but I am not sure how the war
generation can occur when webapp contents from common-module are needed
for war-module1, war-module2 and war-module3.

/parent-project
/parent-project/common-module
/parent-project/common-module/src/main/java
/parent-project/common-module/src/main/resources
/parent-project/common-module/src/main/webapp                          

/parent-project/war-module1
/parent-project/war-module1/src/main/java
/parent-project/war-module1/src/main/resources
/parent-project/war-module1/src/main/webapp

/parent-project/war-module2
...

/parent-project/war-module3
...




--
View this message in context:
http://www.nabble.com/m2-multiple-war-files-with-some-common-code-tf1939
224.html#a5314384
Sent from the Maven - Users forum at Nabble.com.


---------------------------------------------------------------------
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