vscode-java: annotation processor of mapstruct can not generate Impl class in vscode.
Mapstruct 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!
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Reactions: 1
- Comments: 31 (3 by maintainers)
@pumano could you try the following patch:
works fine when building with gradle command, looks like mainly a vscode thing.