Clojure and Maven
Hey guys, New to Maven and need to convert my leiningen project to Maven to integrate with TeamCity. I can run: mvn clean install and it builds the .jar file. However, when I try to run the jar file: java -jar target/my-app-jar-with-dependencies.jar I get the error: Error: Could not find or load main class my-namespace.core My namespace definition looks like: (ns my-namespace.core (:gen-class)) My pom.xml looks like: build plugins plugin groupIdcom.theoryinpractise/groupId artifactIdclojure-maven-plugin/artifactId version1.3.20/version configuration scriptsrc/my-namespace/run.clj/script testscripttest/my-namespace/run_test.clj/testscript /configuration /plugin plugin artifactIdmaven-jar-plugin/artifactId version2.4/version configuration archive manifest mainClassmy-namespace.core/mainClass /manifest /archive /configuration /plugin plugin artifactIdmaven-assembly-plugin/artifactId executions execution phasepackage/phase goals goalsingle/goal /goals /execution /executions configuration archive manifest mainClassmy-namespace.core/mainClass /manifest /archive descriptorRefs descriptorRefjar-with-dependencies/descriptorRef /descriptorRefs /configuration /plugin /plugins /build What am I doing wrong? Thanks! -- 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 --- You received this message because you are subscribed to the Google Groups Clojure group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: Clojure and Maven
Not sure if this would help; but there's a `lein pom` command. I've just run it on a project and it seems to produce a somewhat different pom. On Fri, Jun 13, 2014 at 3:34 PM, Mark Watson mkw5...@gmail.com wrote: Hey guys, New to Maven and need to convert my leiningen project to Maven to integrate with TeamCity. I can run: mvn clean install and it builds the .jar file. However, when I try to run the jar file: java -jar target/my-app-jar-with-dependencies.jar I get the error: Error: Could not find or load main class my-namespace.core My namespace definition looks like: (ns my-namespace.core (:gen-class)) My pom.xml looks like: build plugins plugin groupIdcom.theoryinpractise/groupId artifactIdclojure-maven-plugin/artifactId version1.3.20/version configuration scriptsrc/my-namespace/run.clj/script testscripttest/my-namespace/run_test.clj/testscript /configuration /plugin plugin artifactIdmaven-jar-plugin/artifactId version2.4/version configuration archive manifest mainClassmy-namespace.core/mainClass /manifest /archive /configuration /plugin plugin artifactIdmaven-assembly-plugin/artifactId executions execution phasepackage/phase goals goalsingle/goal /goals /execution /executions configuration archive manifest mainClassmy-namespace.core/mainClass /manifest /archive descriptorRefs descriptorRefjar-with-dependencies/descriptorRef /descriptorRefs /configuration /plugin /plugins /build What am I doing wrong? Thanks! -- 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 --- You received this message because you are subscribed to the Google Groups Clojure group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout. -- Kind Regards, Atamert Ölçgen -+- --+ +++ www.muhuk.com -- 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 --- You received this message because you are subscribed to the Google Groups Clojure group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: Clojure and Maven
Oh, and I have a function: (defn -main []...) In my-namespace.core -- 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 --- You received this message because you are subscribed to the Google Groups Clojure group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: Clojure and Maven
Not sure if this is the only thing to change, but : mainClassmy-namespace.core/mainClass should be: mainClassmy_namespace.core/mainClass While Clojure uses -'s in namespace names, they are always _'s in the output package/class names. On Friday, June 13, 2014 10:34:54 AM UTC-5, Mark Watson wrote: Hey guys, New to Maven and need to convert my leiningen project to Maven to integrate with TeamCity. I can run: mvn clean install and it builds the .jar file. However, when I try to run the jar file: java -jar target/my-app-jar-with-dependencies.jar I get the error: Error: Could not find or load main class my-namespace.core My namespace definition looks like: (ns my-namespace.core (:gen-class)) My pom.xml looks like: build plugins plugin groupIdcom.theoryinpractise/groupId artifactIdclojure-maven-plugin/artifactId version1.3.20/version configuration scriptsrc/my-namespace/run.clj/script testscripttest/my-namespace/run_test.clj/testscript /configuration /plugin plugin artifactIdmaven-jar-plugin/artifactId version2.4/version configuration archive manifest mainClassmy-namespace.core/mainClass /manifest /archive /configuration /plugin plugin artifactIdmaven-assembly-plugin/artifactId executions execution phasepackage/phase goals goalsingle/goal /goals /execution /executions configuration archive manifest mainClassmy-namespace.core/mainClass /manifest /archive descriptorRefs descriptorRefjar-with-dependencies/descriptorRef /descriptorRefs /configuration /plugin /plugins /build What am I doing wrong? Thanks! -- 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 --- You received this message because you are subscribed to the Google Groups Clojure group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: Clojure and Maven
Ah, forgot about that. Still having the same issue with that resolved unfortunately. On Friday, June 13, 2014 12:08:00 PM UTC-4, Alex Miller wrote: Not sure if this is the only thing to change, but : mainClassmy-namespace.core/mainClass should be: mainClassmy_namespace.core/mainClass While Clojure uses -'s in namespace names, they are always _'s in the output package/class names. On Friday, June 13, 2014 10:34:54 AM UTC-5, Mark Watson wrote: Hey guys, New to Maven and need to convert my leiningen project to Maven to integrate with TeamCity. I can run: mvn clean install and it builds the .jar file. However, when I try to run the jar file: java -jar target/my-app-jar-with-dependencies.jar I get the error: Error: Could not find or load main class my-namespace.core My namespace definition looks like: (ns my-namespace.core (:gen-class)) My pom.xml looks like: build plugins plugin groupIdcom.theoryinpractise/groupId artifactIdclojure-maven-plugin/artifactId version1.3.20/version configuration scriptsrc/my-namespace/run.clj/script testscripttest/my-namespace/run_test.clj/testscript /configuration /plugin plugin artifactIdmaven-jar-plugin/artifactId version2.4/version configuration archive manifest mainClassmy-namespace.core/mainClass /manifest /archive /configuration /plugin plugin artifactIdmaven-assembly-plugin/artifactId executions execution phasepackage/phase goals goalsingle/goal /goals /execution /executions configuration archive manifest mainClassmy-namespace.core/mainClass /manifest /archive descriptorRefs descriptorRefjar-with-dependencies/descriptorRef /descriptorRefs /configuration /plugin /plugins /build What am I doing wrong? Thanks! -- 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 --- You received this message because you are subscribed to the Google Groups Clojure group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: Clojure and Maven
Ah, forgot about that. Still having the same issue with that resolved unfortunately. -- 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 --- You received this message because you are subscribed to the Google Groups Clojure group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: Clojure and Maven
There are no .class files in my jar I assume some file-path is messed up, I just can't figure out where. -- 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 --- You received this message because you are subscribed to the Google Groups Clojure group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: Clojure and Maven
Hi mark, I am curious about why you need to convert. I am thinking of using TC again myself soon. Currently in hudson I just do lein commands and use lein test-out plugin so the test reports can be shown as they would do from junit tests. you could do the same with TC or failing that have a first build step that does lein pom and then the main build step uses the output of that? or are there other particular advantages of maven on TC? or some feature lein pom does not handle that you need? Thanks, Henry On Friday, June 13, 2014 4:34:54 PM UTC+1, Mark Watson wrote: Hey guys, New to Maven and need to convert my leiningen project to Maven to integrate with TeamCity. I can run: mvn clean install and it builds the .jar file. However, when I try to run the jar file: java -jar target/my-app-jar-with-dependencies.jar I get the error: Error: Could not find or load main class my-namespace.core My namespace definition looks like: (ns my-namespace.core (:gen-class)) My pom.xml looks like: build plugins plugin groupIdcom.theoryinpractise/groupId artifactIdclojure-maven-plugin/artifactId version1.3.20/version configuration scriptsrc/my-namespace/run.clj/script testscripttest/my-namespace/run_test.clj/testscript /configuration /plugin plugin artifactIdmaven-jar-plugin/artifactId version2.4/version configuration archive manifest mainClassmy-namespace.core/mainClass /manifest /archive /configuration /plugin plugin artifactIdmaven-assembly-plugin/artifactId executions execution phasepackage/phase goals goalsingle/goal /goals /execution /executions configuration archive manifest mainClassmy-namespace.core/mainClass /manifest /archive descriptorRefs descriptorRefjar-with-dependencies/descriptorRef /descriptorRefs /configuration /plugin /plugins /build What am I doing wrong? Thanks! -- 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 --- You received this message because you are subscribed to the Google Groups Clojure group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: Clojure quickstart maven archetype
On Tue, Sep 8, 2009 at 4:09 AM, Scott Fleckenstein nullst...@gmail.comwrote: 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. Agreed. The process of writing a maven plugin is really a lot more complicated than it ought to be. When I started on Clojureshell I couldn't really find any relevant javadocs anywhere and had to go through a lot of trial and error before I got classloading working. And running clojure inside the maven process wasn't really a serious design decision; it just seemed a lot easier than spawning a child process ;) BTW, you mentioned the official maven clojure repo, is that repo1.maven.orgor somewhere else? I can find clojure-1.0.0 there, but not clojure-contrib. Cheers, -- Fredrik == What am I up to? http://twitter.com/appelberg --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Re: Clojure quickstart maven archetype
When I said central repo, yes, I meant repo1.maven.org. Clojure contrib is only available as a SNAPSHOT there. My actual dependency element looks like: dependency groupIdorg.clojure/groupId artifactIdclojure-contrib/artifactId version1.0-SNAPSHOT/version /dependency -Scott On Sep 9, 12:42 am, Fredrik Appelberg fredrik.appelb...@gmail.com wrote: On Tue, Sep 8, 2009 at 4:09 AM, Scott Fleckenstein nullst...@gmail.comwrote: 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. Agreed. The process of writing a maven plugin is really a lot more complicated than it ought to be. When I started on Clojureshell I couldn't really find any relevant javadocs anywhere and had to go through a lot of trial and error before I got classloading working. And running clojure inside the maven process wasn't really a serious design decision; it just seemed a lot easier than spawning a child process ;) BTW, you mentioned the official maven clojure repo, is that repo1.maven.orgor somewhere else? I can find clojure-1.0.0 there, but not clojure-contrib. Cheers, -- Fredrik == What am I up to?http://twitter.com/appelberg --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Re: Clojure quickstart maven archetype
Thanks Stuart, Just an FYI, I added repl support to the clojure-maven-plugin here: http://github.com/nullstyle/clojure-maven-plugin/tree/master Rather than taking clojureshell's approach, I start a separate process similar to how the rest of the plugin works. In fact, I just needed to refactory the abstract mojo used so that it can support an interactive child process, and it came together super simply. I think it is a much more understandable approach than running clojure inside the maven process, but that's just IMO. Next on my list is to add jline support onto the archetype, and figure out how best I want to support AOT along with Script execution. -Scott On Sep 7, 9:40 pm, Stuart Sierra the.stuart.sie...@gmail.com wrote: Also look at the ClojureShell Maven plugin,http://github.com/fred-o/clojureshell-maven-plugin/tree/master which runs a REPL or Swank server. -SS On Sep 7, 10:41 pm, Mark Derricutt m...@talios.com wrote: Most definitely - I did have a repl goal for awhile but had issues with the input/output streams. Looking at my github forkqueue I see someones pulled it back out (or added a new one, I've not yet had a look at it) which might be a starting point for you... But by all means - patches galore are welcome ;) -- Pull me down under... Sent from Auckland, Auk, New Zealand On Tue, Sep 8, 2009 at 2:09 PM, Scott Fleckenstein nullst...@gmail.comwrote: If I'm able to get a repl goal working, are you open to patches? --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Re: Clojure quickstart maven archetype
I'm really glad someone finally got this working. I gave it a shot a couple of months ago and I was tearing my hair out trying to get a two way communication with the repl and the outside world. On Tue, Sep 8, 2009 at 2:41 AM, Scott Fleckensteinnullst...@gmail.com wrote: Thanks Stuart, Just an FYI, I added repl support to the clojure-maven-plugin here: http://github.com/nullstyle/clojure-maven-plugin/tree/master Rather than taking clojureshell's approach, I start a separate process similar to how the rest of the plugin works. In fact, I just needed to refactory the abstract mojo used so that it can support an interactive child process, and it came together super simply. I think it is a much more understandable approach than running clojure inside the maven process, but that's just IMO. Next on my list is to add jline support onto the archetype, and figure out how best I want to support AOT along with Script execution. -Scott On Sep 7, 9:40 pm, Stuart Sierra the.stuart.sie...@gmail.com wrote: Also look at the ClojureShell Maven plugin,http://github.com/fred-o/clojureshell-maven-plugin/tree/master which runs a REPL or Swank server. -SS On Sep 7, 10:41 pm, Mark Derricutt m...@talios.com wrote: Most definitely - I did have a repl goal for awhile but had issues with the input/output streams. Looking at my github forkqueue I see someones pulled it back out (or added a new one, I've not yet had a look at it) which might be a starting point for you... But by all means - patches galore are welcome ;) -- Pull me down under... Sent from Auckland, Auk, New Zealand On Tue, Sep 8, 2009 at 2:09 PM, Scott Fleckenstein nullst...@gmail.comwrote: If I'm able to get a repl goal working, are you open to patches? --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
[ANN] Clojure quickstart maven archetype
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 -~--~~~~--~~--~--~---
Re: [ANN] Clojure quickstart maven archetype
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 the http://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.comwrote: 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 -~--~~~~--~~--~--~---
Re: Clojure quickstart maven archetype
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.comwrote: 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 -~--~~~~--~~--~--~---
Re: Clojure quickstart maven archetype
Most definitely - I did have a repl goal for awhile but had issues with the input/output streams. Looking at my github forkqueue I see someones pulled it back out (or added a new one, I've not yet had a look at it) which might be a starting point for you... But by all means - patches galore are welcome ;) -- Pull me down under... Sent from Auckland, Auk, New Zealand On Tue, Sep 8, 2009 at 2:09 PM, Scott Fleckenstein nullst...@gmail.comwrote: If I'm able to get a repl goal working, are you open to patches? --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Re: Clojure quickstart maven archetype
Also look at the ClojureShell Maven plugin, http://github.com/fred-o/clojureshell-maven-plugin/tree/master which runs a REPL or Swank server. -SS On Sep 7, 10:41 pm, Mark Derricutt m...@talios.com wrote: Most definitely - I did have a repl goal for awhile but had issues with the input/output streams. Looking at my github forkqueue I see someones pulled it back out (or added a new one, I've not yet had a look at it) which might be a starting point for you... But by all means - patches galore are welcome ;) -- Pull me down under... Sent from Auckland, Auk, New Zealand On Tue, Sep 8, 2009 at 2:09 PM, Scott Fleckenstein nullst...@gmail.comwrote: If I'm able to get a repl goal working, are you open to patches? --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Re: Clojure with maven - how to?
I posted a simple example project to: http://github.com/talios/clojure-maven-example last night which demonstrates the plugin. As I mentioned in a post to this list yesterday theres 3 tags - step1, step2, step3. step1 just has a basic pom and a test, step2 pulls in compojure and a simple webapp, step3 adds a simple automated test for that compojure app. Mark -- On Sun, Aug 16, 2009 at 3:03 AM, Dragan Djuric draga...@gmail.com wrote: Can somebody help by posting a hello world example for one of (or both :) these issues? :) --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Re: Clojure with maven - how to?
Did you remember to push your tags? (git push --tags) On Sun, Aug 16, 2009 at 9:51 PM, Mark Derricuttm...@talios.com wrote: I posted a simple example project to: http://github.com/talios/clojure-maven-example last night which demonstrates the plugin. As I mentioned in a post to this list yesterday theres 3 tags - step1, step2, step3. step1 just has a basic pom and a test, step2 pulls in compojure and a simple webapp, step3 adds a simple automated test for that compojure app. Mark -- On Sun, Aug 16, 2009 at 3:03 AM, Dragan Djuric draga...@gmail.com wrote: Can somebody help by posting a hello world example for one of (or both :) these issues? :) -- Venlig hilsen / Kind regards, Christian Vest Hansen. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Re: Clojure with maven - how to?
Tags don't push automatically? Never knew that :( As soon as dropbox has synced this laptop I'll push out the tags as well (and I hope they push out old tags, and not just the new ones. Mark -- On Mon, Aug 17, 2009 at 8:46 AM, Christian Vest Hansen karmazi...@gmail.com wrote: Did you remember to push your tags? (git push --tags) --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Re: Clojure with maven - how to?
The tags should be there now, pity github seems to be down now :( -- On Mon, Aug 17, 2009 at 9:22 AM, Mark Derricutt m...@talios.com wrote: Tags don't push automatically? Never knew that :( As soon as dropbox has synced this laptop I'll push out the tags as well (and I hope they push out old tags, and not just the new ones. Mark -- On Mon, Aug 17, 2009 at 8:46 AM, Christian Vest Hansen karmazi...@gmail.com wrote: Did you remember to push your tags? (git push --tags) --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Clojure with maven - how to?
Hi, I've just tried to use clojure-maven-plugin bit do not know how to start. It does not compile anything. I probably have to configure it but haven't found any examples yet. I've also tried maven-pom, which has an example, but am not sure how to make it discover clj files (in the examples, the author used only one explicitly configured file) Can somebody help by posting a hello world example for one of (or both :) these issues? :) --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Clojure-Contrib: Maven/Continous Integration
I've added a patch for clojure-contrib so that the clojure-contrib module can build post-checkin, and nightly. I'd really like to see it taken, so I can set up continuous integration on tapestry.formos.com. Basically, we'll be able to have clojure-contrib build after any change to clojure-contrib, or to clojure-lang. That's great for spotting problems with tests and such as soon as they occur. -- Howard M. Lewis Ship Creator Apache Tapestry and Apache HiveMind --~--~-~--~~~---~--~~ 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 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 -~--~~~~--~~--~--~---