I have searched some questions by https://stackoverflow.com/search?q=annotation+processor+eclipse but none helped.
The one closest is How to run annotation processor in eclipse on save but no final solution and the author switched to netbeans.
The file only generated by running maven command, refresh and clean project has no effect.
The project is :
https://github.com/mapstruct/mapstruct-examples/tree/master/mapstruct-field-mapping
And I add <m2e.apt.activation>jdt_apt</m2e.apt.activation>
to properties.
.factory:
<factorypath>
<factorypathentry kind="VARJAR" id="M2_REPO/org/mapstruct/mapstruct/1.3.0.Beta2/mapstruct-1.3.0.Beta2.jar" enabled="true" runInBatchMode="false"/>
<factorypathentry kind="VARJAR" id="M2_REPO/org/mapstruct/mapstruct-processor/1.3.0.Beta2/mapstruct-processor-1.3.0.Beta2.jar" enabled="true" runInBatchMode="false"/>
<factorypathentry kind="VARJAR" id="M2_REPO/org/projectlombok/lombok/1.18.4/lombok-1.18.4.jar" enabled="true" runInBatchMode="false"/>
<factorypathentry kind="PLUGIN" id="net.harawata.mybatipse" enabled="true" runInBatchMode="false"/>
<factorypathentry kind="PLUGIN" id="org.eclipse.jst.ws.annotations.core" enabled="true" runInBatchMode="false"/>
</factorypath>
maven/annotation processing:
Other functions work well, eclipse knows the generated file and compile it, other java code can use these object as well.
Does eclipse just not support generate source file I guess...