Hi,

I have the following problem with a multi-module project:

The file structure looks like this
pom.xml (parent pom of modules)
module1/pom.xml
module2/pom.xml

In some of our testcases we need to access files so these files are located in src/test/resources of the respective project. Everything works fine as long as I build the project from the submodules path since the path is specified relative, e.g. src/test/resources/file.txt. If I try to build all modules using the parent pom, however, the testcases fail since the file is now expected in src/test/resources/file.txt realtive to the parent poms folder.

Is this a bug or a feature? I expected the current dir (user.dir) to change for every executed sub-module build.

Any ideas how I could solve this problem? Absolute filenames are not really an option (that's my current workaround and it's a real burden)

Thanks, Joern.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to