I am trying to generate xsd out of java objects that are annotated with jaxb annotations. When executing the schemagen its generating xsd but it doesnt rename it and no namespace exists. During maven install execution, I see an warning from the plugin
[INFO] XSD post-processing: Renaming and converting XSDs.
[WARNING] SimpleNamespaceResolver contained no localNamespaceURI; aborting rename.
while debugging the jaxb2-maven plugin code, its trying to search namespace in the generated xml and I don't see that either. So namespace given in java classes are not translating to XSDs. Here is pom.xml and java classes and generated xsds for reference
I am trying to generate xsd out of java objects that are annotated with jaxb annotations. When executing the schemagen its generating xsd but it doesnt rename it and no namespace exists. During maven install execution, I see an warning from the plugin
while debugging the jaxb2-maven plugin code, its trying to search namespace in the generated xml and I don't see that either. So namespace given in java classes are not translating to XSDs. Here is pom.xml and java classes and generated xsds for reference
pom.xml
generated xsd with schema1.xsd name
package-info.java class
java classes with annotations