Re: ANN: clojure-maven-plugin 1.0 released and in maven central

2009-08-26 Thread Rob Wolfe
ngocdaothanh napisaƂ(a): > I'm new to Maven. Thank you for the explanation. > > Using git-submodules and is a good idea. Prior to > using your plugin, I use clojure and clojure-contrib with Maven like > this: > > 1. Manually download from GitHub and compile clojure and clojure- > contrib. > 2.

Re: ANN: clojure-maven-plugin 1.0 released and in maven central

2009-08-25 Thread Mark Derricutt
Hi Dragan, The example projects been updated with a repository declaration pointing to the clojure snapshots, and using the released plugin version. Running "mvn test" runs the tests as expected. You mentioned " Can you, please, update the example so we can see exactly how to hook up clojure:tes

Re: ANN: clojure-maven-plugin 1.0 released and in maven central

2009-08-25 Thread Mark Derricutt
In this scenario, I'd probably not try to fight maven and split this into two modules - api and implementation. Even in a pure java project I'm tempted to keep them separate (esp. with the OSGi stuff I'm doing, it looks like this would solve more of our reloading issues). As the plugin stands curr

Re: ANN: clojure-maven-plugin 1.0 released and in maven central

2009-08-25 Thread Dragan Djuric
Hi Mark Thank you for the effort! A Meven plugin is something really needed for any Java environment. Can you please update the example roject, since the default settings (the ones from the above-mentioned gist and the docs) does not seem to work as expected. Here's what I mean. I have a projec

Re: ANN: clojure-maven-plugin 1.0 released and in maven central

2009-08-25 Thread Laurent PETIT
This makes me think about a possible improvement. (stop me if I'm wrong). I think that your java source classes will only have a compilation dependency on clojure source if your clojure source generates classes or interfaces via gen-class / gen-interface. (If there are other kind of dependencies

Re: ANN: clojure-maven-plugin 1.0 released and in maven central

2009-08-25 Thread Mark Derricutt
If you have the clojure:compile goal bound to the compile phase it runs -after- the normal java compiler. One solution I've used is just using multiple modules and keeping the clojure code separate from the java. However, if your only talking TO java from clojure this might not be a problem. --

Re: ANN: clojure-maven-plugin 1.0 released and in maven central

2009-08-25 Thread Christian Vest Hansen
How does it work if you have both Java and Clojure code in the same project? Which is compiled first? On Tue, Aug 25, 2009 at 12:46 PM, Mark Derricutt wrote: > For my own usages I've just been using IDEAs native maven support and > opening the pom.xml - This sadly doesn't pick up the source direc

Re: ANN: clojure-maven-plugin 1.0 released and in maven central

2009-08-25 Thread Mark Derricutt
For my own usages I've just been using IDEAs native maven support and opening the pom.xml - This sadly doesn't pick up the source directories thou. -- On Tue, Aug 25, 2009 at 7:33 PM, Laurent PETIT wrote: > Excellent, thanks Mark for this contribution ! > > When time permits, I'll undoubtedly gi

Re: ANN: clojure-maven-plugin 1.0 released and in maven central

2009-08-25 Thread Mark Derricutt
For a bleeding edge/nightly build of clojure-lang and clojure-contrib I'm using the repository at: http://tapestry.formos.com/maven-snapshot-repository groupId of org.clojure artifact of clojure-lang / clojure-contrib -- On Tue, Aug 25, 2009 at 5:35 PM, ngocdaothanh wrote: > > I want to ask

Re: ANN: clojure-maven-plugin 1.0 released and in maven central

2009-08-25 Thread Laurent PETIT
Excellent, thanks Mark for this contribution ! When time permits, I'll undoubtedly give a thorough look at it, and see how I can integrate this with Counterclockwise (new name for clojure-dev eclipse plugin). Something like a mvn clojure:eclipse that could extend the eclipse:eclipse goal for initi

Re: ANN: clojure-maven-plugin 1.0 released and in maven central

2009-08-24 Thread ngocdaothanh
I'm new to Maven. Thank you for the explanation. Using git-submodules and is a good idea. Prior to using your plugin, I use clojure and clojure-contrib with Maven like this: 1. Manually download from GitHub and compile clojure and clojure- contrib. 2. Install them to the local Maven repository:

Re: ANN: clojure-maven-plugin 1.0 released and in maven central

2009-08-24 Thread Mark Derricutt
The plugin itself has NO dependency on clojure or clojure contrib so you'll need to add them to your own pom.xml first. This is mostly because a) clojure contrib hasn't been released or in maven central, b) I'm using clojure 1.1 on my own projects which isn't released. For my own projects, I have

Re: ANN: clojure-maven-plugin 1.0 released and in maven central

2009-08-24 Thread ngocdaothanh
Hi, Is clojure-contrib included? I tried but mvn clojure:compile gives: Exception in thread "main" java.io.FileNotFoundException: Could not locate clojure/contrib/json/read__init.class or clojure/contrib/json/ read.clj on classpath pom.xml: http://gist.github.com/174217 hello.clj: (ns hello) (