Reputation: 56699
We have an XSD file along with some java src files. How can we instruct Maven to include the XSD in the jar file output? Currently it appears to ignore the file.
Upvotes: 5
Views: 7178
Reputation: 43699
Alternative, configure project/build/resources
in your pom. See this reference.
Upvotes: 3
Reputation: 2736
Put the XSD file under src/main/resources
folder. This should be enough. By default all files under this directory are copied to target/classes
directory and from there are picked up by maven-jar-plugin
by default.
Upvotes: 9