-
Notifications
You must be signed in to change notification settings - Fork 373
Can't get hbc to build #8
Comments
try doing a "mvn compile" (or mvn install) first, and then make that exec call |
Ahh, that worked great! Is there a way to compile it all to a .jar file so I can move it around from machine to machine? |
Does BasicAuth work? I commented-out the OAuth line in hbc-example/src/main/java/com/twitter/hbc/example/SampleStreamExample.java and uncommented the BasicAuth line and I'm getting: Did not receive a message in 5 seconds |
Most likely you need to recompile after that change. I'll update the docs to make this more obvious. Try running: |
I had to recompile after making the changes, I guess. I am using the BasicAuth ("username","password); now and I'm getting: [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.5.1:compile (default-compile) on project hbc-example: Compilation failure: Compilation failure: |
Added: import com.twitter.hbc.httpclient.auth.BasicAuth; |
and did you successfully connect to the api? |
Yea, it's working. I'm getting the stream output now. I'm trying to turn off all of the extra output though or send that to stderr instead of stdout so I can pipe stdout to my app. Also, hitting ctrl-c doesn't really stop and disconnect hbc, but those are different errors than this one. I will close this issue. Thanks for the help! |
Hey twitter guys! Thanks for the HoseBird! I never got around to getting the fallback stuff working on my own and was hoping that someone would release something like HoseBird to the public. I've been using curl since Oct 2010! :)
I'm trying to get the hbc-example to work. I'd like to connect to the streaming sample endpoint using BasicAuth. I see where I can use OAuth or BasicAuth, so I think that I've got that covered. I've not changed anything from the git repo yet. I'm sort of a noob when it comes to maven, so I may be doing something really simple and stupid here. Here's my build output. Not sure why this is failing.
build output here:
https://gist.github.com/scumola/5060747
CentOS 5.2, java 1.7, mvn 3.0.5
The text was updated successfully, but these errors were encountered: