jbosstools / m2e-apt

Maven integration with Eclipse JDT Annotation Processor Toolkit
39 stars 19 forks source link

Types based on test sources should get generated to target/generated-test-sources/test-annotations #46

Closed overheadhunter closed 6 years ago

overheadhunter commented 8 years ago

If you have annotated types inside src/test/java, the corresponding sources generated by the annotation processor during a normal maven build are put inside target/generated-test-sources/test-annotations.

However the m2e-apt plugin puts them inside target/generated-sources/annotations, which leads to errors as the generated types now exist in both directories.

fbricon commented 8 years ago

This is a known issue described in https://github.com/jbosstools/m2e-apt/blob/master/README.md. We can't do anything as this is a limitation from the Eclipse JDT APT plugin itself, which only supports 1 output directory. You can try the "delegate annotation processing" strategy.

overheadhunter commented 8 years ago

@fbricon Are you aware of any upstream bug report? Modifying the maven build just to make an IDE happy isn't exactly a solution, that makes me happy :wink: Anyway feel free to close this issue if there is nothing you can do about it

fbricon commented 8 years ago

I opened https://bugs.eclipse.org/376848 a while ago

fbricon commented 6 years ago

Fixed with #63. Will work in Eclipse Photon