clojure-contrib.jar file

77 views
Skip to first unread message

octopusgrabbus

unread,
Jun 9, 2011, 5:55:44 PM6/9/11
to Clojure
1) I cloned clojure-contrib from github.

git clone git://github.com/richhickey/clojure-contrib.git

Completed successfully.

2) Then, I installed maven and in the clojure-contrib sub-directory
entered this command
mvn package.

Completed without errors.

3) When I look for clojure-contrib.jar in the target directory, it's
not there. The library files are under target.

Here is the top of the target directory listing:

target
target/classes
target/classes/clojure
target/classes/clojure/contrib

The only newly created jar file I can find is in the newly created .m2
directory under my home directory:
~/.m2/repository/com/theoryinpractise/clojure-maven-plugin/1.3.2/
clojure-maven-plugin-1.3.2.jar

Is this the clojure-contrib.jar file? If not what is the command to
package up the individual .clj files that were unpacked?

Many thanks.
cmn

Benny Tsai

unread,
Jun 9, 2011, 6:15:53 PM6/9/11
to clo...@googlegroups.com
I've never built contrib from source, but I believe the repository you'll want to clone from is this one:

git://github.com/clojure/clojure-contrib.git

octopusgrabbus

unread,
Jun 9, 2011, 6:46:08 PM6/9/11
to Clojure
Thanks.

I went to http://clojure.org/downloads and downloaded both the latest
stable Clojure and its contrib.

contrib built just fine and gave me the jar file I was looking for.

Sean Corfield

unread,
Jun 10, 2011, 1:09:00 AM6/10/11
to clo...@googlegroups.com

The monolithic contrib library has been deprecated (and I'm not sure
you'll get it to build).

If you're on Clojure 1.2.x, just download the 1.2.0 contrib from
http://clojure.org/downloads

If you're on Clojure 1.3.0 (either an alpha or a snapshot), you'll
either want the last monolithic build: 1.3.0-alpha4 (I *think* the id
is org.clojure.contrib/standalone?). Or you'll want to start using the
new modular contrib libraries:
http://dev.clojure.org/display/design/Contrib+Library+Names (see also
http://corfield.org/clj/index.cfm).
--
Sean A Corfield -- (904) 302-SEAN
An Architect's View -- http://corfield.org/
World Singles, LLC. -- http://worldsingles.com/
Railo Technologies, Inc. -- http://www.getrailo.com/

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

Stuart Sierra

unread,
Jun 10, 2011, 9:14:59 AM6/10/11
to clo...@googlegroups.com
Yes, the last monolithic contrib build was 1.3.0-alpha4. It builds with Clojure 1.3.0-alpha4, but not the later alphas.

There are 2 "combined" jars in contrib 1.3.0-alpha4.  The "standalone" module contains all the classes/sources merged into a single JAR file.  The "complete" module contains nothing itself, but depends on all the other modules.  Sorry about the vague names.

New contrib library sources can be found at github.com/clojure and release JARs in Maven repositories:
http://search.maven.org/#search|ga|1|g%3A%22org.clojure%22

-Stuart Sierra
clojure.com

octopusgrabbus

unread,
Jun 11, 2011, 8:26:25 AM6/11/11
to Clojure
Thanks. These are the links I've used, and it's worked just fine on
two systems now. I probably got the deprecated version.

On Jun 10, 1:09 am, Sean Corfield <seancorfi...@gmail.com> wrote:
> On Thu, Jun 9, 2011 at 3:15 PM, Benny Tsai <benny.t...@gmail.com> wrote:
> > I've never built contrib from source, but I believe the repository you'll
> > want to clone from is this one:
>
> > git://github.com/clojure/clojure-contrib.git
>
> The monolithic contrib library has been deprecated (and I'm not sure
> you'll get it to build).
>
> If you're on Clojure 1.2.x, just download the 1.2.0 contrib fromhttp://clojure.org/downloads
>
> If you're on Clojure 1.3.0 (either an alpha or a snapshot), you'll
> either want the last monolithic build: 1.3.0-alpha4 (I *think* the id
> is org.clojure.contrib/standalone?). Or you'll want to start using the
> new modular contrib libraries:http://dev.clojure.org/display/design/Contrib+Library+Names(see alsohttp://corfield.org/clj/index.cfm).
> --
> Sean A Corfield -- (904) 302-SEAN
> An Architect's View --http://corfield.org/
> World Singles, LLC. --http://worldsingles.com/
> Railo Technologies, Inc. --http://www.getrailo.com/
Reply all
Reply to author
Forward
0 new messages