I believe this has been discussed before, but I can't find it. Has anyone figured out a good way to keep annotation processing enabled in Eclipse, with a Maven project, when you have generated code for both compile and test scopes?
Specifically, if I have annotation processing enabled in eclipse, it puts all generated code into the same directory, while maven separates it between two separate directories: target/generated-sources and target/generated-test-sources. Then, Eclipse sees both sets of files and says the class has already been generated.
I suppose one way to handle it is to disable the automatic m2e-apt configurator so the maven target directories don't get added to the eclipse project, and then manually enable it in eclipse with a completely separate directory.
Has anyone else had this problem and found a good solution?
Thanks,
Ben