Author: etnu
Date: Wed Jan 16 00:44:44 2008
New Revision: 612385

URL: http://svn.apache.org/viewvc?rev=612385&view=rev
Log:
Introduced a new pom.xml for producing a jar instead of a war. Only 
org.hamcrest is pulled into the jar, and other dependent jars such as json and 
the servlet spec must be added to your classpath manually. The hamcrest 
behavior is to be considered a bug.


Added:
    incubator/shindig/trunk/java/gadgets/pom.jar.xml

Added: incubator/shindig/trunk/java/gadgets/pom.jar.xml
URL: 
http://svn.apache.org/viewvc/incubator/shindig/trunk/java/gadgets/pom.jar.xml?rev=612385&view=auto
==============================================================================
--- incubator/shindig/trunk/java/gadgets/pom.jar.xml (added)
+++ incubator/shindig/trunk/java/gadgets/pom.jar.xml Wed Jan 16 00:44:44 2008
@@ -0,0 +1,106 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project>
+  <modelVersion>4.0.0</modelVersion>
+  <groupId>org.apache.shindig</groupId>
+  <artifactId>gadgets</artifactId>
+  <packaging>jar</packaging>
+  <name>Shindig Gadget Server</name>
+  <version>1.0</version>
+  <url>http://shindig.apache.org</url>
+  <licenses>
+    <license>
+      <name>Apache 2</name>
+      <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
+    </license>
+  </licenses>
+  <build>
+    <sourceDirectory>${basedir}/src/main/java</sourceDirectory>
+    <testSourceDirectory>${basedir}/src/test/java</testSourceDirectory>
+    <outputDirectory>${basedir}/target/classes</outputDirectory>
+    <testOutputDirectory>${basedir}/target/test-classes</testOutputDirectory>
+    <finalName>gadgets</finalName>
+    <plugins>
+      <plugin>
+        <artifactId>maven-compiler-plugin</artifactId>
+        <configuration>
+          <source>1.5</source>
+          <target>1.5</target>
+        </configuration>
+      </plugin>
+      <plugin>
+        <groupId>org.mortbay.jetty</groupId>
+        <artifactId>maven-jetty-plugin</artifactId>
+      </plugin>
+    </plugins>
+    <resources>
+      <resource>
+        <targetPath>features</targetPath>
+        <directory>../../features</directory>
+      </resource>
+      <resource>
+        <targetPath>files</targetPath>
+        <directory>../../javascript/</directory>
+        <includes>
+          <include>**/*.*</include>
+        </includes>
+      </resource>
+    </resources>
+  </build>
+  <repositories>
+    <repository>
+      <id>caja</id>
+      <url>http://google-caja.googlecode.com/svn/maven</url>
+    </repository>
+  </repositories>
+  <dependencies>
+    <dependency>
+      <groupId>org.json</groupId>
+      <artifactId>json</artifactId>
+      <version>20070829</version>
+      <scope>compile</scope>
+    </dependency>
+    <dependency>
+      <groupId>javax.servlet</groupId>
+      <artifactId>servlet-api</artifactId>
+      <version>2.3</version>
+      <scope>compile</scope>
+    </dependency>
+    <dependency>
+      <groupId>org.hamcrest</groupId>
+      <artifactId>hamcrest-all</artifactId>
+      <version>1.1</version>
+      <scope>compile</scope>
+    </dependency>
+    <dependency>
+      <groupId>junit</groupId>
+      <artifactId>junit</artifactId>
+      <version>4.4</version>
+      <scope>test</scope>
+    </dependency>
+    <dependency>
+      <groupId>org.easymock</groupId>
+      <artifactId>easymock</artifactId>
+      <version>2.3</version>
+      <scope>test</scope>
+    </dependency>
+    <dependency>
+      <groupId>org.easymock</groupId>
+      <artifactId>easymockclassextension</artifactId>
+      <version>2.2.2</version>
+      <scope>test</scope>
+    </dependency>
+    <dependency>
+      <groupId>caja</groupId>
+      <artifactId>caja</artifactId>
+      <version>r394</version>
+      <scope>compile</scope>
+    </dependency>
+  </dependencies>
+  <distributionManagement>
+    <repository>
+      <id>apache-repository</id>
+      <name>Apache Repository</name>
+      <url>scp://people.apache.org/repository/maven2</url>
+    </repository>
+  </distributionManagement>
+</project>


Reply via email to