I'm working on Clojure support for polyglot maven, and I anticipate publishing an initial feature-complete 100%-of-Maven version today. It not only reads/writes a programatic format like this:
(defmaven 'org.clojure/clojure "1.2.0-master-SNAPSHOT" :model-version "4.0.0" :name "Lamdras Website" :description "Acumen / LRMDS Integration" :properties { :project.build.sourceEncoding "UTF-8" } :packaging "war" :dependencies [['ring/ring-servlet "0.2.0-RC2"] ['ring/ring-devel "0.2.0-RC2"] ['clj-routing/ "0.1.0-SNAPSHOT"] ['clout "0.2.0-SNAPSHOT"] ['compojure "0.4.0-SNAPSHOT"] ['hiccup "0.1.0-SNAPSHOT"] 'org.clojure/clojure 'org.clojure/clojure-contrib 'congomongo/congomongo] :provided-dependencies [['org.mortbay.jetty/servlet-api-2.5 "6.1.14"]] :build [:final-name "website" :plugins [['org.apache.maven.plugins/maven-compiler-plugin "2.1" :source "1.6" :target "1.6"] ['com.theoryinpractise/clojure-maven-plugin "1.3.1" :sourceDirectories ["src/main/java"] :executions [[:id "compile-clojure" :phase "compile" :goals ["compile"]]]] ['org.mortbay.jetty/maven-jetty-plugin "6.1.10" :scanIntervalSeconds 10 :stopKey "foo" :stopPort 9999]]]) but also reads leiningen project.clj files *unmodified*. So this is some degree of leiningen support given NB's maven support. Polyglot maven can convert between input formats, so it can read a leiningen project.clj and write a pom.xml, adding the plugins required (which are actually added by the defproject macro when the project.clj is read). You can then go from the pom.xml to pom.clj, which produces the 'native' format shown above. It doesn't write a leiningen project.clj. I also have a private build of NB that integrates polyglot maven, treating all the different pom.* language files and project.clj as 'Project Files', using whatever pom/project file is available as maven input. Furthermore it provides 'Clojure Packages' nodes in the project explorer, so you don't have to dig through directories under 'Other Sources'. I'm not sure how to publish these changes yet (they can't be done as a plugin, they're core maven package mods) - I think I need to go through some administrative rigmarole with netbeans.org On 03/04/2010, at 11:55 AM, Eric Thorsen wrote: > I'm disappointed that I cannot plug the clojars repo into Netbeans and > I'm not certain what the full plan of Leiningen is in lue of the > polyglot project (http://polyglot.sonatype.org) which appears to have > Clojure support moved up as a first class supported language. I > started Enclojure because I wanted to code in Clojure and have all my > developers do the same and wanted tools to support that. I would much > rather be defining my build scripts in Clojure but I'd hate to have to > veer away from all that is there in Maven so the polyglot project > would be more interesting to me than something custom just for the > Clojure community. Netbeans, Eclipse and IntelliJ appear to do maven > really well and I really want to spend my time working on things that > will help me move my Clojure development forward and getting involved > in a custom build system when maven and polyglot are around would be > unlikely to pull me away from other features. > > I know Leinigen can generate pom.xml files and if your sources are in > the appropriate directories (or the source dir is defined in the pom), > you can work with the REPL and it will support it like any other maven > project. It is a unidirectional path however so some of the goodies > of being able to search through indexed repos and add them to your pom > will have to be enter manually into your project.clj and you would > regenerate the pom. > > You still get all the repl support and completion with all your > dependancies recognized which is not nothing and may get you where you > want to be for now. > > I hope this is helpful. > Eric > > On Mar 17, 9:36 am, Phil Ventura <phil.vent...@gmail.com> wrote: >> Are there any plans to integrate Leiningen into enclojure? > > -- > You received this message because you are subscribed to the Google Groups > "enclojure" group. > To post to this group, send email to encloj...@googlegroups.com. > To unsubscribe from this group, send email to > enclojure+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/enclojure?hl=en. > Antony Blakey ------------- CTO, Linkuistics Pty Ltd Ph: 0438 840 787 A reasonable man adapts himself to suit his environment. An unreasonable man persists in attempting to adapt his environment to suit himself. Therefore, all progress depends on the unreasonable man. -- George Bernard Shaw -- 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, reply using "remove me" as the subject.