尝试编译Kurento Java教程时出错【maven依赖解析】 [英] Error trying to compile Kurento Java tutorial [maven dependency resolution]

查看:185
本文介绍了尝试编译Kurento Java教程时出错【maven依赖解析】的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

按照kurento 网站,

git clone https://github.com/Kurento/kurento-tutorial-java.git
cd kurento-tutorial-java/kurento-one2one-call-advanced
mvn compile exec:java

我收到如下错误:

无法在项目 kurento-client 上执行目标:无法解决项目依赖org.kurento:kurento-client:jar:6.1.1-SNAPSHOT:以下工件无法解决: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: 找不到工件 org.kurento:kurento-jsonrpc-client:jar:6.1.1-SNAPSHOT ->

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 ?

推荐答案

您已经查看了教程的开发版本 6.1.1-SNAPSHOT,该版本依赖于 kurento 工件的其他开发版本.这些工件没有发布在 maven central 中,所以你在这里有三个选择

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

  • 查看 kurento-java 和所有相关项目,例如 kurento-module-creator 等等.您可以从 pom 中拉出线程,它们大约有 5 个项目.您必须将它们全部编译并安装在本地 .m2 存储库中
  • 使用我们的内部档案库
  • 签出包含发布版本的标签(即 git co 6.1.0)
  • 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
  • Use our internal archiva repository
  • Checkout a tag containing a release version (i.e. git co 6.1.0)

在任何情况下,教程的版本都应该与您的 KMS 版本匹配,因此如果您使用的是 KMS 的开发版本,请使用教程的开发版本.但是,如果您使用的是 KMS 的稳定版本,则应该使用教程的匹配发布版本.

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

这篇关于尝试编译Kurento Java教程时出错【maven依赖解析】的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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