Search code examples
mavenubuntukurento

Install error with Kurento on ubuntu


I have gone through all the Kurento questions on Stackoverflow and this error dose not seem to have arisen before.

I have installed the Kurento media-server and java client examples according the installation guides.

I have the media-server running. The problem arises when i go to run the client application. The same issue comes up not matter which one I choose.

This the Error that is generated:

[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

This is my pom.xml file

<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>

I have tried following this tutorial for managing nightly builds but this hasn't change anything either.

In the installation guidelines there is no "SNAPSHOT" in the pom.xml sample, I have also tried removing this and but this still had no effect.

I am using a Ubuntu 14.04 system. I am wondering could someone point me in the right direction to solving this issue?


Solution

  • I have resolved this error by replacing the 6.1.1 snapshot POM.xml with the 6.0.0 POM.xml. The version of the kurento-media server I was using was 6.0.0 and I needed to get the pom.xml that matched this.

    This is a link to the GITHUB commit of the 6.0.0 pom.xml which I used to replace the current snapshot version.

    Link