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

Posted 哎哟,不错哦

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了eclipse导入git项目出现There are no resources that can be added or removed from the server错误相关的知识,希望对你有一定的参考价值。

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

 

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

 

解决办法:

在Deployment Assembly 中添加Maven Dependencies   maven依赖

 

步骤:

右键项目-->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错误的主要内容,如果未能解决你的问题,请参考以下文章