首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
社区首页 >问答首页 >Kurento Helloworld mvncomplie错误

Kurento Helloworld mvncomplie错误
EN

Stack Overflow用户
提问于 2015-12-02 02:30:15
回答 1查看 759关注 0票数 0

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

在运行这些代码之后:

代码语言:javascript
运行
AI代码解释
复制
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编译exec:中,我遇到了以下错误:

代码语言:javascript
运行
AI代码解释
复制
[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

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

EN

回答 1

Stack Overflow用户

发布于 2016-04-11 01:59:41

Java教程要求您在系统中安装bower,因为web客户端中需要的一些依赖项就是这样带来的。这就是这个信息

代码语言:javascript
运行
AI代码解释
复制
[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

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

https://stackoverflow.com/questions/34040413

复制
相关文章

相似问题

领券
社区富文本编辑器全新改版!诚邀体验~
全新交互,全新视觉,新增快捷键、悬浮工具栏、高亮块等功能并同时优化现有功能,全面提升创作效率和体验
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档
查看详情【社区公告】 技术创作特训营有奖征文