eclipse导入git项目出现There are no resources that can be added or removed from the server错误

时间:2023-03-09 00:10:28
eclipse导入git项目出现There are no resources that can be added or removed from the server错误

上传到git上的项目因为配置了过滤文件,将.settings文件和.project文件都过滤掉了,settings文件中主要存放的是各种插件配置,约束你可以更好的利用IDE进行编码

eclipse导入git项目出现There are no resources that can be added or removed from the server错误

因为将这两个文件过滤掉了,所以导致从git上拉下来的项目,加入到tomcat中是出现如下错误(There are no resources that can be added or removed from the server)没有可从服务器添加或删除的资源

eclipse导入git项目出现There are no resources that can be added or removed from the server错误

解决办法:

在Deployment Assembly 中添加Maven Dependencies   maven依赖

eclipse导入git项目出现There are no resources that can be added or removed from the server错误

步骤:

右键项目-->Properties-->Project Facets  点出Further configuration available...具体如何操作就不在多说;以我的项目为例,如有不同请按实际解决,因为我在添加Content directory时已经有了src目录,所有我只添加了main/webapp, 然后部署成功

eclipse导入git项目出现There are no resources that can be added or removed from the server错误