Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

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?

like image 573
Dag Avatar asked Mar 22 '17 10:03

Dag


People also ask

How is .factorypath File generated?

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.


1 Answers

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.

like image 116
Javier Aviles Avatar answered Sep 18 '22 18:09

Javier Aviles