cancel
Showing results for 
Search instead for 
Did you mean: 

Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.

Apoc as maven dependency

Hi All,
i'd like to include the apoc library as a maven dependency in my pom.xml

like so.

<dependency>
    <groupId>org.neo4j.procedure</groupId>
    <artifactId>apoc</artifactId>
    <version>4.1.0.2</version>
</dependency>

But this does not work when i import apoc classes into my classes,
mvn clean package
complains with
package apoc does not exist

downloading manualy apoc and putting it as local jar file works.

<dependency>
    <groupId>org.neo4j.procedure</groupId>
    <artifactId>apoc</artifactId>
    <version>4.1.0.2</version>
	<systemPath>${basedir}/apoc-4.1.0.2-all.jar</systemPath>
	<scope>system</scope>
</dependency>

what do i wrong? actually i would like to use latest so i am sure to build on the latest apoc version and hence do not get outdated over time.

2 REPLIES 2

I think you can add the classifier to pull the correct apoc JAR:

       <dependency>
            <groupId>org.neo4j.procedure</groupId>
            <artifactId>apoc</artifactId>
            <version>4.2.0.0</version>
            <classifier>all</classifier>
        </dependency>

Hi Gary,
thank you for the reply . I'll check that.

regards
Thomas