Building Incanter applications with Leiningen and Clojars.org

15 views
Skip to first unread message

liebke

unread,
Nov 20, 2009, 7:36:35 AM11/20/09
to Incanter
I've been playing with Technomancy's Leiningen build tool and have
used it to upload Incanter and its dependencies to Alex Osborne’s
Clojars.org repository.

I can't use Leiningen to actually build Incanter at this point, I'm
having trouble figuring out how to do a Java compile of
incanter.Matrix with it. But it works great for building Clojure
applications that use Incanter, and I've written up a short blog post
describing how, http://incanter-blog.org/2009/11/20/leiningen-clojars/.

David

cburroughs

unread,
Nov 20, 2009, 10:33:38 AM11/20/09
to Incanter
It's really exciting to see the improvements in using Clojure
libraries over the past few months. Has anyone had success using
incanter with the clojure-maven-plugin through clojars? For me the
standard example (:use (incanter core stats charts)) in the repl
results in an error. But from what I can tell that is just the same
incanter.Matrix problem David mentioned.

clojure.lang.Namespace.importClass(Ljava/lang/Class;)Ljava/lang/Class;
[Thrown class java.lang.NoSuchMethodError]

Restarts:
0: [ABORT] Return to SLIME's top level.

Backtrace:
0: incanter.internal$loading__6207__auto____1.invoke(internal.clj:
19)
1: incanter.internal__init.load(Unknown Source)
2: incanter.internal__init.<clinit>(Unknown Source)

bradford cross

unread,
Nov 20, 2009, 12:11:13 PM11/20/09
to inca...@googlegroups.com
If you take a look at my branch of incanter on github, you can a fully mavenized incanter.  This works, but it accesses some jars via our own artifactory repository.  it also uses dysinger's clojure-pom rather than clojrue-maven-plugin.

We are looking to migrate, and davidhas been working on this as well.

The clojure build and dependency world is in a bit of shake up at the moment so I'm sure we'll see something nice and simple in incanter master soon. 

cburroughs

unread,
Nov 24, 2009, 12:11:40 PM11/24/09
to Incanter
I had looked at your branch before, but my maven luck was much better
this time. I got bradford/master to mvn install and could then
dependent on incanter in another project using the clojure-maven-
plugin and all of the swank goodness worked. Thanks.

On Nov 20, 12:11 pm, bradford cross <bradford.n.cr...@gmail.com>
wrote:
> If you take a look at my branch of incanter on github, you can a fully
> mavenized incanter.  This works, but it accesses some jars via our own
> artifactory repository.  it also uses dysinger's clojure-pom rather than
> clojrue-maven-plugin.
>
> We are looking to migrate, and davidhas been working on this as well.
>
> The clojure build and dependency world is in a bit of shake up at the moment
> so I'm sure we'll see something nice and simple in incanter master soon.
>
Reply all
Reply to author
Forward
0 new messages