You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Lombok is widely used in my projects. I read some issues and still cannot figured out how to use spoon-maven-plugin with Lombok.
Try1: use spoon-maven-plugin, without any extra configuration with Lombok.
Apparently, error occurs in Launcher.buildModel() phase if any invalid gramma in the source file such as:
but it also failes because spoon maven plugins regard original sources and delombok generated source both as input source, which produces duplicated class, error: The type XXXX is already defined
So is there any ways to configure spoon-maven-plugin to run with Lombok?
The text was updated successfully, but these errors were encountered:
Could you provide an minimal example project for the delombok approach? Spoon itself has no lombok support, so the first approach will never work.
Yes, I figured it out that the first approach would not work definitely, so for the first approach, my question is, is it possible to provide an option to skip errors in buildModel() method? In code transformation scenario, we don't always need the complete AST model to generate code.
Also I've already solve this problem by modify the maven-plugin myself to integrate delombok inside, but most of the configurable options are hardcoded to simply the work. I think the official spoon-maven-plugin should also provide a complete version of delombok integration since Lombok is widely use in industry now.
Lombok is widely used in my projects. I read some issues and still cannot figured out how to use spoon-maven-plugin with Lombok.
Try1: use spoon-maven-plugin, without any extra configuration with Lombok.
Apparently, error occurs in Launcher.buildModel() phase if any invalid gramma in the source file such as:
Try2: using delombok with lombok-maven-plugin, configure sourceDirectory to src/main/java
but it also failes because spoon maven plugins regard original sources and delombok generated source both as input source, which produces duplicated class, error:
The type XXXX is already defined
So is there any ways to configure spoon-maven-plugin to run with Lombok?
The text was updated successfully, but these errors were encountered: