Fork me on GitHub

Has anyone here ever run into a problem where lein goes entirely haywire, such that any and every lein call errors out?

java.lang.IllegalArgumentException: No matching ctor found for class org.sonatype.aether.repository.Authentication at clojure.lang.Reflector.invokeConstructor (
(Can post full stack trace if it'd be helpful, I couldn't find anything useful in it) This is after about 18 months of faithful service. Tried reinstalling lein, ditching my profiles.clj, rebooting the box, prob some other stuff, and no love. Anyone have guess of any sort? Haven't found anything that seemed relevant on google.


Leiningen 2.6.1 on Java 1.8.0_60 64-Bit VM (on OS X)


@eggsyntax: have you tried blowing away your ~/.m2 (backing up first)?


No, but I will, thanks!


Well, now! Apparently the problem is only in certain directories. At least (and maybe only) ~/tmp. Which is where I put throwaway projects, so it took me quite a while to discover that...


Problem solved -- stray copy of profiles.clj in ~/tmp. I must have stuck it there as a temporary backup. TIL


glad you figured it out


Yeah, who knew? Thanks for the help!