问题
generated Qclasses in the target directory is always get cleaned when I do a small code change and save.Therefore I have to do maven updates to generate QClasses every time. Is there a better approach without having to update maven every time?
回答1:
Issue solved by rolling back to version 1.1.2 of maven apt plugin from version 1.1.3
回答2:
3 years after you answered yourself (thank you btw) I'm experiencing this exact same issue too with STS and the apt-maven-plugin. Unfortunately 1.1.3 is still the current release (at the time I posted this). There is a related GitHub issue page here but it has gone quiet as well.
While I appreciate that rolling back to 1.1.2 makes the problem go away, I'd still like to see a plugin fix or at least an explanation for the cause of this problem.
来源:https://stackoverflow.com/questions/42265583/query-dsl-target-classes-are-cleaned-every-time-i-do-a-code-change