Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

add missing pom.xml files, fix top-level .gitignore to not ignore them!

  • Loading branch information...
commit 1cd84a1466b1fa8b4e9cae0142aec890d4f8190f 1 parent 3ce68be
@cemerick cemerick authored
View
2  .gitignore
@@ -15,7 +15,7 @@ classes
*.jar
*.war
-pom.xml
+
lib
native
.lein-failures
View
41 ch08-maven/pom.xml
@@ -0,0 +1,41 @@
+<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">
+
+ <description>This is the simplest possible Clojure Maven project.</description>
+ <url>http://github.com/clojurebook/ClojureProgramming</url>
+
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>com.clojurebook</groupId>
+ <artifactId>sample-maven-project</artifactId>
+ <version>1.0.0</version>
+ <packaging>clojure</packaging>
+
+ <dependencies>
+ <dependency>
+ <groupId>org.clojure</groupId>
+ <artifactId>clojure</artifactId>
+ <version>1.3.0</version>
+ </dependency>
+ </dependencies>
+
+ <build>
+ <resources>
+ <resource>
+ <directory>src/main/clojure</directory>
+ </resource>
+ </resources>
+ <plugins>
+ <plugin>
+ <groupId>com.theoryinpractise</groupId>
+ <artifactId>clojure-maven-plugin</artifactId>
+ <version>1.3.8</version>
+ <extensions>true</extensions>
+ <configuration>
+ <warnOnReflection>true</warnOnReflection>
+ <temporaryOutputDirectory>true</temporaryOutputDirectory>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+</project>
View
86 ch09-annotations/pom.xml
@@ -0,0 +1,86 @@
+<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>annotations</artifactId>
+ <version>1.0.0</version>
+ <packaging>clojure</packaging>
+
+ <properties>
+ <!-- Avoid surefire, it's nothing but trouble in this scenario -->
+ <maven.test.skip>true</maven.test.skip>
+ </properties>
+
+ <dependencies>
+ <dependency>
+ <groupId>org.clojure</groupId>
+ <artifactId>clojure</artifactId>
+ <version>1.3.0</version>
+ </dependency>
+ <dependency>
+ <groupId>junit</groupId>
+ <artifactId>junit</artifactId>
+ <version>4.8.2</version>
+ </dependency>
+ <dependency>
+ <groupId>com.sun.jersey</groupId>
+ <artifactId>jersey-server</artifactId>
+ <version>1.8</version>
+ </dependency>
+ <dependency>
+ <groupId>com.sun.grizzly</groupId>
+ <artifactId>grizzly-servlet-webserver</artifactId>
+ <version>1.9.18-i</version>
+ </dependency>
+ <dependency>
+ <groupId>com.sun.jersey</groupId>
+ <artifactId>jersey-bundle</artifactId>
+ <version>1.5</version>
+ </dependency>
+ </dependencies>
+
+ <build>
+ <resources>
+ <resource>
+ <directory>src/main/clojure</directory>
+ </resource>
+ </resources>
+ <plugins>
+ <plugin>
+ <groupId>com.theoryinpractise</groupId>
+ <artifactId>clojure-maven-plugin</artifactId>
+ <version>1.3.8</version>
+ <extensions>true</extensions>
+ </plugin>
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>exec-maven-plugin</artifactId>
+ <version>1.2</version>
+ <configuration>
+ <mainClass>org.junit.runner.JUnitCore</mainClass>
+ <arguments>
+ <argument>com.clojurebook.annotations.JUnitTest</argument>
+ </arguments>
+ </configuration>
+ <executions>
+ <execution>
+ <id>run-test</id>
+ <phase>test</phase>
+ <goals>
+ <goal>java</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+
+ <repositories>
+ <repository>
+ <id>maven2-repository.java.net</id>
+ <url>http://download.java.net/maven/2/</url>
+ </repository>
+ </repositories>
+</project>
+
View
69 ch09-interop/pom.xml
@@ -0,0 +1,69 @@
+<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>java-clojure-interop</artifactId>
+ <version>1.0.0</version>
+
+ <dependencies>
+ <dependency>
+ <groupId>org.clojure</groupId>
+ <artifactId>clojure</artifactId>
+ <version>1.3.0</version>
+ </dependency>
+ </dependencies>
+
+ <build>
+ <resources>
+ <resource>
+ <directory>src/main/clojure</directory>
+ </resource>
+ </resources>
+ <plugins>
+ <plugin>
+ <groupId>com.theoryinpractise</groupId>
+ <artifactId>clojure-maven-plugin</artifactId>
+ <version>1.3.8</version>
+ <configuration>
+ <warnOnReflection>true</warnOnReflection>
+ <temporaryOutputDirectory>false</temporaryOutputDirectory>
+ </configuration>
+ <executions>
+ <execution>
+ <id>compile-clojure</id>
+ <!-- we bind compile to Maven's process-resources phase
+ so that our Clojure code is AOT-compiled into class
+ files before Java compilation is performed -->
+ <phase>process-resources</phase>
+ <goals>
+ <goal>compile</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-assembly-plugin</artifactId>
+ <version>2.2.1</version>
+ <configuration>
+ <descriptorRefs>
+ <descriptorRef>jar-with-dependencies</descriptorRef>
+ </descriptorRefs>
+ </configuration>
+ <executions>
+ <execution>
+ <id>make-uberjar</id>
+ <phase>package</phase>
+ <goals>
+ <goal>single</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+
+ </plugins>
+ </build>
+</project>
+
Please sign in to comment.
Something went wrong with that request. Please try again.