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 [email protected]
Note that posts from new members are moderated - please be patient with your
first post.
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en