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.
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.
src/main/resources
target/classes
maven-jar-plugin
Alternatively, configure project/build/resources in your folder. See this link .
project/build/resources
Source: https://habr.com/ru/post/1307374/More articles:Calling R Script from C code - c ++Import Python wildcards from import names - pythonPHP: merging two separate mysql queries into the same json data object - jsonPHP string removes space - phpImplementing an online waiting room - ruby-on-railsIs it possible to determine which operating system the user is using using PHP? (Mac or windows) - phpAchieving NHibernate Nested Transaction Behavior - nhibernateUpdating rows using the in operator in the where clause - sqlRegular question for capturing keys - c #vectorize a for loop in numpy / scipy? - optimizationAll Articles