In your dependency declaration, did you include <type>war</type> for the child1 dep in the child2 pom? Or how are you declaring the dependency?
Perhaps show us your pom(s). Wayne On 11/26/07, Anand Rathi <[EMAIL PROTECTED]> wrote: > Hi Juven, > I removed child1 jar dependency and only kept child1 war dependency but while > building child2 project, it is still expanding child1 jar file instead of > child1 war file. Also it is picking up 'child1-1.0-SNAPSHOT.jar' from > 'child1\target' folder instead of repository. This is happening only in > multi-module build environment. If I build child2 seperately, it is building > successfully. > > Following message is shown in log: > [DEBUG] Processing: child1-1.0-SNAPSHOT.war > [INFO] Expanding: D:\temp\child1\target\child1-1.0-SNAPSHOT.jar into > D:\temp\child2\target\war\work\child1-1.0-SNAPSHOT > > thanks, > Anand > > > ----- Original Message ---- > From: Juven Xu <[EMAIL PROTECTED]> > To: Maven Users List <[email protected]> > Sent: Tuesday, 27 November, 2007 7:01:59 AM > Subject: Re: Dependency issue (war and jar) in multimodule project > > Hi, Anand: > > If child2 has a dependency on child1 war, I think you don't need to make > dependency on child1 jar. Cause all the xml file and class file will be > inherited. > > Thanks, > Juven > > On Nov 26, 2007 3:34 PM, Anand Rathi <[EMAIL PROTECTED]> wrote: > > > Hi, > > > > I have a multimodule project as shown below: > > - parent (pom) > > - child1 (war) > > - child2 (war) > > > > child2 project has a dependency on child1 jar as well as war. This is > > required because child1 war contains some xml files which I need at the > > child2 war creation time. > > > > I am building this project from parent folder using 'mvn clean install' > > command. It builds child1 module successfully and installs jar as well as > > war in repository. > > > > But while building child2 module, it fails because while expanding war > > files, it is expanding child1 jar file instead of child1 war file. > > > > Following message shown in log file > > [DEBUG] Processing: child1-1.0-SNAPSHOT.war > > [INFO] Expanding: D:\temp\child1\target\child1-1.0-SNAPSHOT.jar into > > D:\temp\child2\target\war\work\child1-1.0-SNAPSHOT > > > > thanks, > > Anand > > > > > > Chat on a cool, new interface. No download required. Go to > > http://in.messenger.yahoo.com/webmessengerpromo.php > > > Download prohibited? No problem. CHAT from any browser, without > download. Go to http://in.messenger.yahoo.com/webmessengerpromo.php/ --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
