首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >部署JavaEE 8教程,by maven gets无法在项目hello1上执行目标org.codehaus.cargo:cargo-maven2-plugin:1.6.4:redeploy (部署)

部署JavaEE 8教程,by maven gets无法在项目hello1上执行目标org.codehaus.cargo:cargo-maven2-plugin:1.6.4:redeploy (部署)
EN

Stack Overflow用户
提问于 2018-12-03 16:34:33
回答 1查看 167关注 0票数 0

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

代码语言:javascript
复制
$ mvn install

它会得到以下错误:

代码语言:javascript
复制
[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

如果有人回答,我会很感激这个问题应该如何解决。提前感谢

EN

回答 1

Stack Overflow用户

发布于 2018-12-06 15:20:12

我解决了。发生该错误是因为glassfish服务器尚未启动。在部署之前,我必须启动glassfish服务器(使用命令$ mvn install)

请注意,glassfish v4需要JDK6或JDK7。而glassfish v5需要JDK7或JDK8。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/53590056

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档