magro / memcached-session-manager

A tomcat session manager that backups sessions in memcached and pulls them from there if asked for unknown sessions
Apache License 2.0
758 stars 348 forks source link

Can't run tests #361

Closed cdx-grillo closed 6 years ago

cdx-grillo commented 7 years ago

I'm not able to run mvn clean test, there's a problem with the couchbase version/maven repo (error shown below). I've played around with changing the couchbase version and various other pom settings but can't seem to get it to work, any ideas?

[ERROR] Failed to execute goal on project memcached-session-manager: Could not resolve dependencies for project de.javakaffee.msm:memcached-session-manager:jar:2.1.2-SNAPSHOT: Failure to find org.couchbase.mock:CouchbaseMock:jar:0.5-69e953bd in https://oss.sonatype.org/content/repositories/releases was cached in the local repository

tjennings commented 6 years ago

Hey! We ran into this same problem. As a workaround, you can download the jar manually here:

https://github.com/xulunfan/memcached-session-manager/tree/master/maven/org/couchbase/mock/CouchbaseMock/0.5-69e953bd

then run this command to install it locally:

mvn install:install-file -Dfile=CouchbaseMock-0.5-69e953bd.jar -DgroupId=org.couchbase.mock -DartifactId=CouchbaseMock -Dversion=0.5-69e953bd -Dpackaging=jar

mikeebert commented 6 years ago

Note, when downloading the jar be sure to use the 'download link' on this page

magro commented 6 years ago

Have you tried upgrading the version in pom.xml, according to https://mvnrepository.com/artifact/com.couchbase.mock/CouchbaseMock?