I have a question according to any jaxb2 plugins for maven. I want to generate sources from XSD schema. Normally if I run xjc from command line xjc generates all the sources according to their namespaces (like core:AccountType to core/AccountType.java etc.)
cmd> xjc PublEnvlp.xsd
I want to use same feature using some of maven plugins but it creates all java classes to one directory so there are duplication conflicts. Is there any flag, plugin, feature, ... to make maven work same as command line xjc command? I am using code below in maven:
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>jaxb2-maven-plugin</artifactId>
<version>1.3.1</version>
<executions>
<execution>
<id>xjc</id>
<goals>
<goal>xjc</goal>
</goals>
<configuration>
<packageName>package.name</packageName>
<schemaDirectory>src/main/resources/DataArchitecture/XML/RDF/Physical_Xml</schemaDirectory>
<forceRegenerate>true</forceRegenerate>
<verbose>true</verbose>
</configuration>
</execution>
</executions>