Permalink
Browse files

Provide a pom.xml for Maven users.

This starts to address #103 and closes #134.

Signed-off-by: Benoit Sigoure <tsunanet@gmail.com>
  • Loading branch information...
1 parent 3c558d8 commit 1e3b582820051764419db451c432a2bceccde79c @looztra looztra committed with tsuna Nov 17, 2012
Showing with 299 additions and 0 deletions.
  1. +2 −0 .gitignore
  2. +26 −0 Makefile.am
  3. +271 −0 pom.xml.in
View
@@ -4,6 +4,8 @@ Makefile.in
aclocal.m4
autom4te.cache
build
+target
config.log
config.status
configure
+pom.xml
View
@@ -359,5 +359,31 @@ clean-local:
rm -f $(jar) tsdb
rm -rf $(JAVADOC_DIR)
+pom.xml: pom.xml.in Makefile
+ { \
+ echo '<!-- Generated by Makefile on '`date`' -->'; \
+ sed <$< \
+ -e 's/@ASYNCHBASE_VERSION@/$(ASYNCHBASE_VERSION)/' \
+ -e 's/@GUAVA_VERSION@/$(GUAVA_VERSION)/' \
+ -e 's/@GWT_VERSION@/$(GWT_VERSION)/' \
+ -e 's/@JAVASSIST_VERSION@/$(JAVASSIST_VERSION)/' \
+ -e 's/@JCL_OVER_SLF4J_VERSION@/$(JCL_OVER_SLF4J_VERSION)/' \
+ -e 's/@JUNIT_VERSION@/$(JUNIT_VERSION)/' \
+ -e 's/@LOG4J_OVER_SLF4J_VERSION@/$(LOG4J_OVER_SLF4J_VERSION)/' \
+ -e 's/@LOGBACK_CLASSIC_VERSION@/$(LOGBACK_CLASSIC_VERSION)/' \
+ -e 's/@LOGBACK_CORE_VERSION@/$(LOGBACK_CORE_VERSION)/' \
+ -e 's/@MOCKITO_VERSION@/$(MOCKITO_VERSION)/' \
+ -e 's/@NETTY_VERSION@/$(NETTY_VERSION)/' \
+ -e 's/@POWERMOCK_MOCKITO_VERSION@/$(POWERMOCK_MOCKITO_VERSION)/' \
+ -e 's/@SLF4J_API_VERSION@/$(SLF4J_API_VERSION)/' \
+ -e 's/@SUASYNC_VERSION@/$(SUASYNC_VERSION)/' \
+ -e 's/@ZOOKEEPER_VERSION@/$(ZOOKEEPER_VERSION)/' \
+ -e 's/@spec_title@/$(spec_title)/' \
+ -e 's/@spec_vendor@/$(spec_vendor)/' \
+ -e 's/@spec_version@/$(PACKAGE_VERSION)/' \
+ ; \
+ } >$@-t
+ mv $@-t ../$@
+
.PHONY: jar doc check gwtc gwtdev printdeps staticroot gwttsd
include third_party/include.mk
View
@@ -0,0 +1,271 @@
+<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/xsd/maven-4.0.0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+
+ <groupId>net.opentsdb</groupId>
+ <artifactId>opentsdb</artifactId>
+ <version>@spec_version@</version>
+ <name>@spec_title@</name>
+ <description>
+ OpenTSDB is a distributed, scalable Time Series Database (TSDB)
+ written on top of HBase.
+ </description>
+ <url>http://opentsdb.net</url>
+ <licenses>
+ <license>
+ <name>LGPLv2.1+</name>
+ <url>http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html</url>
+ <distribution>repo</distribution>
+ </license>
+ </licenses>
+
+ <packaging>jar</packaging>
+
+ <build>
+ <sourceDirectory>src</sourceDirectory>
+ <testSourceDirectory>test</testSourceDirectory>
+
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-compiler-plugin</artifactId>
+ <version>2.5.1</version>
+ <configuration>
+ <source>1.6</source>
+ <target>1.6</target>
+ <compilerArgument>-Xlint</compilerArgument>
+ <excludes>
+ <exclude>**/Test*.java</exclude>
+ <exclude>**/client/*.java</exclude>
+ </excludes>
+ <testIncludes>
+ <include>**/Test*.java</include>
+ </testIncludes>
+ </configuration>
+ </plugin>
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>exec-maven-plugin</artifactId>
+ <version>1.2.1</version>
+ <executions>
+ <execution>
+ <phase>generate-sources</phase>
+ <goals>
+ <goal>exec</goal>
+ </goals>
+ </execution>
+ </executions>
+ <configuration>
+ <executable>build-aux/gen_build_data.sh</executable>
+ <!-- optional -->
+ <arguments>
+ <argument>target/generated-sources/net/opentsdb/BuildData.java</argument>
+ <argument>net.opentsdb</argument>
+ <argument>BuildData</argument>
+ </arguments>
+ </configuration>
+ </plugin>
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>build-helper-maven-plugin</artifactId>
+ <version>1.7</version>
+ <executions>
+ <execution>
+ <id>add-source</id>
+ <phase>generate-sources</phase>
+ <goals>
+ <goal>add-source</goal>
+ </goals>
+ <configuration>
+ <sources>
+ <source>target/generated-sources</source>
+ </sources>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
+ <artifactId>maven-antrun-plugin</artifactId>
+ <version>1.7</version>
+ <executions>
+ <execution>
+ <phase>process-resources</phase>
+ <configuration>
+ <target>
+ <copy file="${basedir}/src/mygnuplot.sh" todir="${basedir}/target/classes"/>
+ <chmod file="${basedir}/target/classes/mygnuplot.sh" perm="ugo+rx"/>
+ </target>
+ </configuration>
+ <goals>
+ <goal>run</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-surefire-plugin</artifactId>
+ <version>2.12.4</version>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-jar-plugin</artifactId>
+ <version>2.4</version>
+ <configuration>
+ <excludes>
+ <exclude>queryui/**</exclude>
+ <exclude>WEB-INF/deploy/**</exclude>
+ <exclude>mygnuplot.sh</exclude>
+ </excludes>
+ </configuration>
+ </plugin>
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>gwt-maven-plugin</artifactId>
+ <version>@GWT_VERSION@</version>
+ <executions>
+ <execution>
+ <configuration>
+ <webappDirectory>${project.build.directory}/classes/</webappDirectory>
+ </configuration>
+ <phase>compile</phase>
+ <goals>
+ <goal>compile</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+
+ <dependencies>
+
+ <dependency>
+ <groupId>com.google.guava</groupId>
+ <artifactId>guava</artifactId>
+ <version>@GUAVA_VERSION@</version>
+ </dependency>
+
+ <dependency>
+ <groupId>io.netty</groupId>
+ <artifactId>netty</artifactId>
+ <version>@NETTY_VERSION@</version>
+ </dependency>
+
+ <dependency>
+ <groupId>com.stumbleupon</groupId>
+ <artifactId>async</artifactId>
+ <version>@SUASYNC_VERSION@</version>
+ </dependency>
+
+ <dependency>
+ <groupId>org.apache.zookeeper</groupId>
+ <artifactId>zookeeper</artifactId>
+ <version>@ZOOKEEPER_VERSION@</version>
+ <exclusions>
+ <exclusion>
+ <groupId>log4j</groupId>
+ <artifactId>log4j</artifactId>
+ </exclusion>
+ <exclusion>
+ <groupId>org.slf4j</groupId>
+ <artifactId>slf4j-log4j12</artifactId>
+ </exclusion>
+ <exclusion>
+ <groupId>jline</groupId>
+ <artifactId>jline</artifactId>
+ </exclusion>
+ <exclusion>
+ <groupId>junit</groupId>
+ <artifactId>junit</artifactId>
+ </exclusion>
+ </exclusions>
+ </dependency>
+
+ <dependency>
+ <groupId>org.slf4j</groupId>
+ <artifactId>slf4j-api</artifactId>
+ <version>@SLF4J_API_VERSION@</version>
+ </dependency>
+
+ <dependency>
+ <groupId>org.hbase</groupId>
+ <artifactId>asynchbase</artifactId>
+ <version>@ASYNCHBASE_VERSION@</version>
+ </dependency>
+
+ <!-- runtime dependencies -->
+
+ <dependency>
+ <groupId>org.slf4j</groupId>
+ <artifactId>log4j-over-slf4j</artifactId>
+ <version>@LOG4J_OVER_SLF4J_VERSION@</version>
+ </dependency>
+
+ <dependency>
+ <groupId>org.slf4j</groupId>
+ <artifactId>jcl-over-slf4j</artifactId>
+ <version>@JCL_OVER_SLF4J_VERSION@</version>
+ </dependency>
+
+ <dependency>
+ <groupId>ch.qos.logback</groupId>
+ <artifactId>logback-core</artifactId>
+ <version>@LOGBACK_CORE_VERSION@</version>
+ </dependency>
+
+ <dependency>
+ <groupId>ch.qos.logback</groupId>
+ <artifactId>logback-classic</artifactId>
+ <version>@LOGBACK_CLASSIC_VERSION@</version>
+ </dependency>
+
+ <!-- test dependencies -->
+
+ <dependency>
+ <groupId>org.javassist</groupId>
+ <artifactId>javassist</artifactId>
+ <version>@JAVASSIST_VERSION@</version>
+ <scope>test</scope>
+ </dependency>
+
+ <dependency>
+ <groupId>junit</groupId>
+ <artifactId>junit</artifactId>
+ <version>@JUNIT_VERSION@</version>
+ <scope>test</scope>
+ </dependency>
+
+ <dependency>
+ <groupId>org.mockito</groupId>
+ <artifactId>mockito-core</artifactId>
+ <version>@MOCKITO_VERSION@</version>
+ <scope>test</scope>
+ </dependency>
+
+ <dependency>
+ <groupId>org.powermock</groupId>
+ <artifactId>powermock-api-mockito</artifactId>
+ <version>@POWERMOCK_MOCKITO_VERSION@</version>
+ <scope>test</scope>
+ </dependency>
+
+ <dependency>
+ <groupId>org.powermock</groupId>
+ <artifactId>powermock-module-junit4</artifactId>
+ <version>@POWERMOCK_MOCKITO_VERSION@</version>
+ <scope>test</scope>
+ </dependency>
+
+ <!-- misc. build-time dependencies -->
+
+ <dependency>
+ <groupId>com.google.gwt</groupId>
+ <artifactId>gwt-user</artifactId>
+ <version>@GWT_VERSION@</version>
+ </dependency>
+
+ </dependencies>
+
+</project>

0 comments on commit 1e3b582

Please sign in to comment.