I am trying to generate beans from xsd using the maven plugin jaxb2-maven-plugin plugin, however every time the beans are created, I get the following warning. Note that the beans result works. Does anyone know why this is happening?
--snip--
[INFO] task-segment: [deploy]
[INFO] ------------------------------------------------------------------------
[INFO] [jaxb2:xjc {execution: default}]
[INFO] Generating source...
[INFO] parsing a schema...
[INFO] compiling a schema...
[WARNING] null[-1,-1]
org.xml.sax.SAXParseException: generating code
at com.sun.tools.xjc.ErrorReceiver.debug(ErrorReceiver.java:113)
at com.sun.tools.xjc.Driver.run(Driver.java:315)
at org.codehaus.mojo.jaxb2.XjcMojo.execute(XjcMojo.java:301)
at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
--snip--
This is the config in the pom.xml file
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>jaxb2-maven-plugin</artifactId>
<version>1.2</version>
<executions>
<execution>
<goals>
<goal>xjc</goal>
</goals>
</execution>
</executions>
<configuration>
<packageName>com.some.package.jaxb</packageName>
<verbose>true</verbose>
</configuration>
</plugin>
Although I think I'm technically using 2.0.3 (not 2.0), here is a line of code that runs this problem:
http://grepcode.com/file/repo1.maven.org/maven2/com.sun.xml.bind/ jaxb-xjc / 2.0 / com / sun / tools / xjc / Driver.java # 315
** If I set verbose to false in pom, I do not get a warning. Is this just a sloppy registration mechanism? **
thank
- matthias