我已经研究过所有关于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>
我尝试过遵循这教程来管理夜间构建,但这也没有改变任何事情。
在安装指南中,pom.xml示例中没有“快照”,我也尝试删除它,但这仍然没有效果。
我正在使用Ubuntu14.04系统。我想知道有人能为我指出解决这个问题的正确方向吗?
发布于 2015-09-23 01:41:14
我将6.1.1快照POM.xml替换为6.0.0 POM.xml,从而解决了此错误。我所使用的kurento媒体服务器的版本是6.0.0,我需要得到与此匹配的pom.xml。
这是一个指向6.0.0 pom.xml的GITHUB提交的链接,用于替换当前的快照版本。
发布于 2015-09-23 01:41:05
所有Kurento教程都假定您正在使用稳定的版本。为了使用开发(即快照)版本,需要将Kurento存档添加到您的settings.xml文件中,因为快照没有发布到maven central。
这个过程被解释为这里。请参阅"Kurento客户端“一节。
基本上,您需要编辑您的~/.m2/setings.xml文件,并在那里添加适当的存储库。
发布于 2015-09-23 04:29:57
从复制的post 这里中复制
您已经检出了教程的开发版本6.1.1-快照,它依赖于其他开发版本的kurento工件。这些工件不是在maven central中发布的,所以这里有三个选项
.m2
存储库中编译并安装所有这些git co 6.1.0
)的标记无论如何,教程的版本应该与您的KMS版本相匹配,所以如果您使用的是KMS的开发版本,请使用教程的开发版本。但是,如果您使用的是稳定版本的KMS,则应该使用教程的匹配发行版。
您可以找到有关如何使用开发版本这里的更多信息。
https://stackoverflow.com/questions/32705400
复制