cancel
Showing results for 
Search instead for 
Did you mean: 

Apoc as maven dependency

thomas_stuempfi
Node Clone

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

gary_mann
Node

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

Nodes 2022
Nodes
NODES 2022, Neo4j Online Education Summit

On November 16 and 17 for 24 hours across all timezones, you’ll learn about best practices for beginners and experts alike.