简体   繁体   English

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

[英]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

I attempted to deploy hello1 project (an example of Java EE SDK v8 tutorial ) on glassfish v5 by maven command: 我试图通过maven命令在glassfish v5上部署hello1项目( Java EE SDK v8教程的示例 ):

$ mvn install

it gets these errors: 它得到这些错误:

[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 提前致谢

I solved it. 我解决了 that error occurred because glassfish server has not started already. 发生此错误是因为glassfish服务器尚未启动。 I had to start glassfish server, before deploying (using command $ mvn install) 在部署之前,我必须启动glassfish服务器(使用命令$ mvn install)
note that glassfish v4 needs JDK6 or JDK7. 请注意,glassfish v4需要JDK6或JDK7。 and glassfish v5 needs JDK7 or JDK8. 而glassfish v5需要JDK7或JDK8。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 未能在项目 duke 辅导上执行目标 org.codehaus.cargo:cargo-maven2-plugin:1.4.4:redeploy (deploy) - Failed to execute goal org.codehaus.cargo:cargo-maven2-plugin:1.4.4:redeploy (deploy) on project duke tutoring JavaEE 8 教程,在 hello1 项目上部署失败 - The JavaEE 8 Tutorial, deploy failed on hello1 project 无法执行目标org.codehaus.mojo:tomcat-maven-plugin:1.1:deploy(default-cli) - Failed to execute goal org.codehaus.mojo:tomcat-maven-plugin:1.1:deploy (default-cli) Maven 不会运行我的项目:无法执行目标 org.codehaus.mojo:exec-maven-plugin:1.2.1:exec - Maven won't run my Project : Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.2.1:exec 尝试执行基本 spring 引导项目时无法执行目标 org.codehaus.mojo:exec-maven-plugin - Failed to execute goal org.codehaus.mojo:exec-maven-plugin when trying to execute a basic spring boot project 无法在项目 inv-project 上执行目标 org.codehaus.mojo:rpm-maven-plugin:2.0.1:rpm (default-cli) - Failed to execute goal org.codehaus.mojo:rpm-maven-plugin:2.0.1:rpm (default-cli) on project inv-project Maven:无法执行目标org.codehaus.mojo:sonar-maven-plugin:2.7.1:声纳 - Maven: Failed to execute goal org.codehaus.mojo:sonar-maven-plugin:2.7.1:sonar 无法在项目上执行目标org.codehaus.mojo:exec-maven-plugin:1.2.1:exec(default-cli):命令执行失败 - Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.2.1:exec (default-cli) on project: Command execution failed 无法在项目上执行目标 org.codehaus.mojo:apt-maven-plugin:1.0-alpha-5:process (default): Apt failed - Failed to execute goal org.codehaus.mojo:apt-maven-plugin:1.0-alpha-5:process (default) on project: Apt failed maven-执行货物失败:开始 - maven - Failed to execute cargo:start
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM