m2e will never execute "generate-sources" (i.e. build phase). During Project-Clean..., m2e will first call all build participants' #clean methods and then #build methods. It is up to build participant to clean whatever resources need to be cleaned, then execute whatever code generation logic (and everything else) that needs to be executed and refresh from local filesystem whatever needs to be refreshed. In other words, m2e does not do anything itself, it delegates all work to project build participants.
-- Regards, Igor On 11-07-25 10:33 AM, [email protected] wrote:
Yes I was talking about Project->Clean and not "mvn clean". At this point, doing a Project->Clean doesn't refresh eclipse workspace. My question was, should it not? What about generated-sources? Should it be called after clean? On , Igor Fedorenko <[email protected]> wrote: > What do you mean "clean", Project->Clean... action in Eclipse or "mvn > > clean" on command line. > > > > Generally, m2e is not expected to recover from "mvn clean" ran from > > command line, but Project->Clean... expected to work. For this to work, > > build participant's #clean(IProgressMonitor) should delete all generated > > sources, but in many cases this is not easy to implement because of > > discrepancy between how maven and eclipse approach. > > > > -- > > Regards, > > Igor > > > > On 11-07-25 4:51 AM, Pino Silvaggio wrote: > > > What is the desired behaviour for a connector supporting code generation? > > > > For example, if I "clean" a project shouldn't the connector rebuild > > everything? > > > > Because as it stands right now the project becomes stale > > and we have to explicitly recompile (build) to make it refresh. > > > > Not so clean in my opinion. > > > > > _______________________________________________ > > m2e-users mailing list > > [email protected] > > https://dev.eclipse.org/mailman/listinfo/m2e-users > > _______________________________________________ m2e-users mailing list [email protected] https://dev.eclipse.org/mailman/listinfo/m2e-users
_______________________________________________ m2e-users mailing list [email protected] https://dev.eclipse.org/mailman/listinfo/m2e-users
