【问题标题】:Deploying the JavaEE 8 Tutorial, by maven gets Failed to execute goal org.codehaus.cargo:cargo-maven2-plugin:1.6.4:redeploy (deploy) on project hello1部署 JavaEE 8 教程,由 maven 获取 无法在项目 hello1 上执行目标 org.codehaus.cargo:cargo-maven2-plugin:1.6.4:redeploy (deploy)
【发布时间】:2019-05-04 12:41:33
【问题描述】:

我尝试通过 maven 命令在 glassfish v5 上部署 hello1 项目(Java EE SDK v8 tutorial 的示例):

$ mvn install

它得到这些错误:

[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2.658 s
[INFO] Finished at: 2018-12-03T11:33:57+03:30
[INFO] Final Memory: 13M/291M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.codehaus.cargo:cargo-maven2-plugin:1.6.4:redeploy (deploy) on project hello1: Execution deploy of goal org.codehaus.cargo:cargo-maven2-plugin:1.6.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]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginExecutionException

如果有人回答,我将不胜感激,应该如何解决这个问题。 提前致谢

【问题讨论】:

    标签: java maven jakarta-ee


    【解决方案1】:

    我解决了。发生该错误是因为 glassfish 服务器尚未启动。 在部署之前,我必须启动 glassfish 服务器(使用命令 $ mvn install)
    请注意 glassfish v4 需要 JDK6 或 JDK7。 glassfish v5 需要 JDK7 或 JDK8。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2018-10-28
      • 2018-03-20
      • 2017-04-22
      • 2022-10-06
      • 1970-01-01
      • 2019-09-21
      • 1970-01-01
      • 2016-10-05
      相关资源
      最近更新 更多