Hello

This is important for me, so don't ignore if you can help!!

There are xml-apis dependencies in commons-digester and commons-modeler
poms on ibiblio (for example).

When do I need them?

When I run Maven with Java 1.5 or 1.4, I have all javax.xml.* classes in 
rt.jar. 
So I don't need additional (endorsed) library.
It would be needed when building with JDK 1.3, but can Maven be run
with this JDK? Isn't this version too old? 

I'm preparing poms for Tomcat 5.5.15 artifacts. 
Some of them depend on commons-modeler:commons-modeler:1.1.

commons-modeler:commons-modeler:1.1 depends on:
- commons-digester:commons-digester:1.2
- xml-apis:xml-apis:2.0.2
- ... others...

commons-digester:commons-digester:1.2 depends on:
- xml-apis:xml-apis:1.0.b2
- ...others...

Tomcat has no xml-apis.jar in its distribution. I don't know if
it can run on JDK 1.3. Maybe not.

So should I exclude xml-apis dependencies in Tomcat poms:

    <dependency>
      <groupId>commons-modeler</groupId>
      <artifactId>commons-modeler</artifactId>
      <version>1.1</version>
      <exclusions>
        <exclusion>
          <groupId>xml-apis</groupId>
          <artifactId>xml-apis</artifactId>
        </exclusion>
      </exclusions>
    </dependency>

or not:

    <dependency>
      <groupId>commons-modeler</groupId>
      <artifactId>commons-modeler</artifactId>
      <version>1.1</version>
    </dependency>

To exclude or not to exclude, that is the question ;-)))

Greg

Reply via email to