sbt install notes #20

Open
0atman opened this Issue Oct 9, 2012 · 10 comments

Comments

Projects
None yet
3 participants
@0atman

0atman commented Oct 9, 2012

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!

@debasishg

This comment has been minimized.

Show comment
Hide comment
@debasishg

debasishg Oct 9, 2012

Owner

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.

Owner

debasishg commented Oct 9, 2012

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.

@0atman

This comment has been minimized.

Show comment
Hide comment
@0atman

0atman Oct 10, 2012

ah thank you!

0atman commented Oct 10, 2012

ah thank you!

@0atman 0atman closed this Oct 10, 2012

@0atman

This comment has been minimized.

Show comment
Hide comment

@0atman 0atman reopened this Oct 11, 2012

@0atman

This comment has been minimized.

Show comment
Hide comment
@0atman

0atman Oct 11, 2012

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.

0atman commented Oct 11, 2012

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.

@debasishg

This comment has been minimized.

Show comment
Hide comment
@debasishg

debasishg Oct 11, 2012

Owner

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.

Owner

debasishg commented Oct 11, 2012

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.

@0atman

This comment has been minimized.

Show comment
Hide comment
@0atman

0atman Oct 13, 2012

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?

0atman commented Oct 13, 2012

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?

@eddy-geek

This comment has been minimized.

Show comment
Hide comment
@eddy-geek

eddy-geek Nov 11, 2012

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

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
@debasishg

This comment has been minimized.

Show comment
Hide comment
@debasishg

debasishg Nov 12, 2012

Owner

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 ..

Owner

debasishg commented Nov 12, 2012

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 ..

@eddy-geek

This comment has been minimized.

Show comment
Hide comment
@eddy-geek

eddy-geek Nov 12, 2012

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!

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!

@debasishg

This comment has been minimized.

Show comment
Hide comment
@debasishg

debasishg Nov 14, 2012

Owner

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.

Owner

debasishg commented Nov 14, 2012

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment