I wasn't sure what the best title is so if anyone has a better suggestion, fire away.
I'm not sure what information I should be providing, so I'll tell you what is happening.
I have some unit tests that pass fine in Eclipse. In these tests, there's some XML that's being validated against a custom built DTD (a slightly modified Apelon DTS DTSConcept if anyone is familiar). In eclipse, when I run these tests, I can see in my target path for the project that the dtds show up.
So, dir1/dir2/dtds/myDtd.dtd exists in the target path of the project.
However, if I run the unit tests on the command line with maven (mvn clean test), these tests failed because of a MalformedURLException. I was able to get rid of DTD validation and the tests passed, so I knew it had something to do with that. After many things tried, for whatever reason I looked in the target path of the project. Now, dir1/dir2/dtds/myDtd.dtd did NOT exist. That seems to be why I'm getting the exception -- the file doesn't exist.
I realize this may be too vague, but is there anything that you can think of why I might be having these different results running in Eclipse versus using the Maven command line?
I will provide more information as requested, but I wasn't sure what exactly to include.
Thanks for any assistance.
EDIT: Okay, it seems that the problem is that maven simply doesn't copy the DTDs over to the target directory when building. I may google/ask a separate question for this, but how would I ensure Maven copies those files correctly?