I'm very new to maven and running into some mandatory beginners problem. What I want is to maven along with hibernate. I have read and googled a lot concerning this problem of mine, however, I don't find a solution.
Here's my source dir structure:
compilation is no issue, but when I try and run the class by java -cp .... I get the error:
Obviously, the hibernate.cfg.xml was not copied into the jar. Adding it manually resolves this problem, however, after fixing this issue, the code complains about missing the mapper com.sas.bo.CW.hbm.xml. Hence, Maves does not copy any of the xml files, even though at leas one is in the appropiate resource path.
How can I make Maven include these .xmls when packaging the jar? Any advice is most welcome.
BTW, here's my pom.xml:
Thanks to all advicers in advance