Brett Porter wrote:
What would be the best solution? Changing one of the standard compiler mojos?
Adding additional generic mojo without "readonly"'s, with possibility to set
source roots, etc? Maybe something else. I don't like what we had to do -
copy/paste a lot of source from one of maven-compiler-plugin mojos.
Pablo from my team wrote about it today, and Bob Allison here:
http://jira.codehaus.org/browse/MCOMPILER-13.
I thought this was too much of a coincidence :)
Use the build-helper-maven plugin from org.codehaus.mojo.
From
http://mojo.codehaus.org/build-helper-maven-plugin/add-source-mojo.html:
|sources| /(Optional)/ |File| |-| |-| Additional source directories
I've never used this plugin but what I understand of it is that this
plugin adds additional directory.
*Add a source directory* to POM (from plugin's site).
Therefore a directory set in Mojo as a default one is also included.
In that case target/integration-tests would also include unit test
classes from target/test-classes (compiled sources from src/tests)..
Am I right? If so, it's not a solution.
Cheers
Pablo