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

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

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

+5
source share
2 answers

See the "Clear System Cache " Page.

  • Open any project in IntelliJ IDEA
  • Select "File> Invalid Cache / Restart ..."
  • Click "Invalidate and Restart"

Attention

Clearing system caches, remember that:

This clears the local history.

To avoid data loss, check for changes to your version control system before invalidating caches. It causes a complete overhaul of all projects that have ever been executed in the current version of IntelliJ IDEA.

+7
source

@Oliver Kocsis note that when creating a new maven module, one of the wizard screens is shown below:

IntelliJ Module Wizard

As shown, the wizard will populate the module path, for example C:\PersonalProjects\cabrunco-repo instead of C:\PersonalProjects\cabrunco-repo\pets .

So you just need to add \yourModuleName to the Content root .

+1
source

Source: https://habr.com/ru/post/1268676/


All Articles