annotation processor of mapstruct can not generate Impl class in vscode.
See original GitHub issueMapstruct has supported IDEA and eclipse to generate copier class automatically,but VSCODE doesn’t work. https://mapstruct.org/documentation/ide-support/
Steps To Reproduce
1.define java class @Mapper(componentModel = “spring”) public interface AccountingFlowDtoCopier extends ObjectCopier<AccountingFlow, AccountingFlowDto> { }
2.gradle build
works and generate AccountingFlowDtoCopierImpl.class to {projectRootDir}/build dir.
2.VSCODE compile file to {projectRootDir}/bin dir and AccountingFlowDtoCopierImpl.class can not generate.
is there some magic? thank!
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:31 (3 by maintainers)
Top Results From Across the Web
visual studio code - Using java MapStruct with VSCode
I found the solution: add @ComponentScan(basePackages = "com.api.demo/build/classes/java/main/com/api/demo/service/mapper") and it works (to ...
Read more >IDE Support
To fully leverage this in your IDE, make sure the annotation processor runs with each compilation. Eclipse. Maven Integration. If you are working...
Read more >mapstruct/mapstruct-users - Gitter
I want to create a configuration interface annotated with @Mapper and all the required attributes and then extend this mapper interface to my...
Read more >Mapstruct Is Not Generating Implementation Classes
Why is it not possible for MapStruct to generate implementations for ... It uses annotationprocessing to generate mapper class implementations during If ...
Read more >Lombok Changelog
Lombok will thus copy some of these new annotations e.g. to generated getters ... fail (lombok's old val implementation supported it, javac's var...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@pumano could you try the following patch:
works fine when building with gradle command, looks like mainly a vscode thing.