踩坑: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.
- Open any project in IntelliJ IDEA
- Select “File > Invalidate Caches / Restart …”
- 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.
大体的意思是让我们清除缓存。还提醒我们在清缓存之前注意版本控制问题。
扫描二维码关注公众号,回复:
1241162 查看本文章
删掉这个残缺不全的项目,然后 Invalidate and Restart 重新建立。OK