[英]Is there an equivalent to codehaus' plugin's <xsdPathWithinArtifact> for the maven-jaxb2-plugin?
jaxb2-maven-plugin has the <xsdPathWithinArtifact>
option . jaxb2-maven-plugin具有
<xsdPathWithinArtifact>
选项 。 Is there an equivalent in maven-jaxb2-plugin? 在maven-jaxb2-plugin中有等效的东西吗? What is the recommended way to include the schema file in the produced jar?
建议在生成的jar中包括模式文件的方法是什么? I'm currently using Maven's native
<resources>
. 我目前正在使用Maven的本机
<resources>
。
Disclaimer: I'm the author of the maven-jaxb2-plugin . 免责声明:我是maven-jaxb2-plugin的作者 。
No, there is no such option in maven-jaxb2-plugin and there will not be. 不, maven-jaxb2-plugin中没有这样的选项,也不会。 Managing resources is not the concern of maven-jaxb2-plugin , there are other Maven plugins for that.
管理资源不是maven-jaxb2-plugin的关注点,还有其他Maven插件可以解决此问题。
The recommended way is exactly what you're doing - place your schemas under src/main/resources
and they will be packaged in the resulting JAR. 推荐的方法恰好是您要执行的操作-将架构放在
src/main/resources
,它们将打包在生成的JAR中。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.