Questions tagged [schemagen]
51 questions
0
votes
1 answer
JAXB2 schemagen syntax error when passing from JDK7 to 8
I'm trying to build a Confluence plugin with Java 8. It builds correctly with Java 7. It uses the jaxb2-maven-plugin, where one of the defined executions with goal "schemagen" and phase "generate-resources" is throwing this error:
[ERROR] Failed to…

rariasyacupo
- 1
- 2
0
votes
1 answer
how to avoid inheritance when using JAXB schemagen?
I'm using JAXB annotations and schemagen maven plugin to create an xsd. I need to process that xsd with wsdl2py to create a Python's client. But as I have inheritance in my classes, schemagen creates something like this:
…

Neuquino
- 11,580
- 20
- 62
- 76
0
votes
1 answer
Why is schemagen not able to generate java class?
I want to use the relation ontology in jena . I know it can be imported and tried schemagen for generating Java classes that contain the constants from ontologies and RDF schemas. But unfortunately it gives me an empty file after being created. So ,…

riya
- 29
- 4
0
votes
1 answer
JAXB schemagen returns 1 as error code when processing class with Jackson attribute
So I was trying to figure it for a while. I have a Java class with JAXB annotations:
import javax.xml.bind.annotation.XmlRootElement;
@XmlRootElement
public class Book {
private String title;
public String getTitle() {
return title;
…

Sebastian K
- 6,235
- 1
- 43
- 67
0
votes
1 answer
What is default namespace for public enum type?
I have a class which contains inner enum type.
@XmlRootElement
public class Address {
@XmlEnum
@XmlType(name="addressType")
public static enum Type {
}
}
Here is my package-info.java.
@XmlSchema(
attributeFormDefault =…

Jin Kwon
- 20,295
- 14
- 115
- 184
0
votes
2 answers
Execute Schemagen (Jena) from the command line / classpath setting
I am learning the Jena API and I want to use Schemagen to create the classes that look like in the package com.hp.hpl.jena.vocabulary for my own vocabulary;
I donwloaded Jena at…

SabineA
- 81
- 1
- 1
- 4