I have a maven-based build script that runs jaxb2-maven-plugin (schemagen) to generate XSD from Java classes. I have done something wrong and it won't generate it.
The project is very complex and it is difficult to re-create in console the exact command line.
In my .pom file I just have
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>jaxb2-maven-plugin</artifactId>
<version>1.6</version>
<executions>
<execution>
<id>schemagen</id>
<goals>
<goal>schemagen</goal>
</goals>
</execution>
</executions>
<configuration>
<includes>
<include>**/*.java</include>
</includes>
</configuration>
</plugin>
What options I may use to command schemagen / plugin to show what was the cause of error on console?
Answer to your question
Please find the Domain Object user and I have generated XSD schema.
POM file
Maven Goals as
Output on my IDE, please refer below figure.