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

Reply via email to