cxf-xjc-plugin

MojoExecutionException when generate sources cxf-xjc-plugin:3.3.0 java11

十年热恋 提交于 2021-02-08 09:51:15
问题 I try to generate java classes from xsd in a maven project using cxf-xjc-plugin. But when I try to generate the sources, I have an error. I tried to use another version of the plugin: 3.2.3 but it didn't help. <plugin> <groupId>org.apache.cxf</groupId> <artifactId>cxf-xjc-plugin</artifactId> <version>3.3.0</version> <executions> <execution> <id>generate-sources</id> <phase>generate-sources</phase> <goals> <goal>xsdtojava</goal> </goals> <configuration> <xsdOptions> <xsdOption> <xsdDir>$

How to generate JAVA classes from XSD hierarchy without namespace

旧时模样 提交于 2021-01-29 06:05:27
问题 I have a set of XSD files from a client. I need to generate java classes from those. One of the XSDs imports another without namespace. That fails the mvn generate-sources with an error: src-resolve: Cannot resolve the name 'faultstring' to a(n) 'element declaration' component. org.xml.sax.SAXParseException; systemId: file:/src/main/resources/Common/SOAP_Fault_v4_0_0.xsd I am using openjdk 11 with version 3.3.0 of cxf-xjc-plugin to generate classes. Attached is the project. I have tried to

JAXB fails to generate Java classes for XBRL

守給你的承諾、 提交于 2019-12-01 14:42:37
问题 I'm trying to generate Java classes for types defined in XBRL. My build process is based on Maven 2, and here are my trials. I only paste the build section, which relies on some properties: package is the name of my target package catalog is the path and file name of the catalog. because I have no internet connection, I have amny entries, but I think those are always necessary -- TR9401 for XBRL resources -- SYSTEM http://www.xbrl.org/2003/XLink http/www.xbrl.org/2003/xl-2003-12-31.xsd SYSTEM

JAXB marshalling for BigDecimal using fractionDigits

馋奶兔 提交于 2019-12-01 04:47:18
So here's my problem. I'm given an XSD to which my generated XML file should comply. Using the org.apache.cxf.cxf-xjc-plugin maven plugin and an external binding file I generate the source code. But when I'm trying marshall my object the generated XML doesn't meet my requirements. My XSD contains the following: <xsd:element maxOccurs="1" minOccurs="0" name="amount"> <xsd:simpleType> <xsd:restriction base="xsd:decimal"> <xsd:totalDigits value="13" /> <xsd:fractionDigits value="2" /> </xsd:restriction> </xsd:simpleType> </xsd:element> ... <xsd:element maxOccurs="1" minOccurs="0" name="rate">

JAXB marshalling for BigDecimal using fractionDigits

荒凉一梦 提交于 2019-12-01 02:43:50
问题 So here's my problem. I'm given an XSD to which my generated XML file should comply. Using the org.apache.cxf.cxf-xjc-plugin maven plugin and an external binding file I generate the source code. But when I'm trying marshall my object the generated XML doesn't meet my requirements. My XSD contains the following: <xsd:element maxOccurs="1" minOccurs="0" name="amount"> <xsd:simpleType> <xsd:restriction base="xsd:decimal"> <xsd:totalDigits value="13" /> <xsd:fractionDigits value="2" /> </xsd