2016-01-03 56 views
0

我曾經添加我的maven項目到tomcat服務器v7.0右鍵單擊服務器 - >添加和刪除 - >選擇我的項目 - >完成。在eclipse中添加maven項目構建到tomcat

但今天我沒有在列表中找到我的maven項目。 「可用」部分只有一個項目。 我如何讓我的項目在列表中。

enter image description here

回答

2

我已經看到這種垃圾在IRAD(IBM的Eclipse版本)多次。我認爲這個軟件只是普通的小車。確保將代碼備份到其他地方,如在代碼庫中,並刪除所有項目,包括本地文件。然後再檢查一遍。此外,tomcat非常適合在其webapps文件夾中找到更改。你可能想忘記一起通過eclipse進行部署。您還有其他一些選項可以讓您在不必重新部署的情況下立即查看更改。

Hot deploy solutions 
1) Use Jrebel - this is expense 
2) Expand your war in the webapps folder and send symbolic links back to  your target folders containing your class, and to you jsp, javascript directories 
3) Expand your war in the webapps folder and use filesync plug in (its been hard to find on the web for a while) to copy your changes to the expanded area 

其他方式只是爲了送過來你的戰爭/耳朵,到Web服務器似乎是天方夜譚,他們從來沒有完全據我可以告訴摸索出不熱部署

1) Change your maven code to copy the ear/war to the tomcat directory for you every time you run maven install 

完全集成的IDE。

相關問題