Skip to content

Instantly share code, notes, and snippets.

@gwenshap
Created October 30, 2013 02:11
Show Gist options
  • Select an option

  • Save gwenshap/7226166 to your computer and use it in GitHub Desktop.

Select an option

Save gwenshap/7226166 to your computer and use it in GitHub Desktop.
pom for geo-spatial project
<?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/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>com.foobar.tps.spatial-bar</groupId>
<artifactId>spatial-bar</artifactId>
<version>1.0.13-SNAPSHOT</version>
</parent>
<artifactId>bar-interpolation</artifactId>
<name>Spatial bar: Interpolation</name>
<description>Spatial bar Interpolation</description>
<inceptionYear>2013</inceptionYear>
<scm>
<connection>scm:svn:http://svn01/tps/SpatialbarServices/trunk/bar-interpolation</connection>
<developerConnection>scm:svn:http://svn01/tps/SpatialbarServices/trunk/bar-interpolation
</developerConnection>
</scm>
<dependencies>
<dependency>
<groupId>commons-logging</groupId>
<artifactId>commons-logging</artifactId>
<version>1.1.1</version>
<scope>compile</scope>
</dependency>
<!-- = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = | foobar -->
<dependency>
<groupId>com.foobar.hadoop</groupId>
<artifactId>foobar-hadoop-hdfs</artifactId>
</dependency>
<dependency>
<groupId>com.foobar.hadoop</groupId>
<artifactId>foobar-mapreduce</artifactId>
</dependency>
<dependency>
<groupId>com.foobar.util</groupId>
<artifactId>xml-util</artifactId>
</dependency>
<dependency>
<groupId>com.foobar.tps.foo</groupId>
<artifactId>spatial-calculation</artifactId>
</dependency>
<dependency>
<groupId>com.foobar.tps.foo</groupId>
<artifactId>foo-hadoop-map-reduce</artifactId>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>spatial-bar-workflow-common</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.codehaus.jackson</groupId>
<artifactId>jackson-mapper-asl</artifactId>
</dependency>
<dependency>
<groupId>org.codehaus.jackson</groupId>
<artifactId>jackson-core-asl</artifactId>
</dependency>
<!-- = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = | Third Party -->
<dependency>
<groupId>org.apache.hbase</groupId>
<artifactId>hbase</artifactId>
</dependency>
<dependency>
<groupId>org.apache.hadoop</groupId>
<artifactId>hadoop-core</artifactId>
<exclusions>
<exclusion>
<groupId>commons-logging</groupId>
<artifactId>commons-logging</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.apache.avro</groupId>
<artifactId>avro</artifactId>
</dependency>
<dependency>
<groupId>com.foobar.util</groupId>
<artifactId>xml-util</artifactId>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>spatial-bar-avro</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>research-bar-processing</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-core</artifactId>
<version>${spring-framework-version}</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-web</artifactId>
<version>${spring-framework-version}</version>
</dependency>
<dependency>
<groupId>org.apache.hbase</groupId>
<artifactId>hbase</artifactId>
<version>0.94.2-cdh4.2.0</version>
<type>test-jar</type>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.apache.hadoop</groupId>
<artifactId>hadoop-hdfs</artifactId>
<version>2.0.0-cdh4.2.0</version>
<type>test-jar</type>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.apache.hadoop</groupId>
<artifactId>hadoop-hdfs</artifactId>
<version>2.0.0-cdh4.2.0</version>
</dependency>
<dependency>
<groupId>org.apache.hadoop</groupId>
<artifactId>hadoop-common</artifactId>
<version>2.0.0-cdh4.2.0</version>
<type>test-jar</type>
<scope>test</scope>
</dependency>
<!-- = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = | Test -->
<dependency>
<groupId>org.apache.mrunit</groupId>
<artifactId>mrunit</artifactId>
<version>0.9.0-incubating</version>
<classifier>hadoop2</classifier>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.apache.hadoop</groupId>
<artifactId>hadoop-test</artifactId>
<version>0.20.2</version>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<!-- This is here so that when we build locally the assembly zip files doesn't contain a version. Makes
it slightly more convenient to reference from scripts, etc -->
<finalName>bar-interpolation</finalName>
<resources>
<resource>
<directory>src/main/resources</directory>
</resource>
</resources>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>1.3.3</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
</execution>
</executions>
<configuration>
<finalName>uber-${artifactId}</finalName>
<artifactSet>
<excludes>
<exclude>org.slf4j:*</exclude>
<exclude>org.apache.*</exclude>
<exclude>org.eclipse:*</exclude>
<exclude>org.hsqldb:*</exclude>
<exclude>org.mortbay.*</exclude>
<exclude>org.xerial.*</exclude>
<exclude>org.codehaus.*</exclude>
<exclude>org.jboss.*</exclude>
<exclude>org.jboss.netty:*</exclude>
<exclude>com.google.*</exclude>
<exclude>com.sun.*</exclude>
<exclude>javax.*</exclude>
<exclude>jline.*</exclude>
</excludes>
</artifactSet>
</configuration>
</plugin>
<!-- = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
Assembly : build the zip file containing our Oozie application. The zip file is what
gets deployed to HDFS, unzipped. Then wen invoking oozie we pointing it at the workflow
definition file on HDFS.
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId>
<executions>
<execution>
<id>create-zip</id>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
<configuration>
<descriptor>src/main/assembly/bar-interpolation-assembly-definition.xml</descriptor>
</configuration>
</execution>
</executions>
</plugin>
<!-- <plugin>
<groupId>com.atlassian.maven.plugins</groupId>
<artifactId>maven-clover2-plugin</artifactId>
<configuration>
<excludes>
<exclude>com/foobar/tps/bar/interpolation/**</exclude>
</excludes>
</configuration>
</plugin>
-->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<version>2.0</version>
</plugin>
<plugin>
<groupId>com.foobar.tps</groupId>
<artifactId>repliweb-maven-plugin</artifactId>
<configuration>
<devDeploy>false</devDeploy>
<devJobNames>Spatialbar-interpolation-DEV-WF</devJobNames>
<testDeploy>false</testDeploy>
<testJobNames>Spatialbar-interpolation-TEST-WF</testJobNames>
<fileName>bar-standardization-workflow</fileName>
<fileExtension>zip</fileExtension>
</configuration>
</plugin>
</plugins>
</build>
</project>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment