> -----Original Message----- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Sent: Thursday, June 15, 2006 7:44 AM > To: users@maven.apache.org > Subject: common jars between modules in EAR > > I declared in ear's pom: > * the webModule simple_war and > * the javaModule common_jar > They are also declared as dependencies. > In war's pom, the jar has being declared as provided dependency. >
This is your problem. Remove the scope so that it becomes a compile dependency. You will then need to exclude the jar from WEB-INF/lib. The WAR 2.0 plugin does not support excluding jars from WEB-INF/lib due to issue MWAR-39. You will need to use 2.0-beta-2. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]