1. 程式人生 > >eclipse匯入git專案出現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錯誤

上傳到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, 然後部署成功