Skip to content

Instantly share code, notes, and snippets.

@dysinger
Created May 27, 2010 20:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dysinger/416275 to your computer and use it in GitHub Desktop.
Save dysinger/416275 to your computer and use it in GitHub Desktop.
Clojure maven plugin build
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>my.project</groupId>
<artifactId>awesomesauce</artifactId>
<name>${artifactId}</name>
<version>1.0-SNAPSHOT</version>
<repositories>
<repository>
<id>clojure-snapshots</id>
<url>http://build.clojure.org/snapshots</url>
<snapshots/>
</repository>
<repository>
<id>clojars.org</id>
<url>http://clojars.org/repo</url>
<snapshots/>
</repository>
</repositories>
<build>
<defaultGoal>install</defaultGoal>
<resources>
<resource>
<directory>${basedir}/src/main/resources</directory>
</resource>
<resource>
<directory>${basedir}/src/main/clojure</directory>
</resource>
</resources>
<plugins>
<plugin>
<artifactId>maven-dependency-plugin</artifactId>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>copy-dependencies</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>com.theoryinpractise</groupId>
<artifactId>clojure-maven-plugin</artifactId>
<version>1.3.2</version>
<configuration>
<clojureOptions>-Xmx512m</clojureOptions>
<sourceDirectories>
<sourceDirectory>
src/main/clojure
</sourceDirectory>
</sourceDirectories>
<testSourceDirectories>
<testSourceDirectory>
src/test/clojure
</testSourceDirectory>
</testSourceDirectories>
<testScript>
src/test/clojure/test.clj
</testScript>
</configuration>
<executions>
<execution>
<id>compile</id>
<phase>compile</phase>
<goals>
<goal>compile</goal>
</goals>
</execution>
<execution>
<id>test</id>
<phase>test</phase>
<goals>
<goal>test</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
<dependencies>
<!-- clojure -->
<dependency>
<groupId>org.clojure</groupId>
<artifactId>clojure</artifactId>
<version>1.2.0-master-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>org.clojure</groupId>
<artifactId>clojure-contrib</artifactId>
<version>1.2.0-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>swank-clojure</groupId>
<artifactId>swank-clojure</artifactId>
<version>1.2.0-SNAPSHOT</version>
</dependency>
</dependencies>
</project>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment