users@jaxb.java.net

[jaxb-1.x] Dependency dom4j of jaxb-xjc is missing (required for DTDs)

From: Kostis Anagnostopoulos <ankostis_at_gmail.com>
Date: Fri, 8 Sep 2006 12:57:20 +0300

Hi,

I have uploaded the jaxb-1.x jars into m2-repo_at_dev.java.net with (as
it seems) erroneous dependencies. I have forgotten to include the
dom4j dependency, as reported by
Stephan Götter:

On Thursday 07 September 2006 13:59, Stephan Götter wrote:
> ...
> 5. Then I added this option
>
> <schemaLanguage>DTD</schemaLanguage>
>
> and now I've got this error:
>
> [INFO] XJC parsing input schema(s)...
> [ERROR] XJC while parsing schemas: org.xml.sax.SAXParseException: dom4j
> is required to compile DTD. Please download it f
> rom http://www.dom4j.org/ and place it to the lib directory, then
> try again.
>
> After adding this to
>
> <dependency>
> <groupId>dom4j</groupId>
> <artifactId>dom4j</artifactId>
> <version>1.6.1</version>
> </dependency>
>
> com/sun/tools/xjc/maven2/maven-jaxb1-plugin/1.0-SNAPSHOT/maven-jaxb1-plugin
>-1.0-SNAPSHOT.pom
>
> in local repository the generation of classes worked.
> ...

There are a couple of issues now:

1. This lib is not included into jaxb-ri-1.0.6 does not include the
dom4j into the /libs dir. Is this forgotten? Is it on purpose ?

2. Is this lib required on runtime ?

3. Which jar's deps to update ?
  a) jaxb-libs ?
  b) jaxb-xjc ?
  c) maven-jaxb1-plugin ?

4. What version should the updated jar be ?
  a) 1.0.6.1 ?
  b) 1.0.6-SOMETHING ?

Regards and Thanks in Advance,
  Kostis