Fork me on GitHub
#leiningen
<
2020-01-27
>
noisesmith19:01:29

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

Alex Miller (Clojure team)19:01:39

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

Alex Miller (Clojure team)19:01:06

oh sorry, wrong channel, so scratch that :)

noisesmith19:01:11

oh - this is from a leiningen project :D

Alex Miller (Clojure team)19:01:43

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

noisesmith19:01:30

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

Alex Miller (Clojure team)19:01:52

basically it would be an artifact without a jar

noisesmith20:01:14

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

mikerod21:01:35

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

mikerod21:01:51

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

mikerod21:01:47

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. 🔥

noisesmith22:01:00

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

👍 4