Fork me on GitHub

Hi there! Was wondering how I can add a link to Github to a project's Clojars page. Currently it only says "N/A". Would be awesome if someone could point me into the right direction πŸ™‚


@hi895 Do you mean in the top left, where normally it is a link to github?


@tcrawley yes exactly πŸ™‚ I'm using lein for deploying btw


That comes from the vcs metadata in the pom.xml, which lein should populate automatically if you are deploying from a git repo. Though the clojars code may only know how to construct a url from that for github - it may not work if your remote isn't github


The scm tag in the pom file is pretty empty. Not sure if that's the source where Clojars takes the information from thought:



Yes, I was just typing that :)


That's where it comes from


is an example of what it should look like


I know lein has some logic around generating that, but I don't know what would prevent it from doing so. Maybe ask in #leiningen ?


Thanks a lot @tcrawley for pointing me in the right direction! Sure I will figure this out πŸ™‚


My pleasure!


@tcrawley found the issue btw. lein only matches [email protected] urls. I was using an https:// url. Guess I will ask lein if they like to change that over there πŸ™‚ (see


@hi895 that’s an interesting observation... there are some docs for cljdoc that also suggest using the https URL - do you think they should be changed?

cljdoc 4

will check it out πŸ™‚


Seems like cljdoc is also affected by this. Guess that many projects are using lein for release. Since lein didn't put that info in the pom file for those repositories, it's hard to analyze it. I think the only reasonable place to fix this is in lein, not on the consumer side. There are many examples I came across: If there is no url in the scm info in pom, can still use the main url tag in the pom file which probably points to a useful resource πŸ™‚


Feel free to just do it or open an issue πŸ™Œ