0
IM:JAXB2:每个命名空间创建单独的directorie使用maven-JAXB2-插件从1.0xsd文件生成
<plugin> <groupId>org.jvnet.jaxb2.maven2</groupId> <artifactId>maven-jaxb2-plugin</artifactId> <executions> <execution> <id>generate-modelesV1.0</id> <goals> <goal>generate</goal> </goals> <configuration> <schemaDirectory>src/main/resources/schemas/modeles</schemaDirectory> <generatePackage>fr.recouv.scribe.core.jaxb.pojo</generatePackage> <schemaIncludes> <include>modeles-v1.0.xsd</include> </schemaIncludes> </configuration> </execution> </executions> </plugin>
不幸的是所有的类都在同一个目录。如果可能,我想为每个命名空间提供一个目录我已经看过在线文档,但没有成功。
我在问,因为在未来我们将有一个新版本的xsd(1.1)&我们希望保留retrocompatibility。具有相同名称但具有不同名称空间的每个元素都将存在于其自己的目录中。
感谢了很多人! – mada 2010-10-11 10:09:35