Permalink
Browse files

moved to reactor build to support unit tests

  • Loading branch information...
1 parent cd5111a commit b0f2e02bbfc97fa238826cf0a3d4d175cf053abc @ghosthack ghosthack committed Apr 18, 2012
Showing with 140 additions and 1 deletion.
  1. +25 −1 { → reactor/main}/pom.xml
  2. +24 −0 reactor/pom.xml
  3. +91 −0 reactor/test/pom.xml
@@ -4,6 +4,11 @@
<modelVersion>4.0.0</modelVersion>
+ <parent>
+ <groupId>voldemort</groupId>
+ <artifactId>voldemort-reactor</artifactId>
+ <version>0.90.1</version>
+ </parent>
<groupId>voldemort</groupId>
<artifactId>voldemort</artifactId>
<version>0.90.1</version>
@@ -17,7 +22,7 @@
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
<build>
- <sourceDirectory>src/java</sourceDirectory>
+ <sourceDirectory>../../src/java</sourceDirectory>
<plugins>
<plugin>
<artifactId>maven-eclipse-plugin</artifactId>
@@ -36,6 +41,25 @@
<target>1.6</target>
</configuration>
</plugin>
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>build-helper-maven-plugin</artifactId>
+ <version>1.5</version>
+ <executions>
+ <execution>
+ <id>add-source</id>
+ <phase>generate-sources</phase>
+ <goals>
+ <goal>add-source</goal>
+ </goals>
+ <configuration>
+ <sources>
+ <source>${basedir}/test/common</source>
+ </sources>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
</plugins>
</build>
<dependencies>
View
@@ -0,0 +1,24 @@
+<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>voldemort</groupId>
+ <artifactId>voldemort-reactor</artifactId>
+ <version>0.90.1</version>
+ <packaging>pom</packaging>
+
+ <name>${project.artifactId}</name>
+ <description>${project.artifactId}</description>
+
+ <properties>
+ <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
+ </properties>
+
+ <modules>
+ <module>main</module>
+ <module>test</module>
+ </modules>
+
+</project>
+
View
@@ -0,0 +1,91 @@
+<?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/maven-v4_0_0.xsd">
+
+ <modelVersion>4.0.0</modelVersion>
+
+ <parent>
+ <groupId>voldemort</groupId>
+ <artifactId>voldemort-reactor</artifactId>
+ <version>0.90.1</version>
+ </parent>
+ <groupId>voldemort</groupId>
+ <artifactId>voldemort-test</artifactId>
+ <version>0.90.1</version>
+ <packaging>jar</packaging>
+
+ <name>${project.artifactId}</name>
+ <description>${project.artifactId}</description>
+ <url>http://project-voldemort.com/</url>
+
+ <properties>
+ <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
+ </properties>
+ <build>
+ <testSourceDirectory>../../test/unit</testSourceDirectory>
+ <plugins>
+ <plugin>
+ <artifactId>maven-eclipse-plugin</artifactId>
+ <version>2.8</version>
+ <configuration>
+ <ajdtVersion>none</ajdtVersion>
+ <useProjectReferences>false</useProjectReferences>
+ </configuration>
+ </plugin>
+ <plugin>
+ <artifactId>maven-compiler-plugin</artifactId>
+ <version>2.3.2</version>
+ <configuration>
+ <encoding>${project.build.sourceEncoding}</encoding>
+ <source>1.6</source>
+ <target>1.6</target>
+ </configuration>
+ </plugin>
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>build-helper-maven-plugin</artifactId>
+ <version>1.5</version>
+ <executions>
+ <execution>
+ <id>add-source</id>
+ <phase>generate-sources</phase>
+ <goals>
+ <goal>add-source</goal>
+ </goals>
+ <configuration>
+ <sources>
+ <source>../../test/common</source>
+ </sources>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+ <dependencies>
+ <dependency>
+ <groupId>voldemort</groupId>
+ <artifactId>voldemort</artifactId>
+ <version>0.90.1</version>
+ </dependency>
+ <dependency>
+ <groupId>junit</groupId>
+ <artifactId>junit</artifactId>
+ <version>4.6</version>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.mockito</groupId>
+ <artifactId>mockito-all</artifactId>
+ <version>1.8.5</version>
+ <scope>test</scope>
+ </dependency>
+ </dependencies>
+ <developers>
+ <developer>
+ <id>voldemort</id>
+ <name>voldemort</name>
+ </developer>
+ </developers>
+
+</project>

0 comments on commit b0f2e02

Please sign in to comment.