Automatically generate .factorypath on project import when using Maven project in Eclipse IDE

Dag picture Dag · Mar 22, 2017 · Viewed 18.1k times · Source

The .factorypath file is a generated file, which eclipse requires for annotation-processing. The m2eclipse plugin does generate this file when using "Update Maven Project" (Alt+F5) and checking "Update project configuration from pom.xml".

However, I don't want to check this file into version control. But if not, and someone from the team does a fresh checkout, and imports the project in eclipse, the .factorypath does not get generated until the "Update Maven Project" is performed manually. I don't want this manual step when a project gets imported, this has to happen automatically. Is there an option, that a project has to be updated upon import?

Answer

Javier Aviles picture Javier Aviles · May 30, 2020

Since this is an IDE related question, and you seem to be using Eclipse IDE:

Menu Window > Preferences > Maven > Automatically update Maven projects configuration .

This will make it for you on project import so you would not need that manual step anymore.