tools-deps

Discuss tools.deps.alpha, tools.build, and the clj/clojure command-line scripts! See also #depstar #clj-new
pavlosmelissinos 2021-06-01T10:15:56.072Z

I have the following deps.edn file:

{:deps    {org.clojure/clojure                  {:mvn/version "1.10.3"}
           org.apache.httpcomponents/httpclient {:mvn/version "4.5.13"}}

 :aliases {:nvd {:extra-deps {lein-nvd/lein-nvd {:git/url "git@github.com:rm-hull/lein-nvd.git"
                                                 :sha "2493010bb61ea1cbd84a8f18ead45fe0ea2a874d"}}
                 :main-opts ["-m" "nvd.task.check"]}}}
If I run clj -M:nvd, I'm getting an error about not being able to find artifact org.apache:apache:pom:21 (I'm including the full report in a conversation thread) If I remove the dependency on org.apache.httpcomponents/httpclient, I get no errors. What could be the issue here? Apologies if it's off-topic πŸ™‚

pavlosmelissinos 2021-06-01T10:16:51.072100Z

pavlosmelissinos 2021-06-01T10:56:24.073Z

Huh, it seems to be fixed if I manually add the maven repositories:

:mvn/repos {"central" {:url "<https://repo1.maven.org/maven2/>"}
             "clojars" {:url "<https://repo.clojars.org/>"}}
I thought both of these were used by default :thinking_face:

alexmiller 2021-06-01T12:44:33.074800Z

They are. It’s possible changing the file just affected the staleness check and forced a cache recompute

alexmiller 2021-06-01T12:45:06.075600Z

If you remove those, does it still work?

pavlosmelissinos 2021-06-01T12:48:42.075800Z

I does not, unfortunately! 😞 > Execution error (ArtifactNotFoundException) at org.eclipse.aether.internal.impl.DefaultArtifactResolver/resolve (DefaultArtifactResolver.java:414). > Could not find artifact org.apache:apache:pom:21 I'm on Clojure CLI version 1.10.3.855 btw

alexmiller 2021-06-01T12:50:21.076600Z

I’ll look at it in a little bit then

alexmiller 2021-06-01T12:50:44.077300Z

Might have to do with it being a pom dep

pavlosmelissinos 2021-06-01T12:51:21.077500Z

Thanks! Let me know how I can help πŸ™‚