Need help getting lein repl started

I’m trying to start the lien repl. I’ve just installed the jdk onto my mac running catalina.
Here’s what I see. Do I need to install an earlier java? Or what might be the problem?

[geminiani:~/Repos/clojure-rte] jimka% lein repl
lein repl
Java HotSpot(TM) 64-Bit Server VM warning: Options -Xverify:none and -noverify were deprecated in JDK 13 and will likely be removed in a future release.
Could not find artifact clojure.core:deref:jar:clojars.org in central (https://repo1.maven.org/maven2/)
Could not find artifact clojure.core:deref:jar:clojars.org in clojars (https://repo.clojars.org/)
This could be due to a typo in :dependencies, file system permissions, or network issues.
If you are behind a proxy, try setting the 'http_proxy' environment variable.
[geminiani:~/Repos/clojure-rte] jimka% java -version
java -version
java version "14" 2020-03-17
Java(TM) SE Runtime Environment (build 14+36-1461)
Java HotSpot(TM) 64-Bit Server VM (build 14+36-1461, mixed mode, sharing)
[geminiani:~/Repos/clojure-rte] jimka% 

Looks like you have something in your :dependencies that shouldn’t be. Maybe something with @?

where are my dependencies located/found? Remember, I’m just getting started. I’m trying to get it up and running for the first time.

See ~/Repos/clojure-rte/project.clj

That file is exactly what lein created except that I changed the license for checking it into git.

;; Copyright (c) 2020 EPITA Research and Development Laboratory
;;
;; Permission is hereby granted, free of charge, to any person obtaining
;; a copy of this software and associated documentation
;; files (the "Software"), to deal in the Software without restriction,
;; including without limitation the rights to use, copy, modify, merge,
;; publish, distribute, sublicense, and/or sell copies of the Software,
;; and to permit persons to whom the Software is furnished to do so,
;; subject to the following conditions:
;;
;; The above copyright notice and this permission notice shall be
;; included in all copies or substantial portions of the Software.
;;
;; THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
;; EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
;; MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
;; NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
;; LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
;; OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
;; WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

(defproject clojure-rte "0.1.0-SNAPSHOT"
  :description "FIXME: write description"
  :url "http://example.com/FIXME"
  :license {:name "MIT"
            :url "https://opensource.org/licenses/MIT"}
  :dependencies [[org.clojure/clojure "1.10.0"]]
  :main ^:skip-aot clojure-rte.core
  :target-path "target/%s"
  :profiles {:uberjar {:aot :all}})

I also have a profiles.clj file in ~/.lein/ its contents are those described here.

{:user {:plugins [[lein-license "0.1.8"] @clojars.org
                  ]}}

And there is your problem. The @clojars.org is not valid and breaks things.

FWIW the @clojars.org is turned into (clojure.core/deref clojars.org) by the reader so thats where that weird Could not find artifact clojure.core:deref:jar:clojars.org ... error comes from.

So are you saying that the documentation for https://github.com/xsc/lein-license is wrong?

No, you just intepreted the @clojars.org in the image as being part of the dependency declaration, which it is not. It is just telling you that it is hosted on clojars.org. You just need [lein-license "0.1.8"], lein will find it there on its own.

1 Like

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.