踩坑:Failed to create a Maven project: 'xxx/pom.xml' already exists in VFS

踩坑:Failed to create a Maven project: ‘xxx/pom.xml’ already exists in VFS

标签(空格分隔): 踩坑


最近看hadoop,maven下载依赖包各种问题,无奈之下我只有频繁重新创建项目,不免有重名。

以上为背景。

根据错误提示,我琢磨着,应该把这个VFS里面的内容清理一下,因为毕竟我已经在文件中将project删除了。但是我不知道VFS是啥

遂上stackoverflow找方法,遇到一哥们,问题如下:

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

下面靠谱回答:

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:

  1. Cleaning out the system caches, keep in mind that:
  2. It results in clearing the local history.
  3. 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.

大体的意思是让我们清除缓存。还提醒我们在清缓存之前注意版本控制问题。

扫描二维码关注公众号,回复: 1241162 查看本文章

删掉这个残缺不全的项目,然后 Invalidate and Restart 重新建立。OK

猜你喜欢

转载自blog.csdn.net/japson_iot/article/details/80519208