The new version of the maven-clojure-compiler plugin now supports the toolchains API to solve this ( running maven under 1.6, compiling with 1.5) but that won't help clojure itself:
You can read more about this at: http://maven.apache.org/guides/mini/guide-using-toolchains.html I really need to update the README for this, and actually post a release announcement email. </time?> -- Pull me down under... On Tue, Mar 23, 2010 at 4:54 AM, Stuart Sierra <the.stuart.sie...@gmail.com>wrote: > Actually, this is more complicated than I thought. The build > processes will use whatever default version of Java is installed > locally. > > Maven has config options for the Java *compiler* version to use, but > that will only work for .java source files (of which there are non in > contrib). The version of Java under which the Clojure compiler runs > is just the local "java" executable. > > The solution, I suppose, is to install Java 1.5 on the > build.clojure.org server and force it to be the default. > > -- 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 To unsubscribe from this group, send email to clojure+unsubscribegooglegroups.com or reply to this email with the words "REMOVE ME" as the subject.