Skip to content

Instantly share code, notes, and snippets.

@wjlroe
Created August 2, 2011 17:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wjlroe/1120747 to your computer and use it in GitHub Desktop.
Save wjlroe/1120747 to your computer and use it in GitHub Desktop.
failing compile with leiningen
(ns riaktest.app
(:import
[com.basho.riak.client RiakFactory]))
(def client (RiakFactory/pbcClient))
(defn -main []
(println "woot"))
(defproject riaktest "1.0.0-SNAPSHOT"
:description "Riak test"
:dependencies [
[org.clojure/clojure "1.2.1"]
[com.basho.riak/riak-client "0.15-SNAPSHOT"]
]
:main riaktest.app
:source-path "src/main/clojure")
@wjlroe
Copy link
Author

wjlroe commented Aug 2, 2011

To test this:

Then in the lein project for this:

  • Make sure the directory heirarchy looks like this (or similar):
     .
    ├── classes
    │   └── riaktest
    │       ├── app$_main.class
    │       ├── app$loading__4414__auto__.class
    │       ├── app__init.class
    │       └── riaktest
    │           ├── app$_main.class
    │           └── app$loading__4414__auto__.class
    ├── lib
    │   ├── clojure-1.2.1.jar
    │   ├── commons-codec-1.4.jar
    │   ├── commons-logging-1.1.1.jar
    │   ├── httpclient-4.1.1.jar
    │   ├── httpcore-4.1.jar
    │   ├── jackson-core-asl-1.7.5.jar
    │   ├── jackson-mapper-asl-1.7.5.jar
    │   ├── protobuf-java-2.3.0.jar
    │   └── riak-client-0.15-SNAPSHOT.jar
    ├── project.clj
    └── src
        └── main
            ├── clojure
                └── riaktest
                   └── app.clj
    
    
    
    
  • Run lein deps
  • Run lein compile - for me (on Linux) this hangs forever. On OS X it's ok.

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