Failed to create maven project: '.../pom.xml' already exists in VFS (IntelliJ)

Oliver Kocsis picture Oliver Kocsis · Jun 8, 2017 · Viewed 19.1k times · Source

When I would like to re-create a maven project with a name had been but have been deleted already, I receive the following error message:

Failed to create maven project: '.../pom.xml' already exists in VFS

Answer

Oliver Kocsis picture Oliver Kocsis · Jun 8, 2017

See Cleaning System Cache page.

  1. Open any project in IntelliJ IDEA
  2. Select "File > Invalidate Caches / Restart ..."
  3. Click on "Invalidate and Restart"

WARNING

Cleaning out the system caches, keep in mind that:

It results in clearing the local history.

To avoid losing data, check in the changes to your version control system before invalidating caches. Causes a complete rebuild of all the projects ever run in the current version of IntelliJ IDEA.