解決eclipse中tomcat無法識別maven web專案問題
阿新 • • 發佈:2019-01-30
eclipse工具中匯入了maven web專案, 但是tomcat死活都識別不了, maven專案進行了clean install等操作, 但是仍無效, 後在網上搜索到以下答案, 解決問題
1. 右擊專案 -> Debug As -> Maven build...
2. 在Goals中填入: -Dwtpversion=2.0 eclipse:eclipse
對於WTP(Web Tools Project)官方的介紹如下
大體意思是, Eclipse外掛支援為Eclipse WTP(Web Tools Project)建立配置. 具有WAR包的專案可以設定為WTP動態web專案, 執行時依賴配置在使用eclipse內部伺服器執行時使用. 總之就是很牛逼了...The Eclipse plugin supports creating configurations for Eclipse WTP (Web Tools Project). Projects with a WAR packaging can be setup as WTP dynamic web projects and runtime dependencies are configured to be used when running them using Eclipse internal servers.