A question about pushing jars to clojars.

51 views
Skip to first unread message

Manoj Waikar

unread,
Oct 18, 2011, 8:53:53 AM10/18/11
to clo...@googlegroups.com
Hi,

I am new to pushing jars to clojars and I pushed one of my jars to clojars today. I created the project using lein new and then pushed it as per the docs mention it - lein jar, pom and scp pom.xml codionics.utilities-0.1.0.jar clo...@clojars.org:

The problem is that if I go to the website and click on the link, it says "
Thundering typhoons! I think we lost it. Sorry!" but if I include it in some other project.clj file and do a lein deps, it still downloads the jar file?

Secondly, what is needed to upload an updated jar file? Do I need to change the version number in the project.clj? I am asking this because I've uploaded a newer version using the same above two steps, I can't still click the link on clojars site and after doing lein deps, it is still downloading the older version of the jar file.

Please let me know.

Thanks,
Manoj.

Manoj Waikar

unread,
Oct 18, 2011, 1:38:37 PM10/18/11
to clo...@googlegroups.com
I just browsed the repository and saw my updated jar there, but I get the link by searching in clojars (which is throwing me the above error).
But still if I do a lein deps, it still downloads the old jar file.

Alex Osborne

unread,
Oct 19, 2011, 3:19:32 AM10/19/11
to clo...@googlegroups.com
Hi Manoj,

Manoj Waikar <mmwa...@gmail.com> writes:

> I am new to pushing jars to clojars and I pushed one of my jars to
> clojars today. I created the project using lein new and then pushed it
> as per the docs
> mention it - lein jar, pom and scp pom.xml
> codionics.utilities-0.1.0.jar clo...@clojars.org:
>
> The problem is that if I go to the website and click on the link, it says "Thundering typhoons! I think we lost it. Sorry!" but if I include it in some
> other project.clj file and do a lein deps, it still downloads the jar
> file?

Looks like the . in the artifact name confused compojure's URL
routing. I've just pushed out an update that fixes that.

>
> Secondly, what is needed to upload an updated jar file? Do I need to
> change the version number in the project.clj? I am asking this because
> I've uploaded a newer version using the same above two steps, I can't
> still click the link on clojars site and after doing lein deps, it is still
> downloading the older
> version of the jar file.

Correct. New versions should have new numbers. The site won't actually
refuse an update under an existing number, but it will be cached by
clients. You (and everyone else who's downloaded your jar) would have
to manually remove the file from the cache on your PC (stored under
~/.m2/repository).

Hope that helps,

Alex

Manoj Waikar

unread,
Oct 19, 2011, 5:58:29 AM10/19/11
to clo...@googlegroups.com
Oh, thanks a lot for the fix and the explanation.

That's why, the second time I was doing lein deps, I could immediately see, copying N files to lib message, instead of seeing a more verbose message, as we see during the first time.
Reply all
Reply to author
Forward
0 new messages