If you follow the best practices and have you directory structure like
project/pom.xml
project/src/main/java
project/src/main/resources
project/src/test/java
project/src/test/resources
Then just put it in project/src/test/resources and maven will copy the
file to the test-classes directory before running any of the tests.
Rich
[EMAIL PROTECTED] wrote:
Hello all,
I used to put hibernate.cfg.xml in target\test-classes with maven1
before running my unit tests.
With maven2 my unit tests are not working any more even if I put this
configuration file in target\test-classes.
Does anybody have an idea where to put this file when you run mvn test ?
Thank you
------------------------------------------------------------------------
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]