Spring applicationcontexts for testing are loaded when deploying web application with tomcat in Eclipse
===

i have a Web application that i am deploying with Eclipse in a Tomcat 6. I am using Maven and the Web module has visibility on the Core module. The core module has an hibernate.cfg.xml file and another application contexts (Spring files) with some configuration in his source folder which is src/main/resources . A week ago all was working fine, but i decided to make some test to the Web module, so i created a folder in src/test/java and made some test with config files in the folder src/test/resources (this 2 folders where created on the web module). Test are ok, and mvn clean install gives me a BUILD SUCCESFULL. The problem is when i try to develop the web application. If a get a look in the folder, ${PROJECT_LOCATION}/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/MI_WEB_APP/WEB-INF/classes i can see that the application contexts defined for the web module tests are here instead of the real config files wich are in the src/main/resources folder in the Core module. I mean, instead of having the correct hibernate.cfg.xml file i have the hibernate.cfg.xml configured with hsqldb and that config file is the one i am using in the web test resource folder. Any idea about how this could possibly happen? Sorry for my english.