Armando, Thanks for your help. I was using `com. theoryinpractise.clojure-maven-plugin` at first but recently switched because I figured the other would help (seeing that it was built by Stuart Sierra..
I've switched back now, but stil receiving an error. When I `mvn compile` all is fine and dandy. However, `mvn test` fails to find the :gen-class I defined. Do I have my executions setup correctly? <executions> <execution> <id>clojure-compile</id> <phase>compile</phase> <goals> <goal>compile</goal> </goals> </execution> <execution> <id>test-clojure-compile</id> <phase>test</phase> <goals> <goal>testCompile</goal> </goals> </execution> <execution> <id>test-clojure</id> <phase>test</phase> <goals> <goal>test-with-junit</goal> </goals> </execution> </executions> On Wednesday, May 16, 2012 10:39:49 AM UTC-4, Armando Blancas wrote: > > This repo and plugin tags should do it. > > <repositories> > <repository> > <id>clojure-releases</id> > <url>http://build.clojure.org/releases</url> > </repository> > </repositories> > ... > <plugin> > <groupId>com.theoryinpractise</groupId> > <artifactId>clojure-maven-plugin</artifactId> > <version>1.3.4</version> > <executions> > <execution> > <id>compile-clojure</id> > <phase>compile</phase> > <goals> > <goal>compile</goal> > </goals> > </execution> > </executions> > </plugin> > ... > > On Wednesday, May 16, 2012 7:04:54 AM UTC-7, Matthew Boston wrote: >> >> Right, I totally understand I need AOT compilation for calling Clojure >> from Java. I'm asking how to set that up in maven. >> >> Thanks for your help. >> >> On Wednesday, May 16, 2012 9:58:18 AM UTC-4, Meikel Brandmeyer (kotarak) >> wrote: >>> >>> Hi, >>> >>> you have to use AOT compilation to generate the class with gen-class. >>> Additionally you have to compile the clojure source before you compile the >>> java code since otherwise the class is missing. I don't know how to do this >>> with maven. I can tell you only for gradle. >>> >>> Kind regards >>> Meikel >>> >>> -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en