hello all
having some issues creating an uberjar
getting these exceptions (I've provided the classpath tree with clj -Stree
)
https://gist.github.com/dimovich/3d8ac74ed7ea7f96cb51a9d6d0b44ef5
@dimovich have you run clj
once without pack?
yeah, I can start my project with clj -m project.core
are there any other ways of investigating the classpath issues?
I think this is to do with unreproducible deps.edn files, in some way. A quick solution is to add:
:mvn/repos {
"central" {:url "<https://repo1.maven.org/maven2/>"}
"clojars" {:url "<https://repo.clojars.org/>"}}
to your deps.ednpack doesn't look at the "global" or "user" deps.edn files, which automatically provide maven central. I really want to never consider the user one, but do want to consider the global one. Unfortunately clj
doesn't really give me a good way to distinguish via the API.
@dominicm whew! that fixes the issue. thanks!
strange that everything was working fine a week ago... I guess a new library had an unresolvable dependency
I'm have some suspicions about what happened there. I'm guessing a transitive dependency of something of something in ~/.clojure/deps.edn makes it end up as a different version.
I guess clj -Srepro
would have fixed it.
@dimovich If you remove the :mvn/repos
, I bet it will continue to work.
trying now
clj -Srepro -A:uberjar
still gives me those errors
seems I have to keep the :mvn/repos
Interesting, I am surprised and confused by this
will remove stuff from .clojure/deps.edn
and retry
well, even if I delete all stuff from ~/.clojure/deps.edn
I still get the exception
the only way to make it uberjar, is to add the :mvn/repos
I'm not using the latest version of pack.alpha
will experiment with it...
@dominicm thanks again for helping!
Interesting, I'm not quite sure what this is.