【问题标题】:Install error with Kurento on ubuntu在 ubuntu 上使用 Kurento 安装错误
【发布时间】:2015-09-21 22:19:07
【问题描述】:

我已经完成了关于 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 系统。我想知道有人能指出我解决这个问题的正确方向吗?

【问题讨论】:

    标签: maven ubuntu kurento


    【解决方案1】:

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

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

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

    【讨论】:

      【解决方案2】:

      复制自重复的帖子here

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

      • 查看 kurento-java 和所有相关项目,例如 kurento-module-creator 等等。您可以从 pom 中拉出线程,它们大约有 5 个项目。您必须在本地 .m2 存储库中编译并安装所有这些文件
      • 使用我们的internal archiva repository
      • 签出包含发布版本的标签(即git co 6.1.0

      无论如何,教程的版本应该和你的KMS版本匹配,所以如果你使用的是开发版的KMS,请使用教程的开发版。但如果您使用的是稳定版 KMS,则应使用教程的匹配发行版。

      您可以找到更多关于如何使用开发版本的信息here

      【讨论】:

        【解决方案3】:

        我已通过将 6.1.1 快照 POM.xml 替换为 6.0.0 POM.xml 来解决此错误。我使用的 kurento-media 服务器的版本是 6.0.0,我需要获取与之匹配的 pom.xml。

        这是我用来替换当前快照版本的 6.0.0 pom.xml 的 GITHUB 提交的链接。

        Link

        【讨论】:

        • 不错!您应该始终尝试将教程与您使用的实际 KMS 版本相匹配。
        猜你喜欢
        • 1970-01-01
        • 2023-03-19
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2011-11-04
        • 1970-01-01
        相关资源
        最近更新 更多