This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-07-22
Channels
- # admin-announcements (1)
- # aws-lambda (1)
- # beginners (38)
- # boot (48)
- # cider (11)
- # clara (4)
- # cljs-dev (61)
- # cljsrn (9)
- # clojure (68)
- # clojure-austin (3)
- # clojure-greece (9)
- # clojure-mexico (6)
- # clojure-russia (40)
- # clojure-spec (165)
- # clojure-uk (134)
- # clojurescript (37)
- # cursive (5)
- # datomic (25)
- # defnpodcast (2)
- # hoplon (1)
- # jobs (1)
- # juxt (1)
- # lein-figwheel (3)
- # leiningen (4)
- # mount (14)
- # off-topic (8)
- # om (29)
- # onyx (9)
- # protorepl (4)
- # quil (1)
- # re-frame (56)
- # reagent (3)
- # rethinkdb (1)
- # spacemacs (4)
- # specter (12)
- # test-check (2)
- # testing (1)
- # vim (12)
- # yada (4)
Topic of the day: Adding logging to my current boot-driven project. Logging in uberjar works like expected. I can not find out how to set logging to TRACE in my dev environment automatically, though. Any pointers welcome. 🙂
@ska: more information needed 🙂 What logging lib?
Hey, I'm new to boot, and I'm just trying some basic things: when I run 'boot pom jar', I get 'writing <project>.jar', but I can't find the resulting jar anywhere.
Is this intended, or am I doing something terribly wrong?
@martinklepsch: tools.logging 0.3.1 + log4j 1.2.16
@kurt-yagram: files are not written to your project directory's target by default, try boot pom jar target
Am currently investigating creating a namespace to make everything very dynamic (reloading of default resources, loading other resources, setting log levels at run-time yaddayadda)
@martinklepsch: allright, thanks!
if I want to upload to a private repo, with a build.boot:
(set-env!
:source-paths #{"src/clj"}
:resource-paths #{"resources"}
:repositories [["clojars" {:url " "}]
["central" {:url " "}]
["internal" {:url "https://<ip-address>/repo/repository/internal/"
:username "xxx"
:password "xxx"}]
["snapshots" {:url "https://<ip-address>/repo/repository/snapshots/"
:username "xxx"
:password "xxx"} ]]
:dependencies '[[org.clojure/clojure "1.8.0"]])
(task-options!
pom {:project '<project>
:version "1.0.0-SNAPSHOT"}
aot {:namespace '#{<namespace>}}
jar {:manifest {}}
push {:repo "snapshots"})
When I want to deploy, I do get (boot pom jar push):
Could not transfer metadata <project>:<project>:1.0.0-SNAPSHOT/maven-metadata.xml from/to snapshots (https://<ip-address>/repo/repository/snapshots/): sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
I can access the repo from the browser using username and password.Yes, that is the exception when the trust store does not contain the right certificate.
it's a apache archiva repo... don't know about the certificate manager... So, if I understand well, the maven repo should be configured differently (or the trust store thereof)?
Not an abstraction most have to touch. Java has it's own list of certificate issuers. If yours isn't on the list, it throws that exception. The trust store of your local JVM needs a manual override. I don't don't know how this is done though.
ok... I'll check that, thanks! (True, on my browser, I had to 'accept an exception')
boot-environ
works fine for me in dev, but not when using aot
. Has anyone hit that ? ( https://github.com/weavejester/environ/blob/master/boot-environ/src/environ/boot.clj#L31 )
@nha: i recommend using AOT just to create a shim class that delegates actual functionality to clojure
(ns app.main-class
(:gen-class))
(defn -main [& args]
(require 'app.main)
(apply (resolve 'app.main/-main) args))
Hmm my main is basically the same as here (with the require/resolve), isn't that what you mean ? https://github.com/Deraen/saapas/blob/master/src/clj/backend/main.clj
Right ^^ the joys of production. I understand why it's not working now, not sure however how to fix it.
@alexmiller: yes it's the jar that boot boots from
i didn't want to have to maintain a complex set of shell scripts that have OS package dependencies etc
not a problem :)
just impressed by the creativity :)
Hi all, I am getting a NPE from ring:
java.lang.NullPointerException
at ring.middleware.reload$wrap_reload$fn__1018.invoke(reload.clj:22)
and I am trying to start my compojure webserver in dev mode… not quite sure where I go wrong