Search code examples
mavenjavahg

How can I build javahg?


I have made attempts to build 0.7 and later, but it always fails with the following message:

The build could not read 1 project -> [Help 1]

  The project com.aragost.javahg:javahg:0.7 (/home/<user>/DEV/NoBackup/javahg/pom.xml) has 1 error
Non-resolvable parent POM: Failure to find com.aragost.javahg:javahg-parent:pom:0.6 in http://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced and 'parent.relativePath' points at wrong local POM @ line 6, column 10 -> [Help 2]

How do I fix it?


Solution

  • Project has reference to parent which should be accessible in your local parent directory:

    <parent>
            <groupId>com.aragost.javahg</groupId>
            <artifactId>javahg-parent</artifactId>
            <version>0.6</version>
            <relativePath>../javahg-parent</relativePath>
    </parent>
    

    please put https://bitbucket.org/aragost/javahg-parent in your environment, so you should have structure similar to:

    /home/<user>/DEV/NoBackup/javahg
    /home/<user>/DEV/NoBackup/javahg-parent - with proper version