babashka

2026-01-21T10:53:45.211459Z

How to configure custom Maven repositories in Babashka’s bb.edn to override defaults? I tried, but it does not work {:paths ["src"] :pods {org.babashka/postgresql {:version "0.1.4"}} :deps {com.github.seancorfield/honeysql {:mvn/version "2.5.1103"}} :mvn/repos {"clojars" {:url "https://repo.clojars.org/"} "central" {:url "https://repo1.maven.org/maven2/"}}}

2026-01-21T11:04:37.393819Z

~/.m2/settings.xml has config like this:


  bytedance-public
  *,!x,!y
  
but I can not modify it

borkdude 2026-01-21T11:31:38.671649Z

Can you test it with deps.edn first to see if it works with that?

Bob B 2026-01-21T18:09:56.383679Z

I tried to do something similar a while back, and I got stuck somewhere, but that was a long time ago. Just to sort of test this out, I made a repro with obviously unusable URLs, and the deps fetch failed, which would suggest to me that the configuration of custom repos "works"

 cat bb.edn
{:deps {medley/medley {:mvn/version "1.3.0"}}
 :mvn/repos {"clojars" {:url ""}
             "central" {:url ""}}}
 bb
Error building classpath. Could not find artifact medley:medley:jar:1.3.0 in central ()

👍 2