You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@taverna.apache.org by Stian Soiland-Reyes <st...@apache.org> on 2015/02/21 23:58:07 UTC

xsd generation - use org.jvnet.jaxb2 plugin instead

I was unable to compile taverna-language with OpenJDK 8, and got errors like:

schema_reference: Failed to read schema document 't2flow.xsd', because
'file' access is not allowed due to restriction set by the
accessExternalSchema property.


Setting this for the codehaus jaxb plugin seems to require system properties.


I resolved this by changing all the language pom

from codehaus jaxb plugin to

          <groupId>org.jvnet.jaxb2.maven2</groupId>
          <artifactId>maven-jaxb2-plugin</artifactId>
          <version>0.11.0</version>

which has a accessExternalSchema default of 'all'.


Note that some of the configuration options are different (and more powerful).

Documentation:

https://github.com/highsource/maven-jaxb2-plugin/wiki/User-Guide

plugin license: BSD 2-clause
https://github.com/highsource/maven-jaxb2-plugin/blob/master/LICENSE

-- 
Stian Soiland-Reyes
Apache Taverna (incubating)
http://orcid.org/0000-0001-9842-9718