On Jul 12, 2006, at 12:38 PM, Raymond Feng wrote:
Hi,
After more investigation, I found the patch doesn't fix the problem
completely. Now the testSourceDirectory is switched and test cases
in the test/src/java folder cannot be detected by Surefire plugin
any more. The key question is that if maven 2 supports more than
one test source folders. The result from google search is not very
promising.
One work around to this issue is to have generated code placed in
src/test/java. But it's not very nice.
m2 does support multiple (main) source folders as this is used by
other code generators to generate main-line code. The generator mojo
is responsible for adding the root of its generated code to the set
of source folders.
I think the same function is there in m2 for test source folders.
However, it may be that the plugin is not able to do that. I would
suggest asking on the plugin's dev list (or use the source) if this
is something it supports.
--
Jeremy
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]