Thursday, November 29, 2007

next m2eclipse Problem

My Project has the standard Project structure which is recommended by maven.


scr
|-main
| |-java
| |-resources
|-test
| |-java
| |-resources


under main-resources I have my "real" properties file which has the real mysql-database connection parameters and under test-resources I have a test properties file which points to a in-memory HSQLDB.
When running the JUnit Tests standalone the Test took the test properties file and everything was OK. When running maven with goal Package, the tests failed. I was adding some debug-messages and found out, that maven took the wrong properties file (the "real" properties file).
After a long period of googling around and trying to configure the surefire-plugin I tried to call the target from the console ...
I THINK I'M GOING TO KICK THE m2eclipse PLUGIN SINCE IT IS THE SECOND TIME IT COST ME A LOT OF TIME !

No comments: