eclipse導入git項目出現There are no resources that can be added or removed from the server錯誤
阿新 • • 發佈:2018-10-19
ips ide 好的 編碼 ati 沒有 rec The 插件
上傳到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錯誤