我嘗試學習Java EE 8,我已按照https://javaee.github.io/tutorial/官方指南,但我有這個問題:的JavaEE的8教程,部署失敗的hello1項目
--- cargo-maven2-plugin:1.4.4:redeploy (deploy) @ hello1 ---
[DeployerRedeployMojo] Resolved container artifact org.codehaus.cargo:cargo-core-container-glassfish:jar:1.4.4 for container glassfish5x
------------------------------------------------------------------------
BUILD FAILURE
------------------------------------------------------------------------
Total time: 4.730s
Finished at: Mon Oct 09 16:16:40 CEST 2017
Final Memory: 18M/183M
------------------------------------------------------------------------
Failed to execute goal org.codehaus.cargo:cargo-maven2-plugin:1.4.4:redeploy (deploy) on project hello1: Execution deploy of goal org.codehaus.cargo:cargo-maven2-plugin:1.4.4:redeploy failed: Cannot create configuration. There's no registered configuration for the parameters (container [id = [glassfish5x], type = [installed]], configuration type [existing]). Actually there are no valid types registered for this configuration. Maybe you've made a mistake spelling it? -> [Help 1]
To see the full stack trace of the errors, re-run Maven with the -e switch.
Re-run Maven using the -X switch to enable full debug logging.
For more information about the errors and possible solutions, please read the following articles:
[Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginExecutionException
我都嚴格遵循指南所以我不明白錯誤在哪裏...
編輯: 這個錯誤是相同的glassfish 5和4.1.1。 如果我手動部署war包,它是可行的;所以這個問題是Maven和GlassFish服務器之間的通信...
編輯2: 我發現這個https://netbeans.org/bugzilla/show_bug.cgi?id=247746但忽略了最低工作...
事實上Glassfish的5尚未被貨物支撐,從而簡單地改變屬性' integration.container.id'到'glassfish4x',在我身邊做了詭計 –