[英]StaleFile element not allowed with jaxb2 version 2
我正在將我們的 jaxb2-maven-plugin 從 1.5 版升級到 2.5 版。 更改 schemaDirectory 和 schemaFiles 以使用源標記后,它會像以前一樣構建和工作。
但是 staleFile 標記在 intellij 中被突出顯示為錯誤,並顯示消息“此處不允許使用元素 staleFile”
我無法在 jaxb 的 2+ 版中找到有關如何處理此標簽的任何文檔
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>jaxb2-maven-plugin</artifactId>
<version>2.5.0</version>
<configuration>
<clearOutputDir>false</clearOutputDir>
<extension>true</extension>
</configuration>
<executions>
<execution>
<id>company-binding-directAuthorizeReq</id>
<goals>
<goal>xjc</goal>
</goals>
<configuration>
<sources>
<source>${company.schema.location}/directAuthorizeReq.xsd</source>
</sources>
<outputDirectory>${generated.source.location}</outputDirectory>
<packageName>${company.model.package}.directAuthorizeReq</packageName>
<staleFile>${project.build.directory}/jaxb2/.jaxb-staleFlag-directAuthorizeReq</staleFile>
</configuration>
</execution>
</executions>
</plugin>
有一個名為<staleFileDirectory>
的新元素。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.