Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Include XSD in Jar with Maven?

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.

like image 898
Marcus Leon Avatar asked Apr 19 '10 18:04

Marcus Leon


1 Answers

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.

like image 186
kopper Avatar answered Sep 29 '22 10:09

kopper