Can't find 'slam.hound' as .class or .clj for lein run
Closed this issue · 5 comments
Leiningen version 2.3.4
Slamhound version 1.5.0
Slamhound alias configured in ~/.lein/profiles.clj
Yes, it appears that slamhound is not on your classpath, which is strange.
Could you please:
- Remove slamhound artifacts from ~/.m2:
rm -r ~/.m2/repository/slamhound/
-
Paste the output of
lein classpath
from within your project. -
And provide the contents of your ~/.lein/profiles.clj?
I think we can get this sorted out!
I removed the slamhound artifacts from ~/.m2.
$ lein classpath
Retrieving slamhound/slamhound/1.5.0/slamhound-1.5.0.pom from clojars
Retrieving slamhound/slamhound/1.5.0/slamhound-1.5.0.jar from clojars
/Users/statonjr/Documents/hendrick/hendrick-charon/test:/Users/statonjr/Documents/hendrick/hendrick-charon/src:/Users/statonjr/Documents/hendrick/hendrick-charon/dev-resources:/Users/statonjr/Documents/hendrick/hendrick-charon/resources:/Users/statonjr/Documents/hendrick/hendrick-charon/target/classes:/Users/statonjr/.m2/repository/clj-aws-s3/clj-aws-s3/0.3.7/clj-aws-s3-0.3.7.jar:/Users/statonjr/.m2/repository/org/apache/httpcomponents/httpclient/4.1/httpclient-4.1.jar:/Users/statonjr/.m2/repository/org/apache/httpcomponents/httpcore/4.1/httpcore-4.1.jar:/Users/statonjr/.m2/repository/org/clojure/data.json/0.2.3/data.json-0.2.3.jar:/Users/statonjr/.m2/repository/org/codehaus/jackson/jackson-mapper-asl/1.8.9/jackson-mapper-asl-1.8.9.jar:/Users/statonjr/.m2/repository/commons-logging/commons-logging/1.1.1/commons-logging-1.1.1.jar:/Users/statonjr/.m2/repository/clj-time/clj-time/0.5.0/clj-time-0.5.0.jar:/Users/statonjr/.m2/repository/org/clojure/tools.nrepl/0.2.3/tools.nrepl-0.2.3.jar:/Users/statonjr/.m2/repository/commons-codec/commons-codec/1.3/commons-codec-1.3.jar:/Users/statonjr/.m2/repository/org/clojure/clojure/1.5.1/clojure-1.5.1.jar:/Users/statonjr/.m2/repository/clojure-complete/clojure-complete/0.2.3/clojure-complete-0.2.3.jar:/Users/statonjr/.m2/repository/joda-time/joda-time/2.3/joda-time-2.3.jar:/Users/statonjr/.m2/repository/org/codehaus/jackson/jackson-core-asl/1.8.9/jackson-core-asl-1.8.9.jar:/Users/statonjr/.m2/repository/com/amazonaws/aws-java-sdk/1.4.2.1/aws-java-sdk-1.4.2.1.jar:/Users/statonjr/.m2/repository/fafnir/fafnir/1.0.2/fafnir-1.0.2.jar
$ cat ~/.lein/profiles.clj
{:user {:plugins [[lein-pprint "1.1.1"]
[lein-kibit "0.0.8"]
[slamhound "RELEASE"]
[lein-ancient "0.5.4"]
[lein-immutant "1.1.1"]]
:aliases {"slamhound" ["run" "-m" "slam.hound"]}}}
Ah yes, I see. Slamhound should be in {:user {:dependencies []}}, not in :user :plugins.
Please move it there and see if you have more success.
That did it. Thanks!
np. Have fun!