|Including test resources in Tomcat deployment [message #1420873]
||Wed, 10 September 2014 15:59
| Mark Beierl
Registered: September 2014
I have a Maven war project that I can run in Eclipse by deploying it to a Tomcat server. This works fine for developing and debugging, but I also have a test.xml resource file that I would like to deploy to my webapp when I debug it. I do not want this test.xml file to end up in the final war though.|
1) If I put the test.xml file into src/main/webapp/WEB-INF, it is included in the war file and as a result is visible when debugging.
2) If I put the test.xml file into src/test/resources, or src/test/webapp/WEB-INF, it is not deployed to tomcat on debug, and therefore not visible.
Can this be done, or is there another way to go about this?
Powered by FUDForum
. Page generated in 0.01267 seconds