This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-10-03
Channels
- # announcements (4)
- # beginners (68)
- # boot (3)
- # business (20)
- # cider (39)
- # cljs-dev (7)
- # cljsjs (1)
- # cljsrn (12)
- # clojure (122)
- # clojure-brasil (2)
- # clojure-italy (7)
- # clojure-nl (5)
- # clojure-spec (60)
- # clojure-uk (41)
- # clojurescript (67)
- # cursive (7)
- # datomic (13)
- # emacs (6)
- # figwheel-main (18)
- # fulcro (40)
- # garden (3)
- # graphql (2)
- # hyperfiddle (4)
- # jobs-discuss (10)
- # lein-figwheel (5)
- # leiningen (12)
- # luminus (6)
- # mount (3)
- # off-topic (52)
- # portkey (2)
- # re-frame (1)
- # reagent (6)
- # reitit (24)
- # shadow-cljs (15)
- # sql (3)
- # tools-deps (12)
Hello, can somebody please help? lein repl
fails with
> org.eclipse.aether.transfer.ArtifactNotFoundException: Could not find artifact com.oracle:ojdbc6:jar:11.2.0.4 in central (https://repo1.maven.org/maven2/)
though I do have it locally
đ ls -l ~/.m2/repository/com/oracle/ojdbc6/11.2.0.4/ojdbc6-11.2.0.4.jar
-rw-r--r-- 1 me staff 4494540 Oct 19 2015 /Users/me/.m2/repository/com/oracle/ojdbc6/11.2.0.4/ojdbc6-11.2.0.4.jar
When I try lein pom
and eg mvn compile
, it works w/o problem and does not try to download oracle.
In project.clj
: :dependencies [[com.oracle/ojdbc6 "11.2.0.4"] ...
Problem solved: The solution was
rm ~/.m2/repository/com/oracle/ojdbc6/11.2.0.4/_remote.repositories
Another question: in REPL there is some problem with loading automatically my namespaces - when I do (load-file "src/devbot/core.clj")
it fails with java.lang.Exception: namespace 'devbot.xml' not found
(where devbot.xml
is required from core). I can fix it by running (load-file "src/devbot/xml.clj")
but normally this is done automatically, why does it fail here & now? Any ideas?
Ok, it seems that :main devbot.core
somehow causes this problem; but why? That is surely wrong to have such an effect?!
@holyjak is this a :gen-class
namespace? why are you using load-file
instead of a higher-level construct like require
Yes it is. I have never thought of using require to re-read a source file already required in the current ns
Will try it, thx for the tip
release version artifacts (non-snapshot) are only used from the local repo if they were sourced from the same release repo your project is currently configured with
the most relevant docs around that subject are https://github.com/technomancy/leiningen/wiki/Repeatability#corporate-artifact-repository