Missing pom for thrift#libthrift;0.5.0: under http://maven.twttr.com/thrift/libthrift/0.5.0/

727 views
Skip to first unread message

Henning Kropp

unread,
Feb 20, 2012, 5:54:37 AM2/20/12
to twitter...@googlegroups.com
Hi,

this results in a unresolved dependencie issue:

[warn]  ::::::::::::::::::::::::::::::::::::::::::::::                          
[warn]     ::          UNRESOLVED DEPENDENCIES         ::
[warn]     ::::::::::::::::::::::::::::::::::::::::::::::
[warn]     :: thrift#libthrift;0.5.0: not found
[warn]     ::::::::::::::::::::::::::::::::::::::::::::::

regards

Ryan King

unread,
Feb 21, 2012, 1:31:09 PM2/21/12
to twitter...@googlegroups.com
I'm having trouble reproducing this. Can you copy/paste the exact
command you're running? Also any relevant environment variables (env |
grep SBT).

-ryan

Matthias

unread,
Feb 22, 2012, 6:29:05 PM2/22/12
to Twitter's Cassie
Hi Ryan,
I'm running into the same problem. I'm using Scala 2.9.1 and SBT
0.11.2 which is probably why I'm running into this problem. I know
that Cassie requires Scala 2.8 and sbt 0.7, but I thought I'd just try
it out w/o installing a different version of Scala.

[info] Resolving thrift#libthrift;0.5.0 ...
[warn] module not found: thrift#libthrift;0.5.0
[warn] ==== local: tried
[warn] /home/matthias/.ivy2/local/thrift/libthrift/0.5.0/ivys/
ivy.xml
[warn] ==== Twitter's Repository: tried
[warn] http://maven.twttr.com/thrift/libthrift/0.5.0/libthrift-0.5.0.pom
[warn] ==== public: tried
[warn] http://repo1.maven.org/maven2/thrift/libthrift/0.5.0/libthrift-0.5.0.pom
[warn] ==== Scala-Tools Maven2 Repository: tried
[warn] http://scala-tools.org/repo-releases/thrift/libthrift/0.5.0/libthrift-0.5.0.pom


Just to try it out I added explicitly added the thrift dependency to
my build.sbt file:

resolvers += "Twitter's Repository" at "http://maven.twttr.com/"

libraryDependencies ++= Seq(
"thrift" % "libthrift" % "0.5.0",
"com.twitter" % "cassie" % "0.19.0",
"org.scalatest" %% "scalatest" % "1.6.1" % "test"
)


SBT seems to be able to resolve the dependency: [info] Resolving
org.apache.thrift#libthrift;0.5.0. The only thing that stands out to
me is thrift#libthrift;0.5.0 versus org.apache.thrift#libthrift;
0.5.0. I'm new to Scala and SBT, so I pretty much don't know what I'm
doing. Hopefully the information I provided is helpful in some way.


Matthias

Henning Kropp

unread,
Feb 23, 2012, 6:09:45 AM2/23/12
to twitter...@googlegroups.com
+1
All the same here. Thanks Matthias.

I just found some thing useful here: http://code.google.com/p/simple-build-tool/wiki/LibraryManagement

It seems to be pretty easy to define the explicit url for a dependency in sbt. I made it work with:

libraryDependencies ++= Seq(
  "thrift" % "libthrift" % "0.5.0" from "http://maven.twttr.com/thrift/libthrift/0.5.0/libthrift-0.5.0.jar",

  "com.twitter" % "cassie" % "0.19.0",
  "org.scalatest" %% "scalatest" % "1.6.1" % "test"
)

regards

em70

unread,
Mar 10, 2012, 8:27:22 AM3/10/12
to twitter...@googlegroups.com
Confirm the presence of the issue.

Henning, thanks for the workaround!

best wishes

Tyson Hamilton

unread,
Mar 26, 2012, 5:48:20 PM3/26/12
to twitter...@googlegroups.com
This workaround did not solve the problem for me.  I'm still looking for a solution!  I'll update if I find anything, any help is great.  Thanks

Tyson Hamilton

unread,
Mar 27, 2012, 10:27:39 AM3/27/12
to twitter...@googlegroups.com
Well I'm not sure what is happening, changing from repo to repo produced the same error repeatedly.  So instead I've now created a local Maven repository that contains the libthrift-0.5.0.jar file.  Here is what I did,

Created a location for my new repository
$> mkdir ~/.m2repo

Downloaded the libthrift-0.5.0.jar
$> chmod 755 ~/.m2repo/libthrift-0.5.0.jar

Added the new repository to my resolvers
project/Build.scala> val local = "Local Repository" at "file:///home/tyson/.m2repo"

Reloaded/updated sbt project
SBT> reload
SBT> update

Voila!  Goodbye annoying remote repo error.  Happy Coding!

-Tyson

Tyson Hamilton

unread,
Mar 27, 2012, 12:03:46 PM3/27/12
to twitter...@googlegroups.com
Further development... the above solution did work for me (thanks Henning).  It was a problem with my IDE apparently, I rebuilt the program with SBT from the command-line-utility and it downloaded the libthrift dependency.

Sam Ritchie

unread,
Jan 2, 2013, 5:53:43 PM1/2/13
to twitter...@googlegroups.com
Hey, looks like this is because thrift/libthrift was published internally at twitter, nowhere else. This dep needs to change to some external version.

Ryan King

unread,
Jan 4, 2013, 4:06:23 PM1/4/13
to twitter...@googlegroups.com
Its published here: http://maven.twttr.com/thrift/libthrift/

-ryan
Reply all
Reply to author
Forward
0 new messages