jaxb2-maven-plugin only executing first execution

前端 未结 1 1824
旧时难觅i
旧时难觅i 2021-01-17 12:23

I\'m trying to convert multiple XSDs to POJOs in different packages using JAXB using the jaxb-maven plugin. I\'ve set it up to use multiple execution blocks, the first execu

相关标签:
1条回答
  • 2021-01-17 12:28

    Fixed it by upgrading to version 1.6

    <plugin> 
        <groupId>org.codehaus.mojo</groupId> 
        <artifactId>jaxb2-maven-plugin</artifactId> 
        <version>1.6</version> 
    </plugin>
    

    and

    <!-- JAXB GENERATOR PLUGIN -->
    <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>jaxb2-maven-plugin</artifactId>
        <version>1.6</version>
        ....
    

    Fixed in version 1.6, in version 1.5 all execution blocks were using the same staleFile: http://jira.codehaus.org/browse/MJAXB-8

    0 讨论(0)
提交回复
热议问题