I am having issues generating from my XSD files from maven, it does
not seem to be using my xml catalog. Here is my maven plugin call:
<plugin>
<groupId>com.sun.tools.xjc.maven2</groupId>
<artifactId>maven-jaxb-plugin</artifactId>
<executions>
<execution>
<goals>
<goal>generate</goal>
</goals>
</execution>
</executions>
<configuration>
<catalog>src/main/resources/META-INF/jax-ws-catalog.xml</catalog>
<schemaDirectory>
src/main/resources
</schemaDirectory>
<includeSchemas>
<includeSchema>myschema.xsd</includeSchema>
</includeSchemas>
<generateDirectory>
${basedir}/target/generated-sources
</generateDirectory>
<strict>true</strict>
<verbose>true</verbose>
</configuration>
</plugin>
Here is my catalog file:
<?xml version="1.0"?>
<catalog prefer="system" xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog">
<rewriteURI rewritePrefix="classpath:external.xsd"
uriStartString="
http://external.com/external.xsd"/>
</catalog>
Getting error:
[ERROR] src-resolve: Cannot resolve the name 'EXTERNAL:source' to a(n)
'element declaration' component.
Any ideas what I might be doing incorrectly would be appreciated.
--
------------
Success is the abiilty to go from one failure to another with no loss
of enthusiasm. - Winston Churchill