-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How do I configure Annotation Processing with this plugin? #30
Comments
Hi @Chessray, I've found that a quick (but dirty) fix might be adding the processor to the compileOnly("org.mapstruct:mapstruct-processor:1.5.5.Final")
annotationProcessor("org.mapstruct:mapstruct-processor:1.5.5.Final") works. Here are some clues: With ECJ (without compile dependency):
With ECJ (with compile dependency):
With Javac:
|
Sure, be my guest. The ECJ team explain it here: eclipse-jdt/eclipse.jdt.core#1676 (comment) So far, I've been struggling with time and getting around to even reproducing it properly. |
Hello,
Thank you for providing this plugin.
Background: One of my users reported an error when compiling a project that uses one particular feature in MapStruct Spring Extensions using Eclipse. Turns out that ECJ handles one part of the annotation processing differently to Javac (but still spec-compliant). So obviously I'd like to fix this and found this plugin which I'd like to help me in reproducing the error. However, it already fails on a previous hurdle. I configured it in this example.
Building the example results in this error:
The "missing" class is generated during annotation processing. Please note that this part works well inside Eclipse if I remove the
@ExternalConversion
section which is the one reported as erroneous. If I remove the plugin and use Javac instead, everything is fine. Do I need to add another line for annotation processing, and if so which one?The text was updated successfully, but these errors were encountered: