I think your dependencies are using an old style XML format..  Look at this
example:

<dependency>
      <groupId>findbugs</groupId>
      <artifactId>findbugs</artifactId>
      <version>0.6.3</version>
      <url>http://www.cs.umd.edu/~pugh/java/bugs/</url>
 <properties>
                          <war.bundle>true</war.bundle>
                  </properties>
    </dependency>
    <dependency>
      <groupId>findbugs</groupId>
      <artifactId>findbugs-ant</artifactId>
      <version>0.6.3</version>
      <url>http://www.cs.umd.edu/~pugh/java/bugs/</url>
 <properties>
                          <war.bundle>true</war.bundle>
                  </properties>
    </dependency>

Eric

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Friday, August 08, 2003 2:51 PM
To: Maven Users List
Subject: Maven fails to include multiple <dependency> of the same ID in
a War


Dear all,

I want to create a WAR application that contains some oracle jars.
However it seems maven only takes the first <dependency> of the same Id.


The net effects are:
- missing JAR in the generated WAR.
- missing information in the "dependencies" web page

Here is a sample project.xml snip:

    <dependency>
            <id>oracle-jdbc</id>
            <version>9i</version>
            <jar>classes12.jar</jar>
                  <properties>
                          <war.bundle>true</war.bundle>
                  </properties>
    </dependency>
    <dependency>
            <id>oracle-jdbc</id>
            <version>9i</version>
            <jar>nls_charset.jar</jar>
                  <properties>
                          <war.bundle>true</war.bundle>
                  </properties>
    </dependency>


Of course the jars exist in the correct location

Any idea?

Thanks,
Didier.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to