|
[
Permlink
| « Hide
]
Martin Murphy added a comment - 05/Nov/08 08:16 AM
Here's a patch that won't affect earlier versions of Maven and should clean up the Binding Component once Maven 2.0.11 is released
I think the "correct" fix is to move the codegeneration into the generate-test-sources phase and make it generate into target/generated/test/java instead. Thus, it's all treated as test artifacts, not source. That was the first thing I tried, before going with the prepare-package phase
Problem is that the generated code isn't compiled then since the generate-test-sources is after the compile phase, so when the tests go to run, the generated code is there, but hasn't been compiled. Maybe there is something I could add to the test mojo, but I can't see Here is an improved version of the patch that will work with Maven today. This is based on Dan's suggestions. Thanks Dan!
apply patch on befalf of Martin Murphy with thanks
http://svn.apache.org/viewvc?rev=713258&view=rev http://svn.apache.org/viewvc?rev=713261&view=rev |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||