Endless build loop (again)
Opened this issue · 5 comments
With M2E - Maven Integration for Eclipse 2.6.1.20240304-0744 org.eclipse.m2e.feature.feature.group Eclipse.org - m2e
I now encounter again an endless build loop with my tycho workspace, that is after a maven build is triggered, the same build runs again, triggering another build and so on... in contrast to before this is not one never ending build job but the job seem to complete but gets triggered again.
It seems importing maven-surefire-plugin sources also trigger this.
Does build triggers a change (probably via a mojo) in some visible project file that is not marked as derived in the workspace?
For me, that started when org.eclipse.m2e.mavenarchiver
started to generate manifests including the current timestamp. The new timestamp causes a change in the model and therefore triggers a new build.
For me, that started when org.eclipse.m2e.mavenarchiver started to generate manifests including the current timestamp.
Can you tell exactly when this started to happen?
No, not exactly. I have a workspace with many projects for quite a few years now. Those ‚endless‘ builds started anywhere by the end of 2022, I believe. The org.eclipse.m2e.mavenarchiver
got introduced at that time.
I‘ve spent some time debugging m2e to find the cause for the build trigger.
Now I‘ve added a profile which is active when inside Eclipse and this profile sets the timestamp to a static value. This solved that issue for me.