Does using an exclusion on a dependency of a dependency mean that if I
include a dependency for that jar myself that it won't be used?  For
example, if I have:

  <dependencies>
    <dependency>
      <groupId>picocontainer</groupId>
      <artifactId>picocontainer</artifactId>
      <version>1.2</version>
    </dependency>
 </dependencies>

This works fine, I have pico in my classpath.  However, if I try to add
XDoclet:

  <dependencies>
    <dependency>
      <groupId>picocontainer</groupId>
      <artifactId>picocontainer</artifactId>
      <version>1.2</version>
    </dependency>
    <dependency>
      <groupId>xdoclet</groupId>
      <artifactId>xdoclet</artifactId>
      <version>2.0.4</version>
      <exclusions>
        <exclusion>
          <groupId>picocontainer</groupId>
          <artifactId>picocontainer</artifactId>
        </exclusion>
        <exclusion>
          <groupId>dom4j</groupId>
          <artifactId>dom4j</artifactId>
        </exclusion>
        <exclusion>
          <groupId>freemarker</groupId>
          <artifactId>freemarker</artifactId>
        </exclusion>
        <exclusion>
          <groupId>generama</groupId>
          <artifactId>qdox</artifactId>
        </exclusion>
        <exclusion>
          <groupId>groovy</groupId>
          <artifactId>groovy-all</artifactId>
        </exclusion>
        <exclusion>
          <groupId>xpp3</groupId>
          <artifactId>xpp3</artifactId>
        </exclusion>
      </exclusions>
    </dependency>
    <dependency>
      <groupId>xdoclet-plugins</groupId>
      <artifactId>xdoclet-plugin-hibernate</artifactId>
      <version>1.0.3</version>
      <exclusions>
        <exclusion>
          <groupId>xdoclet-plugins</groupId>
          <artifactId>xdoclet-plugin-qtags</artifactId>
        </exclusion>
      </exclusions>
    </dependency>
  </dependencies>

My picocontainer dependency is ignored (excluded?).  It won't work without
the exclude and it won't work with the exclude.  It seems I'm screwed.

Reply via email to