Hi,

I want to create multiple executions of the maven-compiler-plugin that
use different testSourceDirectory and testOutputDirectory settings.

The reason is that the particular project I'm trying to maven-enable
(clirr) is designed to analyse jarfiles. So as part of its unit tests,
it first builds a couple of jarfiles from local sources, then runs its
unit tests against them.

Ideally, I want the test-compile phase to run the compile:testCompile
goal three times: once to build the source for testjar1, once to build
the source for testjar2, then once to build the real unit-test code.
After that, the "test" phase can happily run and find the jars it needs
to run tests against.

But I cannot see any option on the maven-compiler-plugin to specify an
override for the <testSourceDirectory> or <testOutputDirectory>
settings. Is there one, or not?

An alternative is to make the two test jars into subprojects. But that
means moving the code around (in CVS, ecch), and then fixing the
existing ant and maven1 builds. Not so tempting.

Regards,
Simon


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

Reply via email to