本文介绍了Kurento Helloworld mvncomplie错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想根据此教程运行基于Kurento(WebRTC MediaServer)的应用程序: http://www.kurento.org/docs/current/tutorials/java/tutorial-1-helloworld.html

I would like to run an application based on Kurento (the WebRTC MediaServer) according to this tutorial: http://www.kurento.org/docs/current/tutorials/java/tutorial-1-helloworld.html

运行以下代码段后:

git clone https://github.com/Kurento/kurento-tutorial-java.git
cd kurento-tutorial-java/kurento-hello-world
git checkout 6.1.0
mvn compile exec:java

在最后一行 mvn compile exec:java 中,我遇到以下错误:

In the last line, mvn compile exec:java, I encounter the following error:

[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Kurento Java Tutorial 1 - Hello World 6.1.0
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-enforcer-plugin:1.3.1:enforce (enforce-java-version)   @ kurento-hello-world ---
[INFO]
[INFO] --- maven-enforcer-plugin:1.3.1:enforce (enforce-maven-version) @ kurento-hello-world ---
[INFO]
[INFO] --- buildnumber-maven-plugin:1.3:create-timestamp (get-build-timestamp) @ kurento-hello-world ---
[INFO]
[INFO] --- buildnumber-maven-plugin:1.3:create (get-scm-revision) @ kurento-hello-world ---
[INFO] Executing: /bin/sh -c cd /home/yashar/kurento-tutorial-java/kurento-hello-world && git rev-parse --verify HEAD
[INFO] Working directory: /home/yashar/kurento-tutorial-java/kurento-hello-world
[INFO] Storing buildNumber: 1202749f372fc2fa0d49ea937a1d58a1a2622622 at timestamp: 1449050266884
[WARNING] Cannot get the branch information from the git repository:
Detecting the current branch failed: fatal: ref HEAD is not a symbolic ref

[INFO] Executing: /bin/sh -c cd /home/yashar/kurento-tutorial-java/kurento-hello-world && git rev-parse --verify HEAD
[INFO] Working directory: /home/yashar/kurento-tutorial-java/kurento-hello-world
[INFO] Storing buildScmBranch: UNKNOWN
[INFO]
[INFO] --- exec-maven-plugin:1.3.2:exec (default) @ kurento-hello-world ---
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.693s
[INFO] Finished at: Wed Dec 02 10:57:47 CET 2015
[INFO] Final Memory: 13M/303M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.3.2:exec (default) on project kurento-hello-world: Command execution failed. Cannot run program "bower" (in directory "/home/yashar/kurento-tutorial-java/kurento-hello-world"): error=2, No such file or directory -> [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/MojoExecutionException

我想知道问题的根源以及如何解决.谢谢

I woule like to know the source of problem and how it could be resolved. Thank you

推荐答案

Java教程要求您在系统中安装bower,因为这样会带来Web客户端所需的某些依赖项.这就是这个消息

The Java tutorials require you to have bower installed in your system, as some dependencies needed in the web client are brought that way. That's what this message

[ERROR] Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.3.2:exec (default) on project kurento-hello-world: Command execution failed. Cannot run program "bower" (in directory "/home/yashar/kurento-tutorial-java/kurento-hello-world"): error=2, No such file or directory -> [Help 1]

告诉你.使用npm install bower -g在系统中安装bower就足够了.您可能需要使用sudo发出该命令.在这种情况下,建议您阅读本指南避免需要使用sudo全局安装节点软件包并修复权限.

is telling you. It will be enough to install bower in your system with npm install bower -g. You might need to issue that command with sudo. If that's the case, I'd recommend you read this guide on how to avoid needing to use sudo for installing node packages globally, and fixing permissions.

这篇关于Kurento Helloworld mvncomplie错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-09 17:42