I have a multi-project Maven web project and I am using Eclipse June with M2E and WTP. My test project defines a hibernate.properties file (in /src/main/resources) with connection parameters to my test database. If I add test as a normal compile-scope Maven dependency to the main project, its hibernate.properties is deployed successfully (in Eclipse, under Web Deployment Assembly, I see the test project is deployed as a JAR to WEB-INF/lib).
Now, because hibernate.properties only contains test data, I don't want it to be deployed for real. When I change the scope of the test dependency to "test", m2e doesn't include it anymore in the Deployment Assembly. Is there any way I can change this?
I could duplicate hibernate.properties into every sub-project that needs it, but I would like to be able to avoid needing to duplicate various test configuration files.