jaxb-episode

JAXB separate episodes with annox customizations fails : SAXParseException2

泄露秘密 提交于 2019-12-20 03:07:43
问题 I have 2 maven modules. First one contains only a xsd schema to generate base POJO classes. Second on contains a xsd schema that imports first one with a catalog file and generate new POJO classes. Both generation works. Now, I add annotations to both xsd files with annox (Swagger annotations). First module compilation succeeded but seconds module compilation fails with and exceptions : [ERROR] Error while generating code.Location : com.sun.istack.SAXParseException2; systemId: jar:file:/C:

xjc fails on imported schema when using episodes due to property customization

怎甘沉沦 提交于 2019-12-11 17:21:13
问题 I have two schemas a.xsd and b.xsd . b imports a . On one element, a customizes the JAXB compilation. a.xsd: <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:jaxb="http://java.sun.com/xml/ns/jaxb" targetNamespace="a" xmlns:a="a" jaxb:version="2.0" elementFormDefault="qualified"> <xsd:element name="a" type="a:A1Type"/> <xsd:complexType name="A1Type"> <xsd:sequence> <xsd:element name="a" type="xsd:string"> <xsd:annotation> <xsd:appinfo> <jaxb:property name="a0"></jaxb:property> <

JAXB episode compilation with include does not work

徘徊边缘 提交于 2019-12-10 13:43:23
问题 I have 2 schemas A, B. I'm reusing some A elements in B. I do not use namespaces. I'm using <groupId>org.jvnet.jaxb2.maven2</groupId> <artifactId>maven-jaxb2-plugin</artifactId> <version>0.9.0</version> I have have defined an inclusion of schema A in schema B as: <xs:include schemaLocation="classpath:my.schema.A.xsd"/> and the catalog as REWRITE_SYSTEM "classpath:my.schema.A.xsd" "maven:my.schema:schema-a!/A.xsd" The jaxb configuration goes: <configuration> <generatePackage>my.schema.b<

Resolving type definitions from imported schema in XJC fails

久未见 提交于 2019-12-03 08:56:17
问题 I've got this API using JAXB to conveniently use object models, generated from XML Schemas by the XJC (XML-to-Java) compiler, through named references. It abstracts the creation of JAXB contexts and finding ObjectFactory methods away by all sorts of background magic and reflection. The basic gist of it is that you'd always define one general schema, and then any number (may also be 0) of schemas "extending" that general one, each resulting in its own data model. The general schema carries the

maven-jaxb2-plugin episode of same project in Maven, possible?

心已入冬 提交于 2019-12-02 04:01:59
问题 I have a basic.xsd and two other A.xsd and B.xsd . A.xsd and B.xsd get converted into two different java packages, therefore I need two Maven executions of the same plugin. Both XSDs refer to basic.xsd for some shared classes. If basic.xsd would come from a different project I could solve this problem really nicely through using episodes to prevent duplicate classes. But how can I refer to the current project? My first execution of the plugin is to generate only classes from basic.xsd into

maven-jaxb2-plugin episode of same project in Maven, possible?

廉价感情. 提交于 2019-12-02 00:28:54
I have a basic.xsd and two other A.xsd and B.xsd . A.xsd and B.xsd get converted into two different java packages, therefore I need two Maven executions of the same plugin. Both XSDs refer to basic.xsd for some shared classes. If basic.xsd would come from a different project I could solve this problem really nicely through using episodes to prevent duplicate classes. But how can I refer to the current project? My first execution of the plugin is to generate only classes from basic.xsd into its own java namespace. After that the executios of A.xsd and B.xsd should know about the stuff generated

JAXB separate episodes with annox customizations fails : SAXParseException2

≯℡__Kan透↙ 提交于 2019-12-01 23:09:41
I have 2 maven modules. First one contains only a xsd schema to generate base POJO classes. Second on contains a xsd schema that imports first one with a catalog file and generate new POJO classes. Both generation works. Now, I add annotations to both xsd files with annox (Swagger annotations). First module compilation succeeded but seconds module compilation fails with and exceptions : [ERROR] Error while generating code.Location : com.sun.istack.SAXParseException2; systemId: jar:file:/C:/commons-0.0.1-SNAPSHOT.jar!/Commons.xsd; lineNumber: 15; columnNumber: 36; compiler was unable to honor