users@jaxb.java.net

error with jaxb maven2 plugin and DTD

From: Monika <gambierca_at_yahoo.ca>
Date: Thu, 26 Jul 2007 18:18:19 -0700 (PDT)

Hello,

I am trying to use the maven2 jaxb plugin at
https://jaxb.dev.java.net/jaxb-maven2-plugin/ to
generate java from a dtd.

This is the configuration in my pom:

                <plugin>
                       
<groupId>com.sun.tools.xjc.maven2</groupId>
                       
<artifactId>maven-jaxb-plugin</artifactId>
                        <version>1.0</version>
                        <executions>
                          <execution>
                            <goals>
                              <goal>generate</goal>
                            </goals>
                          </execution>
                        </executions>
                        <configuration>
                          <args>-dtd</args>
                          <includeSchemas>
                           
<includeSchema>**/*.dtd</includeSchema>
                          </includeSchemas>
                          <excludeSchemas>
                           
<excludeSchema>**/*.xsd</excludeSchema>
                          </excludeSchemas>
                          <includeBindings>
                           
<includeBinding>*.xjb</includeBinding>
                          </includeBindings>
                        </configuration>
                </plugin>

And this is the error I am getting:

includeSchemas: 1 : **/*.dtd
[INFO] Compiling file:/src/main/resources/foo.dtd
[WARNING] [WARNING] Are you trying to compile DTD?
Support for DTD is experimental. You may enable it by
using the -dtd option.
[WARNING] unknown location
[WARNING]
[ERROR] [ERROR] The markup in the document preceding
the root element must be well-formed.
[ERROR] line 4 of file:/src/main/resources/foo.dtd


Can anybody suggest what I'm doing wrong? Thanks.


       
____________________________________________________________________________________
Boardwalk for $500? In 2007? Ha! Play Monopoly Here and Now (it's updated for today's economy) at Yahoo! Games.
http://get.games.yahoo.com/proddesc?gamekey=monopolyherenow