scouchdb
scouchdb copied to clipboard
sbt install notes
I can't find instructions on how to install this with sbt.
Perhaps this is common knowledge, but I'm new to sbt! It would be nice to have an installation
section in the readme.
Thanks!
I am not sure if I understand your question correctly. Using sbt, you can do a sbt package to prepare a jar. Or you can point to a maven repository that contains the jar. scouchdb jar is there in Maven Central. Let me know if this helps.
ah thank you!
I spoke too soon http://search.maven.org/#search%7Cga%7C1%7Cscouchdb <-no results?
I'm delighted to say that I can use the sbt package
'ed jar, but it would be nice to not have to package up the jar with my project.
Scouchdb doesn't appear to be in Maven Central, as you mentioned it should be.
I am sorry. Yes, it's not there in Maven Central. I confused it with some of my other projects. scouchdb has not been updated for a long time. Hence it's not there. You need to build the jar and package it with your own app.
The tutorial seems out of date, the third line doesnt work: "couch(test create)", the couch object doesnt accept parameters, what am i doing wrong?
I also have trouble going through the install instructions [and it would be nice if there was already a packaged jar on Maven Central or anywhere]
Apparently the problem comes from the fact that I have scala 2.9.2 installed and there is no sjson available for it on Maven Central, but isn't the point of the line "org.scala-lang" % "scala-compiler" % "2.9.1" % "compile",
in build.sbt to prevent this kind of problem ?
What can I do to make this work, except downgrading to 2.9.1 ?
Details follow
I have done:
git clone https://github.com/debasishg/scouchdb.git
cd scouchdb
sbt update
And the error I get is:
[info] Updating {file:/home/onthemove/scouchdb/}default-dbe868...
[warn] Binary version (2.9.1) for dependency org.scala-lang#scala-compiler;2.9.1
[warn] in scouch.db#scouchdb_2.9.2;0.7 differs from Scala binary version in project (2.9.2).
[info] Resolving net.debasishg#sjson_2.9.2;0.17 ...
[warn] module not found: net.debasishg#sjson_2.9.2;0.17
[warn] ==== local: tried
[warn] /home/onthemove/.ivy2/local/net.debasishg/sjson_2.9.2/0.17/ivys/ivy.xml
[warn] ==== Scala-Tools Maven2 Snapshots Repository: tried
[warn] http://scala-tools.org/repo-snapshots/net/debasishg/sjson_2.9.2/0.17/sjson_2.9.2-0.17.pom
[warn] ==== Scala-Tools Maven2 Releases Repository: tried
[warn] http://scala-tools.org/repo-releases/net/debasishg/sjson_2.9.2/0.17/sjson_2.9.2-0.17.pom
[warn] ==== public: tried
[warn] http://repo1.maven.org/maven2/net/debasishg/sjson_2.9.2/0.17/sjson_2.9.2-0.17.pom
[info] Resolving org.hamcrest#hamcrest-parent;1.1 ...
[error] impossible to get artifacts when data has not been loaded. IvyNode = org.scala-lang#scala-compiler;2.9.2
[trace] Stack trace suppressed: run last *:update for the full output.
[error] (*:update) java.lang.IllegalStateException: impossible to get artifacts when data has not been loaded. IvyNode = org.scala-lang#scala-compiler;2.9.2
[error] Total time: 31 s, completed 11 nov. 2012 17:55:11
Let me take a look at it. I will push sjson for 2.9.2 and 2.10 soon. Stay tuned. Or you can hard code the version of sjson in sbt file since sjson for 2.9.1 will work on 2.9.2. May be sometime I will also make scouchdb available on Maven Central. Right now I am struggling for time ..
Forcing scalaVersion in build.sbt worked. Maybe it should be included by default if it is required ?
Having scouchdb in Maven Central would be really nice. And having it for 2.10 also... Let me now if I can help.
Thanks!
Thanks .. I have pushed in a version of sjson for 2.9.2 yesterday. Regarding the current scouchdb version, I have not worked on it since a long time. I don't even know if it runs in the current version of couchdb server. It would be great if you can give some feedback on it by running in the current couchdb version. I can then upgrade it to current Scala version and put in Maven Central.