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

exec-maven-plugin how to exit SQL*Plus
How to ignore MARKUPs from ruta output or from JCas?
Why are my resources not getting copied in the “validate” phase?
Different classpath between IntelliJ and mvn
Apache Archiva: how do I edit Artifact information?
Running docker-maven-plugin on the very end of parent pom building
Intellij: How to create context-sensitive Maven shortcuts
How to use property values in postinstall scripts during Maven build
Maven: No source to compile
jgitflow start-release fails for https url with OAuth token
is there any alternative for maven reactor plugin?
Cannot capture network packets in storm spout using jNetpcap
How to create 'resources' folder in Intellij?
Gradle tells me ' Must specify a repository for deployment'
Grails Unit Testing occurring on Wrong Phase of Maven Life Cycle
Maven variables set after running goals cannot be resolved in IDEA [duplicate]

Categories

HOME
cakephp
bluetooth
wso2
nullpointerexception
jsp-tags
cvs
electronics
cakephp-2.5
jgroups
v8
jxls
gps
ojdbc
android-youtube-api
primary-key
vifm
vault
row
usergrid
fortumo
designer
tostring
propel
ab-testing
text-rendering
nhibernate-envers
jquery-ajaxq
intentfilter
wkwebview
tapestry
one-to-many
facebook-access-token
fopen
log4js-node
media-queries
directx-10
xquery-3.0
protovis
phpfreechat
asset-pipeline
textmate
mapbox-gl
catalog
wpf-controls
twitch
jna
wso2carbon
auto-update
prolog-setof
knockout-components
kbuild
nsarray
nbconvert
titanium-android
orthogonal
background-service
time-and-attendance
jquery-filter
wdf
passport-google-oauth
grails-tomcat-plugin
multi-level
mikroc
login-control
pickadate
wapiti
photobucket
hsv
rtbkit
google-places
tmuxinator
content-length
responsive-images
apache-commons-fileupload
graph-api-explorer
coldbox
markers
preferences
code-access-security
openexr
heisenbug
aapt
dml
yorick
mysql-error-1062
cloud-connect
industrial
farseer
ccss
django-nonrel
dmoz
quickdialog
qtkit
windows-phone-7.1.1
pendrive
stage
infobox
invite
oncheckedchanged
telerik-scheduler
lpeg
coda-slider
forums
castle-monorail
firefox4
virtual-functions
windows-live-messenger

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App