| <?xml version="1.0" encoding="UTF-8"?> |
| <!-- |
| Licensed to the Apache Software Foundation (ASF) under one |
| or more contributor license agreements. See the NOTICE file |
| distributed with this work for additional information |
| regarding copyright ownership. The ASF licenses this file |
| to you under the Apache License, Version 2.0 (the |
| "License"); you may not use this file except in compliance |
| with the License. You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, software |
| distributed under the License is distributed on an "AS IS" BASIS, |
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| See the License for the specific language governing permissions and |
| limitations under the License. |
| --> |
| |
| <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"> |
| <parent> |
| <artifactId>tajo-project</artifactId> |
| <groupId>org.apache.tajo</groupId> |
| <version>0.11.1-SNAPSHOT</version> |
| <relativePath>../../tajo-project</relativePath> |
| </parent> |
| <modelVersion>4.0.0</modelVersion> |
| |
| <artifactId>tajo-storage-pgsql</artifactId> |
| <packaging>jar</packaging> |
| <name>Tajo PostgreSQL JDBC storage</name> |
| <properties> |
| <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
| <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> |
| </properties> |
| |
| <build> |
| <plugins> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-compiler-plugin</artifactId> |
| <configuration> |
| <source>1.7</source> |
| <target>1.7</target> |
| <encoding>${project.build.sourceEncoding}</encoding> |
| </configuration> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.rat</groupId> |
| <artifactId>apache-rat-plugin</artifactId> |
| <configuration> |
| <excludes> |
| <exclude>derby.log</exclude> |
| <exclude>src/test/resources/dataset/**</exclude> |
| <exclude>src/test/resources/queries/**</exclude> |
| <exclude>src/test/resources/results/**</exclude> |
| <exclude>src/test/resources/pgsql/**</exclude> |
| </excludes> |
| </configuration> |
| <executions> |
| <execution> |
| <phase>verify</phase> |
| <goals> |
| <goal>check</goal> |
| </goals> |
| </execution> |
| </executions> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-jar-plugin</artifactId> |
| <version>2.4</version> |
| <executions> |
| <execution> |
| <goals> |
| <goal>test-jar</goal> |
| </goals> |
| </execution> |
| </executions> |
| </plugin> |
| |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-surefire-plugin</artifactId> |
| <configuration> |
| <skipTests>true</skipTests> |
| </configuration> |
| </plugin> |
| </plugins> |
| </build> |
| |
| |
| <dependencies> |
| <dependency> |
| <groupId>org.apache.tajo</groupId> |
| <artifactId>tajo-common</artifactId> |
| <scope>provided</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.tajo</groupId> |
| <artifactId>tajo-catalog-common</artifactId> |
| <scope>provided</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.tajo</groupId> |
| <artifactId>tajo-plan</artifactId> |
| <scope>provided</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.tajo</groupId> |
| <artifactId>tajo-storage-common</artifactId> |
| <scope>provided</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.tajo</groupId> |
| <artifactId>tajo-storage-hdfs</artifactId> |
| <scope>provided</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.tajo</groupId> |
| <artifactId>tajo-storage-jdbc</artifactId> |
| <scope>provided</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.tajo</groupId> |
| <artifactId>tajo-cluster-tests</artifactId> |
| <type>test-jar</type> |
| <scope>test</scope> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.apache.hadoop</groupId> |
| <artifactId>hadoop-common</artifactId> |
| <scope>provided</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.hadoop</groupId> |
| <artifactId>hadoop-minicluster</artifactId> |
| <scope>test</scope> |
| <exclusions> |
| <exclusion> |
| <groupId>commons-el</groupId> |
| <artifactId>commons-el</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>tomcat</groupId> |
| <artifactId>jasper-runtime</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>tomcat</groupId> |
| <artifactId>jasper-compiler</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>org.mortbay.jetty</groupId> |
| <artifactId>jsp-2.1-jetty</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>com.sun.jersey.jersey-test-framework</groupId> |
| <artifactId>jersey-test-framework-grizzly2</artifactId> |
| </exclusion> |
| <exclusion> |
| <artifactId>netty-all</artifactId> |
| <groupId>io.netty</groupId> |
| </exclusion> |
| </exclusions> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.hadoop</groupId> |
| <artifactId>hadoop-hdfs</artifactId> |
| <scope>test</scope> |
| <exclusions> |
| <exclusion> |
| <groupId>commons-el</groupId> |
| <artifactId>commons-el</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>tomcat</groupId> |
| <artifactId>jasper-runtime</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>tomcat</groupId> |
| <artifactId>jasper-compiler</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>org.mortbay.jetty</groupId> |
| <artifactId>jsp-2.1-jetty</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>com.sun.jersey.jersey-test-framework</groupId> |
| <artifactId>jersey-test-framework-grizzly2</artifactId> |
| </exclusion> |
| <exclusion> |
| <artifactId>netty-all</artifactId> |
| <groupId>io.netty</groupId> |
| </exclusion> |
| </exclusions> |
| </dependency> |
| |
| <dependency> |
| <groupId>com.google.protobuf</groupId> |
| <artifactId>protobuf-java</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>junit</groupId> |
| <artifactId>junit</artifactId> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>io.airlift</groupId> |
| <artifactId>testing-postgresql-server</artifactId> |
| <version>0.3</version> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>com.google.guava</groupId> |
| <artifactId>guava</artifactId> |
| <version>15.0</version> |
| <!--<scope>test</scope>--> |
| </dependency> |
| </dependencies> |
| |
| <profiles> |
| <profile> |
| <!-- testing-postgresql-server only supports x86-64 on linux environment --> |
| <id>linux-x86_64-tests</id> |
| <activation> |
| <os> |
| <name>linux</name> |
| <arch>x86_64</arch> |
| </os> |
| </activation> |
| <build> |
| <plugins> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-surefire-plugin</artifactId> |
| <configuration combine.self="override"> |
| <systemProperties> |
| <tajo.test.enabled>TRUE</tajo.test.enabled> |
| </systemProperties> |
| <argLine>-Xms512m -Xmx1024m -XX:MaxPermSize=128m -Dfile.encoding=UTF-8</argLine> |
| </configuration> |
| </plugin> |
| </plugins> |
| </build> |
| </profile> |
| <profile> |
| <!-- testing-postgresql-server only supports amd64 on linux environment --> |
| <id>linux-amd64-tests</id> |
| <activation> |
| <os> |
| <name>linux</name> |
| <arch>amd64</arch> |
| </os> |
| </activation> |
| <build> |
| <plugins> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-surefire-plugin</artifactId> |
| <configuration combine.self="override"> |
| <systemProperties> |
| <tajo.test.enabled>TRUE</tajo.test.enabled> |
| </systemProperties> |
| <argLine>-Xms512m -Xmx1024m -XX:MaxPermSize=128m -Dfile.encoding=UTF-8</argLine> |
| </configuration> |
| </plugin> |
| </plugins> |
| </build> |
| </profile> |
| <profile> |
| <!-- testing-postgresql-server only supports x86-64 on mac os environment --> |
| <id>macos-x86_64-tests</id> |
| <activation> |
| <os> |
| <name>mac os x</name> |
| <arch>x86_64</arch> |
| </os> |
| </activation> |
| <build> |
| <plugins> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-surefire-plugin</artifactId> |
| <configuration combine.self="override"> |
| <systemProperties> |
| <tajo.test.enabled>TRUE</tajo.test.enabled> |
| </systemProperties> |
| <argLine>-Xms512m -Xmx1024m -XX:MaxPermSize=128m -Dfile.encoding=UTF-8</argLine> |
| </configuration> |
| </plugin> |
| </plugins> |
| </build> |
| </profile> |
| <profile> |
| <id>docs</id> |
| <activation> |
| <activeByDefault>false</activeByDefault> |
| </activation> |
| <build> |
| <plugins> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-javadoc-plugin</artifactId> |
| <executions> |
| <execution> |
| <!-- build javadoc jars per jar for publishing to maven --> |
| <id>module-javadocs</id> |
| <phase>package</phase> |
| <goals> |
| <goal>jar</goal> |
| </goals> |
| <configuration> |
| <destDir>${project.build.directory}</destDir> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| </plugins> |
| </build> |
| </profile> |
| </profiles> |
| |
| <reporting> |
| <plugins> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-surefire-report-plugin</artifactId> |
| </plugin> |
| </plugins> |
| </reporting> |
| </project> |