Reputation: 3450
I have small question: when I add dependency
<dependency>
<groupId>org.neo4j</groupId>
<artifactId>neo4j-kernel</artifactId>
<version>1.8.1</version>
<type>test-jar</type>
<scope>test</scope>
</dependency>
to maven, I have error:
package org.neo4j.test does not exist
Why?
I didn't find "neo4j.test" in maven repository (http://search.maven.org/).
TIA.
Eugeny
Upvotes: 0
Views: 1999
Reputation: 2388
You need to use the classifier element:
<dependency>
<groupId>org.neo4j</groupId>
<artifactId>neo4j-kernel</artifactId>
<version>1.8.1</version>
<classifier>tests</classifier>
<scope>test</scope>
</dependency>
Some read: http://maven.apache.org/pom.html#Maven_Coordinates
Upvotes: 1
Reputation: 19373
I don't use Maven but I copy the jar from http://m2.neo4j.org/content/groups/everything/org/neo4j/neo4j-kernel/1.8.1/neo4j-kernel-1.8.1-tests.jar
Upvotes: 2
Reputation: 32629
If your actual code is underneath src/main/java
, then the scope should not be test
. Otherwise, please provide more details.
Upvotes: 2