Search code examples
jaxbxjcmaven-jaxb2-plugin

Is there an equivalent to codehaus' plugin's <xsdPathWithinArtifact> for the maven-jaxb2-plugin?


jaxb2-maven-plugin has the <xsdPathWithinArtifact> option. Is there an equivalent in maven-jaxb2-plugin? What is the recommended way to include the schema file in the produced jar? I'm currently using Maven's native <resources>.


Solution

  • Disclaimer: I'm the author of the .

    No, there is no such option in and there will not be. Managing resources is not the concern of , there are other Maven plugins for that.

    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.