I am using the schemagen
goal of jaxb2-maven-plugin
to convert Java classes to xsd.
The classes in com.example.entities
& com.example.model
should be converted & the rest of the packages ignored.
How to do this in pom.xml
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>jaxb2-maven-plugin</artifactId>
<executions>
<execution>
<id>schemagen</id>
<goals><goal>schemagen</goal></goals>
</execution>
</executions>
</plugin>