java编译时的错误分析情况,尝试编译Kurento Java教程时出现错误[maven依赖关系解析]...

After trying the following as specified on the kurento website,

git clone https://github.com/Kurento/kurento-tutorial-java.git

cd kurento-tutorial-java/kurento-one2one-call-advanced

mvn compile exec:java

I get an error like :

Failed to execute goal on project kurento-client: Could not resolve

dependencies for project

org.kurento:kurento-client:jar:6.1.1-SNAPSHOT: The following artifacts

could not be resolved:

org.kurento:kurento-jsonrpc-client:jar:6.1.1-SNAPSHOT,

org.kurento:kurento-jsonrpc-server:jar:6.1.1-SNAPSHOT,

org.kurento:kms-api-core:jar:6.1.1-SNAPSHOT,

org.kurento:kms-api-elements:jar:6.1.1-SNAPSHOT,

org.kurento:kms-api-filters:jar:6.1.1-SNAPSHOT: Could not find

artifact org.kurento:kurento-jsonrpc-client:jar:6.1.1-SNAPSHOT ->

How best can i resolve such a dependency issue ?

解决方案

You have checked out the development version of the tutorials, 6.1.1-SNAPSHOT, which depends on other development versions of kurento artifacts. Those artifacts are not published in maven central, so you have three options here

Check out kurento-java and all related projects, such as kurento-module-creator and a bunch more. You can pull the thread from the pom, they are about 5 projects. You'll have to compile and install all of them in your local .m2 repository

Checkout a tag containing a release version (i.e. git co 6.1.0)

In any case, the version of the tutorials should match the version of your KMS, so if you are using a development version of KMS, please use the development version of the tutorials. But if you are using a stable version of KMS, you should be using the matching release version of the tutorials.

You can find more info on how to work with development versions here

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值