public
Description: Apache Maven Mojo for compiling clojure scripts to class files
Homepage:
Clone URL: git://github.com/talios/clojure-maven-plugin.git
commit  870de991b7af86bc35ae2b55ead48fe58f5247cb
tree    99ff5e5bbb0842862e11677d67d13013b31cabd3
parent  673ecfafa7c9877d4bb32835d5b79a1c118a8e2a
name age message
file .gitignore Fri Apr 17 17:18:44 -0700 2009 Minimized and cleaned up Signed-off-by: Mark D... [dysinger]
file README.markdown Loading commit data...
file pom.xml
directory src/
README.markdown

Welcome to the clojure-maven-plugin plugin for Apache Maven 2.

To use this plugin and start compiling clojure code as part of your maven build, add the following:

<plugins>
  <plugin>
    <groupId>com.theoryinpractise</groupId>
    <artifactId>clojure-maven-plugin</artifactId>
    <version>1.0</version>
  </plugin>
</plugins>

Without any configuration, the clojure-maven-plugin will compile ANY namespaces in ./src/main/clojure/.clj and ./src/test/clojure/.clj.

To change, or add additional source directories you can add the following configuration:

<configuration>
  <sourceDirectories>
    <sourceDirectory>src/main/clojure</sourceDirectory>
  </sourceDirectories>
  <testSourceDirectories>
    <testSourceDirectory>src/test/clojure</testSourceDirectory>
  </testSourceDirectories>
</configuration>

The plugin also provides a clojure:run and clojure:test goal, which will run clojure scripts defined by:

<configuration>
  <script>src/test/clojure/com/jobsheet/jetty.clj</script>
  <testScript>src/test/clojure/com/jobsheet/test.clj</testScript>
</configuration>

Enjoy.