maven-jaxb2-plugin只执行执行的第一次出现

时间:2016-08-19 05:11:05

标签: java xsd jaxb maven-jaxb2-plugin

        <plugin>
            <!-- <groupId>com.sun.tools.xjc.maven2</groupId>
            <artifactId>maven-jaxb-plugin</artifactId>
            <version>1.1.1</version> -->
            <groupId>org.jvnet.jaxb2.maven2</groupId>
            <artifactId>maven-jaxb2-plugin</artifactId>
            <version>0.12.3</version>
            <executions>
                <!-- <execution>
                    <id>kyc</id>
                    <phase>generate-sources</phase>
                    <goals>
                        <goal>generate</goal>
                    </goals>
                    <configuration>
                        <generatePackage>net.nationalpayment.core.services.external.exp</generatePackage>
                        <schemaDirectory>src/main/resources/kyc/</schemaDirectory>
                        <verbose>true</verbose>
                    </configuration>
                </execution> -->
                <!-- <execution>
                    <id>push-notifications</id>
                    <phase>generate-sources</phase>
                    <goals>
                        <goal>generate</goal>
                    </goals>
                    <configuration>
                        <generatePackage>com.bancbox.schema.notifications.push</generatePackage>
                        <schemaDirectory>src/main/resources/push-notifications/</schemaDirectory>
                        <includeBindings>
                            <includeBinding>bindings.xjb</includeBinding>
                        </includeBindings>
                        <extension>true</extension>
                        <verbose>true</verbose>
                    </configuration>
                </execution> -->
                <execution>
                    <id>activity-status</id>
                    <phase>generate-sources</phase>
                    <goals>
                        <goal>generate</goal>
                    </goals>
                    <configuration>
                        <generatePackage>com.bancbox.schema.notifications.activitystatus</generatePackage>
                        <schemaDirectory>src/main/resources/activity-status/</schemaDirectory>
                        <!-- <includeBindings>
                                     <includeBinding>bindings.xjb</includeBinding>
                        </includeBindings>-->
                        <extension>true</extension>
                        <verbose>true</verbose>
                    </configuration>
                </execution>
            </executions>
        </plugin>

我之前在项目中使用com.sun.tools.xjc.maven2。我正在尝试迁移到org.jvnet.jaxb2.maven2。但是没有为所有执行标记生成Java文件。只有第一个执行标记可以保留所有其他标记。当我通过评论所有剩余的其他人时只保留一个执行标记。它一个接一个地适用于所有这些。我们如何使它适用于所有执行标记实例。

0 个答案:

没有答案