I have a Maven/Tycho project which is imported in Eclipse for editing and debugging, using the m2e Eclipse plugin.
The command-line Maven build works fine, but I have been struggling with spurious build errors in the Eclipse IDE which are apparently "fixed" by updating the Maven project (Maven > Update Project).
- I have already excluded all
.project
and.classpath
files from source control. - I have also ensured that all the necessary connectors for m2e are installed in Eclipse.
- The spurious errors also vary with different versions of Eclipse, and this has gotten worse since the 2020-03 release.
I am suspecting that the errors are caused by files in the .settings
being checked in, but apparently there are other settings beyond the Maven/Tycho scope in there which need to be preserved (editor preferences, etc.).
Is there a general rule or best practice as to which Eclipse-generated files should be checked in with a Maven project, if any?