Enable XSD in Jar with Maven?

We have an XSD file along with some java src files. How can we give Maven the ability to include XSD in a jar file? It is currently ignoring the file.

+4
source share
2 answers

Place the XSD file in the src/main/resources folder. That should be enough. By default, all files under this directory are copied to the target/classes directory and maven-jar-plugin selected by default.

+6
source

Alternatively, configure project/build/resources in your folder. See this link .

+2
source

Source: https://habr.com/ru/post/1307374/


All Articles