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.
+1
A:
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.
koppernickus
2010-04-19 19:09:46
+1
A:
Alternative, configure project/build/resources
in your pom. See this reference.
lexicore
2010-04-19 19:29:06