Search code examples
mavencypherquerydsl

neo4j cypher dsl 3.0.6 jar not present in maven repo


I am planning to use neo4j-cypher-dsl < https://github.com/neo4j-contrib/cypher-dsl > as a dependency in my project. The latest version in this git repo is 3.0.6 and I neither find it in maven repository nor in http://m2.neo4j.org/content/repositories/releases/org/neo4j/neo4j-cypher-dsl/ I want to be sure that its not available anywhere in maven repos before I build the jar myself. Below is the snippet from my pom.

<dependency>
        <groupId>org.neo4j</groupId>
        <artifactId>neo4j-cypher-dsl</artifactId>
        <version>3.0.6</version>
</dependency>
 <repositories> 
    <repository> 
        <id>neo4j-public</id> 
        <url>http://m2.neo4j.org/content/groups/public</url> 
    </repository> 
    <repository>
        <id>neo4j-contrib-releases</id>
        <url>https://raw.github.com/neo4j-contrib/m2/master/releases</url>
        <releases>
            <enabled>true</enabled>
        </releases>
        <snapshots>
            <enabled>false</enabled>
        </snapshots>
    </repository>
    <repository>
        <id>neo4j-contrib-snapshots</id>
        <url>https://raw.github.com/neo4j-contrib/m2/master/snapshots</url>
        <releases>
            <enabled>false</enabled>
        </releases>
        <snapshots>
            <enabled>true</enabled>
        </snapshots>
    </repository>
</repositories>

Solution

  • It's not available anywhere. The MVN Repository site does a pretty good job at indexing repositories and it only points to the 2.3.x versions that you also found.

    Just build it, it only takes a couple of minutes with tests. If you would like to use it from a CI build and do not want to build this dependency each time, you can deploy the binaries to (preferably) a private GitHub repository. You can then use the GitHub Pages feature to host a Maven repository (you may also skip authentication). However, many consider this as bad practice and it's easy to see why: GitHub Pages was designed to serve simple static web pages (e.g. docs) and not binaries.