I have Junit tests that work with Spring and Hibernate, so I have to access
a Spring Bean config file along with hibernate.cfg.xml.
I also have a bunch of Hibenrate HBM files.
Where should they go so that Maven 2 can see them when it runs
surefire:test?
I tried adding the following to my project-level (not my top-level) POM, but
it didn't work:
---
<unitTest>
<resources>
<resource>
<directory/>resources<directory/>
<includes>
<include>**/*.xml</include>
</includes>
</resource>
</resources>
</unitTest>
---
It couldn't find the Spring Bean config file or hibernate.cfg.xml file even
though they're in the project's resources/ directory. Why?
What did I do wrong? Am I missing something?
I also tried it without the <unitTest> wrapping the <resources>, but it
still didn't work.
Thanks for your help.
Tom
The information in this electronic mail message is sender's business
Confidential and may be legally privileged. It is intended solely for the
addressee(s). Access to this Internet electronic mail message by anyone else
is unauthorized. If you are not the intended recipient, any disclosure,
copying, distribution or any action taken or omitted to be taken in reliance
on it is prohibited and may be unlawful.
The sender believes that this E-mail and any attachments were free of any
virus, worm, Trojan horse, and/or malicious code when sent. This message and
its attachments could have been infected during transmission. By reading the
message and opening any attachments, the recipient accepts full
responsibility for taking protective and remedial action about viruses and
other defects. Cendant is not liable for any loss or damage arising in any
way from this message or its attachments.