Permalink
Browse files

add clojars repository to ch 17 maven example; fixes gh-5

  • Loading branch information...
1 parent 775da7f commit 3ce68be239cd0d832eb1618b982ef3c81627a4c0 @cemerick cemerick committed Apr 4, 2012
Showing with 72 additions and 0 deletions.
  1. +72 −0 ch17-webapp-maven/pom.xml
View
72 ch17-webapp-maven/pom.xml
@@ -0,0 +1,72 @@
+<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/maven-v4_0_0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+
+ <groupId>com.clojurebook</groupId>
+ <artifactId>sample-maven-web-project</artifactId>
+ <version>1.0.0</version>
+ <packaging>war</packaging>
+
+ <dependencies>
+ <dependency>
+ <groupId>org.clojure</groupId>
+ <artifactId>clojure</artifactId>
+ <version>1.3.0</version>
+ </dependency>
+ <dependency>
+ <groupId>compojure</groupId>
+ <artifactId>compojure</artifactId>
+ <version>1.0.0</version>
+ </dependency>
+ <dependency>
+ <groupId>ring</groupId>
+ <artifactId>ring-servlet</artifactId>
+ <version>1.0.1</version>
+ </dependency>
+ </dependencies>
+
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>com.theoryinpractise</groupId>
+ <artifactId>clojure-maven-plugin</artifactId>
+ <version>1.3.8</version>
+ <extensions>true</extensions>
+ <configuration>
+ <warnOnReflection>true</warnOnReflection>
+ <temporaryOutputDirectory>false</temporaryOutputDirectory>
+ </configuration>
+
+ <executions>
+ <execution>
+ <id>compile-clojure</id>
+ <phase>compile</phase>
+ <goals>
+ <goal>compile</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
+ <groupId>org.mortbay.jetty</groupId>
+ <artifactId>maven-jetty-plugin</artifactId>
+ <version>6.1.15</version>
+ <configuration>
+ <webAppConfig>
+ <extraClasspath>src/main/webapp,src/main/resources,src/main/clojure</extraClasspath>
+ </webAppConfig>
+ <reload>manual</reload>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+
+ <repositories>
+ <repository>
+ <id>clojars.org</id>
+ <url>http://clojars.org/repo</url>
+ </repository>
+ </repositories>
+
+</project>
+

0 comments on commit 3ce68be

Please sign in to comment.