1
早上好大家, 我试图在我的应用程序中使用mojo jaxb2 maven插件,但是无论何时架构得到正确创建,在相同的文件夹中它会生成整个类(作为。类)。 我会说,出于某种原因,maven /编译器正在/ schemas /文件夹中创建输出类。 关键是我想输出将在其他项目中使用的* .xsd文件。 这里是从我的POM的摘录:Mojo schemagen maven插件错误地生成类
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>jaxb2-maven-plugin</artifactId>
<version>1.5</version>
<executions>
<execution>
<phase>generate-resources</phase>
<id>schemagen</id>
<goals>
<goal>schemagen</goal>
</goals>
<configuration>
<includes>
<include>com/delagelanden/rijee6/domain/*.java</include>
</includes>
<outputDirectory>${project.build.directory}/schemas</outputDirectory>
<verbose>true</verbose>
</configuration>
</execution>
</executions>
</plugin>
</plugins>