leiningen

N.B. The maintainers are on #leiningen on Libera chat IRC. Go there for direct support/bug reports.
2020-01-27T19:54:29.025500Z

what exactly does :extension "pom" mean in a dep? I'm sure this is terminology borrowed from maven but the terms used are so overloaded the google hits are hard to sort through

alexmiller 2020-01-27T19:55:39.025900Z

it means it is a Maven project described by a pom.xml

alexmiller 2020-01-27T19:55:44.026100Z

(not a deps.edn)

alexmiller 2020-01-27T19:56:06.026600Z

oh sorry, wrong channel, so scratch that :)

2020-01-27T19:56:11.026800Z

oh - this is from a leiningen project :D

2020-01-27T19:56:15.027Z

haha, np

alexmiller 2020-01-27T19:56:43.027500Z

you can create pom-only projects in Maven that just pull in deps but don't build themselves, and I believe that's what this means

2020-01-27T19:57:30.028Z

OK, so that resolves the problem, definitely not appropriate for this dep, thanks

alexmiller 2020-01-27T19:57:52.028300Z

basically it would be an artifact without a jar

2020-01-27T20:00:14.029500Z

there are so many meanings for "extension" including multiple in the context of maven, and the overlap of "pom" with extension applies to at least two meanings - the results in google were just noise

alexmiller 2020-01-27T20:09:22.029700Z

was one influence on the choice of the name "Clojure" :) (0 hits)

🤯 1
1
2020-01-27T21:20:35.030500Z

@noisesmith in a lein dependency the :extension does refer to the <type> in a maven dep http://maven.apache.org/pom.html#Dependencies

2020-01-27T21:20:51.030700Z

not sure why the name differs, looking for history on that one

2020-01-27T21:22:45.031100Z

can be seen in pomegranate by this name though https://github.com/clj-commons/pomegranate/blob/pomegranate-1.1.0/src/main/clojure/cemerick/pomegranate/aether.clj#L219 (which is what lein is using)

2020-01-27T21:26:47.031600Z

Looks like it’s just carry over from the terminology used within the aether lib itself. eg. See https://maven.apache.org/resolver/apidocs/org/eclipse/aether/artifact/DefaultArtifact.html that’s somewhat unfortunate since official Maven docs refer to it as <type> however, “type” would be at least as bad, probably a lot worse, to search than “extension” even - so no solution there. 🔥

2020-01-27T22:06:00.032300Z

thanks for the deep diive, yeah the naming is unfortunate all around

đź‘Ť 1