部署JavaEE 8教程,由maven获取无法执行目标org.codehaus.cargo:cargo-maven2-plugin:1.6.4:在项目hello1上重新部署(部署) [英] 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

查看:382
本文介绍了部署JavaEE 8教程,由maven获取无法执行目标org.codehaus.cargo:cargo-maven2-plugin:1.6.4:在项目hello1上重新部署(部署)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

I attempted to deploy hello1 project (an example of Java EE SDK v8 tutorial) on glassfish v5 by maven command:

$ 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

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

I will appreciate, if someone answers, how this problem should be solved. Thanks in advance

推荐答案

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

注意glassfish v4需要JDK6或JDK7。和glassfish v5需要JDK7或JDK8。

I solved it. that error occurred because glassfish server has not started already. I had to start glassfish server, before deploying (using command $ mvn install)
note that glassfish v4 needs JDK6 or JDK7. and glassfish v5 needs JDK7 or JDK8.

这篇关于部署JavaEE 8教程,由maven获取无法执行目标org.codehaus.cargo:cargo-maven2-plugin:1.6.4:在项目hello1上重新部署(部署)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆