I have a child project that extends a parent.  The child wants most of the
setup from parent except that some dependencies.  Is it possible to override
some dependencies?

E.g. In parent,

<dependencies>
  <dependency>
      <id>xerces</id>
      <version>2.2.1</version>
      <url>http://xml.apache.org/xerces2-j/</url>
    </dependency>
  <dependency>
      <id>childDoesNotWant</id>
      <version>1.0</version>
      <url>http://www.foo.com/</url>
    </dependency>
</dependencies>

In child, I want to use an older version of xerces, ignore one jar, and add
more child-specific jars, like the following:

<dependencies>
  <dependency>
      <id>xerces</id>
      <version>2.0.2</version>
      <url>http://xml.apache.org/xerces2-j/</url>
    </dependency>
  <dependency>
      <id>childDoesNotWant</id>
      <!-- something like the following -->
      <properties>
        <ignore>true</ignore>
      <properties>
    </dependency>
  <dependency>
      <id>childSpecific</id>
      <version>2.0</version>
      <url>http://www.foo.com/</url>
    </dependency>
</dependencies>

--
Willie Vu


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

Reply via email to