2012/11/20 John Gabriele <jmg3...@gmail.com> > On Tuesday, November 20, 2012 10:35:46 AM UTC-5, lpetit wrote: >> >> 2012/11/20 Laurent PETIT <lauren...@gmail.com> >> >>> 2012/11/20 Kyle R. Burton <kyle....@gmail.com> >>> >>> >>>> >>>>> The Leiningen coordiates are: >>>>>> >>>>>> [org.clojars.kyleburton/clj-****xpath "1.3.3"] >>>>>> >>>>>> >>>>> Just curious, why isn't that just [clj-xpath "1.3.3"]? Searching >>>>> clojars, you seem to have uploaded 1.3.0 a while back... >>>>> >>>>> >>>> That was a mistake. I didn't want to claim a global 'clj-xpath' >>>> namespace on Clojars so I added a namespace. I'm not sure if I can remove >>>> that. >>>> >>> >>> Yeah, you probably shouldn't claim a global 'clj-xpath' namespace. >>> >>> At least, I believe it. And some other guys too, like >>> https://twitter.com/**richhickey/status/**249545807718670336<https://twitter.com/richhickey/status/249545807718670336>:-) >>> >> >> And also >> https://twitter.com/**stuarthalloway/status/**253158176843780096<https://twitter.com/stuarthalloway/status/253158176843780096> >> >> etc. >> > > Oh, thanks. My understanding was that current best practice was to choose > a good name, and then if you're the original author, your project's > group-id = artifact-id (and thus you get the https://clojars.org/my-projurl). > > (And note, I think this is separate from the discussion of namespaces > within your project's code). >
Maybe, indeed. I tend to think that the group-id's prefix is your namespace, e.g. if I own lpetit.org, then group-id is at least org.lpetit (but I could refine more if I had several categories of products, etc.), and then some clojure namespaces would be org.lpetit.project-foo.core, etc. Also, note that in some containers environments, the jars produced contain only in their names the artefact-id, e.g. if you artefact-id is "file" then the final jar is file-0.3.4.jar for instance. So I also tend (even if it's verbose) to repeat the group-id in the artefact-id, even if it's far from ideal. -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en