maven


neo4j.test: “package org.neo4j.test does not exist” error in maven


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
If your actual code is underneath src/main/java, then the scope should not be test. Otherwise, please provide more details.
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
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

Related Links

How to use dot-notation properties in maven site apt files?
Nexus Artifact Usage Plugin does not start
Passing arguments from pom to Grunt Tasks
Findbugs maven scan new code only
Jenkins job unable to access an environment variable
Can't sort a cyclic graph - Exception running Sonar with Eclipse RCP Application
Is SNAPSHOT or non-SNAPSHOT the convention for libraries and Maven when doing a release for others to use?
Extend maven cargo plugins jvmargs
bamboo plan generates rpm appended with snapshot and time stamp
Maven loads wrong version of dependency
No appenders could be found for logger (org.springframework.web.context.ContextLoader)
CircleCI circle.yml file - how to checkout differently with different branches
Maven: find usage of dependency by dependencies? [duplicate]
Maven structure with a single exposed artifact and internal dependencies
Automatically bumping up pom.xml with Maven release plugin
Use Maven to start programs

Categories

HOME
pandas
yii2
vim
image
openmp
netsuite
zeromq
fme
rsyslog
bookshelf.js
yahoo-oauth
sharepoint-designer
jxls
gps
angular-ui-bootstrap
alpha
datastax-java-driver
onelogin
row
correlation
windows-azure-storage
messages
dynamics-crm-online
saxon
oracle-coherence
sms-gateway
jasonette
cloudhub
ehcache
kvc
emgucv
numerical-methods
javacv
sparse-matrix
pepper
fifo
publish
bpel
lightswitch-2013
bcd
bosh
accelerate-framework
html5-fullscreen
lto
objectlistview
galen
sfdc
acoustics
fault
setter
ifs
knpmenubundle
spring-cache
quartz-composer
google-feed-api
vmware-tools
rotativa
underscore.js-templating
autorest
firebaseui
disque
yaws
photobucket
historian
qtableview
teamcity-8.0
quicklisp
myo
directoryservices
phalanger
xojo
castle
meteor-velocity
sitemesh
html4
hungarian-algorithm
factory-method
selected
dmoz
datawindow
viewswitcher
wse3.0
amazon-appstore
assembly-loading
zpt
external-accessory
django-tagging
locate
coda-slider
vc90
rescale
database-management
sef
javap
mdac
multiple-languages

Resources

Database Users
RDBMS discuss
Database Dev&Adm
javascript
java
csharp
php
android
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App