How to create jar for data.int-map

65 views
Skip to first unread message

Cecil Westerhof

unread,
Feb 18, 2015, 6:00:42 PM2/18/15
to clo...@googlegroups.com
I like to make a jar for contrib.data.int-map. But when I do:
    mvn package
I get:
[INFO] --- clojure-maven-plugin:1.3.13:test (clojure-test) @ data.int-map ---
Exception in thread "main" java.io.FileNotFoundException: Could not locate clojure/test/check/generators__init.class or clojure/test/check/generators.clj on classpath: , compiling:(clojure/data/int_map_test.clj:1:1)
        at clojure.lang.Compiler.load(Compiler.java:7142)
        at clojure.lang.RT.loadResourceScript(RT.java:370)

What need I to do to build the jar?

The command:
    mvn clojure:repl
does work and then I can do:
    (require '[clojure.data.int-map :as im])

But generating the jar does not.

--
Cecil Westerhof

James Reeves

unread,
Feb 18, 2015, 7:34:51 PM2/18/15
to clo...@googlegroups.com
The data.int-map repository has a project.clj file, so can't you use Leiningen? Or alternatively, just download the pre-built jar from the Maven repository?

- James

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

Cecil Westerhof

unread,
Feb 18, 2015, 8:07:42 PM2/18/15
to clo...@googlegroups.com
2015-02-19 1:33 GMT+01:00 James Reeves <ja...@booleanknot.com>:
The data.int-map repository has a project.clj file, so can't you use Leiningen?

​That worked like a charm. With googling I only encountered maven.

 
Or alternatively, just download the pre-built jar from the Maven repository?

​I did not find a pre-built jar. I can built it myself now, but where do I find the pre-built versions?​
 

 
On 18 February 2015 at 23:00, Cecil Westerhof <cldwes...@gmail.com> wrote:
I like to make a jar for contrib.data.int-map. But when I do:
    mvn package
I get:
[INFO] --- clojure-maven-plugin:1.3.13:test (clojure-test) @ data.int-map ---
Exception in thread "main" java.io.FileNotFoundException: Could not locate clojure/test/check/generators__init.class or clojure/test/check/generators.clj on classpath: , compiling:(clojure/data/int_map_test.clj:1:1)
        at clojure.lang.Compiler.load(Compiler.java:7142)
        at clojure.lang.RT.loadResourceScript(RT.java:370)

What need I to do to build the jar?

The command:
    mvn clojure:repl
does work and then I can do:
    (require '[clojure.data.int-map :as im])

But generating the jar does not.

--
Cecil Westerhof

Michael Griffiths

unread,
Feb 19, 2015, 5:58:37 AM2/19/15
to clo...@googlegroups.com
Clojure and Clojure contrib libraries are uploaded to Sonatype when released. e.g. https://oss.sonatype.org/content/groups/public/org/clojure/data.int-map/
 
There should be both a jar with sources and jar without sources for each released version of each lib.
 
Michael

Cecil Westerhof

unread,
Feb 19, 2015, 6:39:22 AM2/19/15
to clo...@googlegroups.com
2015-02-19 11:58 GMT+01:00 Michael Griffiths <mikeygr...@gmail.com>:
Clojure and Clojure contrib libraries are uploaded to Sonatype when released. e.g. https://oss.sonatype.org/content/groups/public/org/clojure/data.int-map/
 
There should be both a jar with sources and jar without sources for each released version of each lib.
 
​Thanks. I think information like this should be easier to find. I like Clojure, but sometimes it is difficult to find things.

--
Cecil Westerhof

Alex Miller

unread,
Feb 19, 2015, 10:42:43 AM2/19/15
to clo...@googlegroups.com
The first line of the readme for the project (https://github.com/clojure/data.int-map) has the Leiningen jar dependency info on it:

[org.clojure/data.int-map "0.1.0"]

Also, the 'mvn package' command should have worked since that's how releases get built. That was a bug in the pom dependencies and I have updated it to match the version in project.clj.

Sam Raker

unread,
Feb 19, 2015, 11:00:05 AM2/19/15
to clo...@googlegroups.com
@Cecil: while it's a little irritating that there's not more centralization of third-party Clojure libs, I've found that Leiningen + some googling solves the problem like 99% of the time.

Cecil Westerhof

unread,
Feb 19, 2015, 11:15:03 AM2/19/15
to clo...@googlegroups.com
2015-02-19 16:42 GMT+01:00 Alex Miller <al...@puredanger.com>:
The first line of the readme for the project (https://github.com/clojure/data.int-map) has the Leiningen jar dependency info on it:

[org.clojure/data.int-map "0.1.0"]

​But if you do not know that this is mend for Leiningen …

Just adding: You can build with 'mvn package' or 'lein jar' would help a lot.
 
 
Also, the 'mvn package' command should have worked since that's how releases get built. That was a bug in the pom dependencies and I have updated it to match the version in project.clj.

​That works now.

By the way the jar build with Maven differs from the jar build with Leiningen.​
 
 
 
On Thursday, February 19, 2015 at 5:39:22 AM UTC-6, Cecil Westerhof wrote:
2015-02-19 11:58 GMT+01:00 Michael Griffiths <mikeygr...@gmail.com>:
Clojure and Clojure contrib libraries are uploaded to Sonatype when released. e.g. https://oss.sonatype.org/content/groups/public/org/clojure/data.int-map/
 
There should be both a jar with sources and jar without sources for each released version of each lib.
 
​Thanks. I think information like this should be easier to find. I like Clojure, but sometimes it is difficult to find things.

--
Cecil Westerhof

Cecil Westerhof

unread,
Feb 19, 2015, 11:19:59 AM2/19/15
to clo...@googlegroups.com
2015-02-19 17:00 GMT+01:00 Sam Raker <sam....@gmail.com>:
@Cecil: while it's a little irritating that there's not more centralization of third-party Clojure libs, I've found that Leiningen + some googling solves the problem like 99% of the time.

​I did come quit an end with Google, but then I was bitten by a broken pom file.
I think I like Leiningen better as Maven, so I should invest some time in Leiningen.
​With Google I only found build information about Maven, not about Leiningen. But I am enlightened now. :-D
 
On Thursday, February 19, 2015 at 10:42:43 AM UTC-5, Alex Miller wrote:
The first line of the readme for the project (https://github.com/clojure/data.int-map) has the Leiningen jar dependency info on it:

[org.clojure/data.int-map "0.1.0"]

Also, the 'mvn package' command should have worked since that's how releases get built. That was a bug in the pom dependencies and I have updated it to match the version in project.clj.




On Thursday, February 19, 2015 at 5:39:22 AM UTC-6, Cecil Westerhof wrote:
2015-02-19 11:58 GMT+01:00 Michael Griffiths <mikeygr...@gmail.com>:
Clojure and Clojure contrib libraries are uploaded to Sonatype when released. e.g. https://oss.sonatype.org/content/groups/public/org/clojure/data.int-map/
 
There should be both a jar with sources and jar without sources for each released version of each lib.
 
​Thanks. I think information like this should be easier to find. I like Clojure, but sometimes it is difficult to find things.

--
Cecil Westerhof

Sam Raker

unread,
Feb 19, 2015, 11:52:26 AM2/19/15
to clo...@googlegroups.com
I guess by "google" I really meant "using google to search github." AFAICT, there's 0 reason to opt for anything other than Leiningen when given the choice. It makes things astonishingly easy, and nearly every more-than-alpha library has lein dependency info right up near the top. If they don't, clojars or maven should have it.

--
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 a topic in the Google Groups "Clojure" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/clojure/cDNGgpTeAcc/unsubscribe.
To unsubscribe from this group and all its topics, send an email to clojure+u...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages