Maven不會建立“/ target / m2e-wtp / web-resources”資料夾
我正在使用Eclipse Luna.我正在開發一個Maven專案.當我嘗試在weblogic的應用程式伺服器上執行我的應用程式,並且使用該訊息丟擲異常:
weblogic.application.ModuleException: [HTTP:101027][WebAppModule(_auto_generated_ear_:MyAppName)] Document root: "D:\MGelbana\workspace\my-app-name\target\m2e-wtp\web-resources" does not exist.
我查看了專案的部署程式集配置,並發現以下錯誤訊息:找不到條目:“/ target / m2e-wtp / web-resources”
所以我認為Luna的預設Maven安裝不是我需要我解除安裝它,我從這個URL(ofollow,noindex" target="_blank">http://download.eclipse.org/m2e-wtp/releases/luna/ )安裝M2E-WTP,但我相信我最終使用相同的版本和相同的選項.
我瞭解這個外掛可以選擇生成這個資料夾/ target / m2e-wtp / web-resources,這有助於Eclipse將應用程式部署到應用程式伺服器中(執行在伺服器選項上)
(Which is my end goal but I’m having issues with deploying
the application with it’s needed dependencies. If I generate the
application’s WAR file byInstall
ing the maven project and deploying the generated
that WAR manually, the application works, but I need to be able to debug\run
it on the application server using Eclipse.)
但是這個資料夾(即/ target / m2e-wtp / web-resources)不會被建立!
在Eclipse的Maven> Java EE整合> WAR專案首選項> Maven archiver生成的檔案在build目錄下(我選中了這個選項)
在專案特定的選項中,我只有一個Maven選單和一個生命週期對映子選單,與maven歸檔器生成檔案無關!
那麼如何直接maven輸出與WTP相關的檔案?