You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flume.apache.org by es...@apache.org on 2011/08/12 02:47:31 UTC

svn commit: r1156892 - /incubator/flume/branches/flume-728/flume-ng-core/pom.xml

Author: esammer
Date: Fri Aug 12 00:47:31 2011
New Revision: 1156892

URL: http://svn.apache.org/viewvc?rev=1156892&view=rev
Log:
- Project now supports thrift compilation.

Modified:
    incubator/flume/branches/flume-728/flume-ng-core/pom.xml

Modified: incubator/flume/branches/flume-728/flume-ng-core/pom.xml
URL: http://svn.apache.org/viewvc/incubator/flume/branches/flume-728/flume-ng-core/pom.xml?rev=1156892&r1=1156891&r2=1156892&view=diff
==============================================================================
--- incubator/flume/branches/flume-728/flume-ng-core/pom.xml (original)
+++ incubator/flume/branches/flume-728/flume-ng-core/pom.xml Fri Aug 12 00:47:31 2011
@@ -14,6 +14,33 @@
   <version>0.9.5-SNAPSHOT</version>
   <name>Flume NG Core</name>
 
+  <properties>
+    <thrift.executable>/usr/local/thrift-0.6.0/bin/thrift</thrift.executable>
+  </properties>
+
+  <build>
+    <plugins>
+
+      <plugin>
+        <groupId>org.apache.thrift.tools</groupId>
+        <artifactId>maven-thrift-plugin</artifactId>
+        <version>0.1.10</version>
+        <configuration>
+          <thriftExecutable>${thrift.executable}</thriftExecutable>
+        </configuration>
+        <executions>
+          <execution>
+            <goals>
+              <goal>compile</goal>
+              <goal>testCompile</goal>
+            </goals>
+          </execution>
+        </executions>
+      </plugin>
+
+    </plugins>
+  </build>
+
   <dependencies>
 
     <dependency>
@@ -27,6 +54,17 @@
     </dependency>
 
     <dependency>
+      <groupId>org.apache.thrift</groupId>
+      <artifactId>libthrift</artifactId>
+    </dependency>
+
+    <!-- Unstated thrift dependency for generated code. -->
+    <dependency>
+      <groupId>commons-lang</groupId>
+      <artifactId>commons-lang</artifactId>
+    </dependency>
+
+    <dependency>
       <groupId>junit</groupId>
       <artifactId>junit</artifactId>
       <scope>test</scope>