gpt4 book ai didi

maven - 在 ubuntu 上使用 Kurento 安装错误

转载 作者:行者123 更新时间:2023-12-04 19:02:37 31 4
gpt4 key购买 nike

我已经完成了关于 Stackoverflow 的所有 Kurento 问题,并且这个错误似乎以前没有出现过。

我已经根据安装指南安装了 Kurento 媒体服务器和 java 客户端示例。

我正在运行媒体服务器。当我去运行客户端应用程序时,问题就出现了。无论我选择哪一个,都会出现同样的问题。

这是生成的错误:

[INFO] Scanning for projects...
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]
[ERROR] The project org.kurento.tutorial:kurento-hello-world:6.1.1-SNAPSHOT (/root/kurento-tutorial-java/kurento-hello-world/pom.xml) has 1 error
[ERROR] Non-resolvable parent POM for org.kurento.tutorial:kurento-tutorial:6.1.1-SNAPSHOT: Could not find artifact org.kurento:kurento-parent-pom:pom:6.1.1-SNAPSHOT and 'parent.relativePath' points at wrong local POM @ org.kurento.tutorial:kurento-tutorial:6.1.1-SNAPSHOT, /root/kurento-tutorial-java/pom.xml, line 5, column 10 -> [Help 2]
[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/ProjectBuildingException
[ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableModelException

这是我的 pom.xml 文件
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<parent>
<groupId>org.kurento.tutorial</groupId>
<artifactId>kurento-tutorial</artifactId>
<version>6.1.1-SNAPSHOT</version>
</parent>

....... more stuff

<!-- Kurento -->
<dependency>
<groupId>org.kurento</groupId>
<artifactId>kurento-client</artifactId>
<version>6.1.1-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>org.kurento</groupId>
<artifactId>kurento-utils-js</artifactId>
</dependency>

我试过关注 this管理夜间构建的教程,但这也没有改变任何东西。

在安装指南中 pom.xml 示例中没有“SNAPSHOT”,我也尝试删除它,但这仍然没有效果。

我使用的是 Ubuntu 14.04 系统。我想知道有人能指出我解决这个问题的正确方向吗?

最佳答案

所有 Kurento 教程都假设您使用的是稳定版本。要使用开发(即 SNAPSHOT)版本,您需要将 Kurento maven 文件添加到您的 settings.xml 文件中,因为 SNAPSHOTS 不会发布到 maven Central。

过程解释here .请参阅“Kurento Java 客户端”部分。

基本上,您需要编辑 ~/.m2/settings.xml 文件并在其中添加适当的存储库。

关于maven - 在 ubuntu 上使用 Kurento 安装错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32705400/

31 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com