How do I depend on clojure 1.7.0-master-SNAPSHOT?

251 views
Skip to first unread message

Michael Griffiths

unread,
Feb 26, 2015, 2:21:35 PM2/26/15
to clo...@googlegroups.com
Hi all,

I have the following in my project.clj:

  :dependencies [[org.clojure/clojure "1.7.0-master-SNAPSHOT"]]

but am getting this error:

Could not find artifact org.clojure:clojure:jar:1.7.0-master-SNAPSHOT in clojars (https://clojars.org/repo/)
Could not find artifact org.clojure:clojure:jar:1.7.0-master-SNAPSHOT in snapshots (https://oss.sonatype.org/content/repositories/snapshots)
This could be due to a typo in :dependencies or network issues.
If you are behind a proxy, try setting the 'http_proxy' environment variable.

Am I doing something wrong?

Michael

Andy Fingerhut

unread,
Feb 26, 2015, 3:33:16 PM2/26/15
to clo...@googlegroups.com
One way to get 1.7.0-master-SNAPSHOT into your local Maven repo in your $HOME/.m2 directory is to do these commands to build it yourself and install it there:

# First command creates a clojure directory, and subdirectories beneath that.
cd clojure
# mvn install compiles Clojure source, runs built-in tests, and if everything goes well, installs 1.7.0-master-SNAPSHOT.jar in $HOME/.m2
mvn install

Andy


--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clo...@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+u...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
---
You received this message because you are subscribed to the Google Groups "Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email to clojure+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Sean Corfield

unread,
Feb 26, 2015, 6:11:05 PM2/26/15
to clo...@googlegroups.com
On Feb 26, 2015, at 11:21 AM, Michael Griffiths <mikeygr...@gmail.com> wrote:
> I have the following in my project.clj:
>
> :dependencies [[org.clojure/clojure "1.7.0-master-SNAPSHOT"]]
> :repositories [["snapshots" "https://oss.sonatype.org/content/repositories/snapshots"]]

The only difference between my project.clj (which works) and yours is the trailing / on the repository address:

:dependencies [[org.clojure/clojure "1.7.0-master-SNAPSHOT"]]
:repositories [["snapshots" "https://oss.sonatype.org/content/repositories/snapshots/"]]

Sean Corfield -- (904) 302-SEAN
An Architect's View -- http://corfield.org/

"Perfection is the enemy of the good."
-- Gustave Flaubert, French realist novelist (1821-1880)



Michael Griffiths

unread,
Feb 27, 2015, 6:30:06 PM2/27/15
to clo...@googlegroups.com
Sean, thanks - but does it still work for you if you remove ~/.m2/ (or just remove 1.7.0-master-SNAPSHOT from here)? I've tried with the trailing slash and am still having no luck (both locally and on Travis CI).

Andy, having this as a dependency was working previously but I will clone and build master directly in the meantime - thank you.

Michael

Sean Corfield

unread,
Feb 27, 2015, 7:18:34 PM2/27/15
to clo...@googlegroups.com
On Feb 27, 2015, at 3:30 PM, Michael Griffiths <mikeygr...@gmail.com> wrote:
Sean, thanks - but does it still work for you if you remove ~/.m2/ (or just remove 1.7.0-master-SNAPSHOT from here)? I've tried with the trailing slash and am still having no luck (both locally and on Travis CI).

Yes — just to test I blew away my ~/.m2/repository/org tree and re-ran my build and Leiningen pulled down the latest snapshot (along with hundreds of other org.* dependencies):

     [exec] Retrieving org/clojure/clojure/1.7.0-master-SNAPSHOT/clojure-1.7.0-master-20150220.180325-29.pom from sonatype
     [exec] Retrieving org/clojure/clojure/1.7.0-master-SNAPSHOT/clojure-1.7.0-master-20150220.180325-29.jar from sonatype

Sean Corfield -- (904) 302-SEAN

Michael Griffiths

unread,
Feb 28, 2015, 4:54:09 PM2/28/15
to clo...@googlegroups.com
Hmm, I've noticed a file named resolver-status.properties is created in ~/.m2/repository/org/clojure/clojure/1.7.0-master-SNAPSHOT with the following contents:

#NOTE: This is an internal implementation file, its format can be changed without prior notice.
#Sat Feb 28 21:45:36 GMT 2015
maven-metadata-clojars.xml.error=
maven-metadata-snapshots.xml.error=Could not transfer metadata org.clojure\:clojure\:1.7.0-master-SNAPSHOT/maven-metadata.xml from/to snapshots (https\://oss.sonatype.org/content/repositories/snapshots/)\: Checksum validation failed, expected 5c88ee9a5d32a33ad7d16246ec3363fc98631b0a but is c20a0181e802635cf0d33d59a244204188d5e1a5
maven-metadata-clojars.xml.lastUpdated=1425159935986


SHA1(maven-metadata.xml)= c20a0181e802635cf0d33d59a244204188d5e1a5


5c88ee9a5d32a33ad7d16246ec3363fc98631b0a

Which makes it seem like an issue with the deployed artifact/metadata? I'm not really sure why it's working for you but not me!

Thanks,

Michael
Reply all
Reply to author
Forward
0 new messages