One of the things that I'm not happy with my archetype with right now (I'm working on it at the moment) is that there isn't an way to support both AOT compilation as well as directly running the script that feels right. Everything I've thought about seems overwrought. Adding support for specifying a compiled class in the run goal would be nice, but I think I actually need to change up my archetype so the clojure file that gets compiled to the main class is just a stub that runs a different file to actually perform the work. That will mean we can support both cases pretty simply.
On another note, it's surprising given that how easy creating the archetype was how incredibly arcane writing a plugin is. Granted, maven is new to me and I've got zero experience but the codebase, but it seems amazing to me how complicated doing something as small as launching a repl process can be. I must have gone through 20,000 lines of various peoples code today to try and attempt building one myself, from your plugin (which, was the nicest so far, BTW) to antrun, to the exec plugin, to the clojureshell plugin. It's quite comical considering the 8 line rake file I've got to do it. Oh well, I'll figure it out eventually. If I'm able to get a repl goal working, are you open to patches? -Scott On Sep 7, 5:58 pm, Mark Derricutt <m...@talios.com> wrote: > Excellent! This was one of the missing pieces I was hoping to pull together > next. > > > into your code, and no support fr clojure-maven-plugin clojure:run (it > > I could change this to check if you mention a .clj or just a class name, and > run either-or. > > Theres also thehttp://mojo.codehaus.org/exec-maven-plugin/plugin if you > want to depend on mojo. > > -- > > On Tue, Sep 8, 2009 at 6:37 AM, Scott Fleckenstein <nullst...@gmail.com>wrote: > > > > > URL: http://github.com/nullstyle/clojure-quickstart/tree/master > > > Hi all, > > > As a little weekend project and something to spur me to start > > learning maven, I put together a simple little clojure quickstart > > archetype. It sets you up a hello world command line application from > > which you can build out something real. > > > Other notes: > > > - Uses clojure 1.0 and clojure-contrib 1.0-SNAPSHOT from the central > > maven repo > > - Uses clojure-maven-plugin 1.0 from the central maven repo > > - Configured for testing support > > - Uses appassembler and assembly plugin to build a launcher script and > > package a distribution archive. After mvn package you'll have - > > distribution archives that are suitable for, you guessed it, > > distribution :p > > > This was thrown together over a couple of late hours last night, so > > any questions, comments, criticisms would be greatly appreciated. > > Some known issues are that there's not an easy way to launch a REPL > > into your code, and no support fr clojure-maven-plugin clojure:run (it > > uses a script, my archetype assumes a compiled main class). > > > Thanks, > > Scott Fleckenstein --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---