pom.xml 13.7 KB
Newer Older
1
<?xml version="1.0" encoding="UTF-8"?>
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
<!--
  ~ 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.
  -->

20 21
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xmlns="http://maven.apache.org/POM/4.0.0"
22 23
         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>
24 25 26 27 28 29 30 31 32 33
    <parent>
        <artifactId>metadata-governance</artifactId>
        <groupId>org.apache.hadoop.metadata</groupId>
        <version>0.1-incubating-SNAPSHOT</version>
        <relativePath>../../</relativePath>
    </parent>
    <artifactId>hive-bridge</artifactId>
    <description>Apache Metadata Hive Bridge Module</description>
    <name>Apache Metadata Hive Bridge</name>
    <packaging>jar</packaging>
34

35
    <properties>
36
        <hive.version>1.2.0</hive.version>
37
        <calcite.version>0.9.2-incubating</calcite.version>
38
        <hadoop.version>2.6.0</hadoop.version>
39
    </properties>
40

41
    <dependencies>
42 43 44 45 46 47 48
        <dependency>
            <groupId>org.apache.hadoop</groupId>
            <artifactId>hadoop-minikdc</artifactId>
            <version>${hadoop.version}</version>
            <scope>test</scope>
        </dependency>

Shwetha GS committed
49 50 51 52 53 54 55 56 57 58 59
        <!-- Logging -->
        <dependency>
            <groupId>org.slf4j</groupId>
            <artifactId>slf4j-api</artifactId>
        </dependency>

        <dependency>
            <groupId>org.slf4j</groupId>
            <artifactId>slf4j-log4j12</artifactId>
        </dependency>

60 61 62
        <dependency>
            <groupId>org.apache.hive</groupId>
            <artifactId>hive-metastore</artifactId>
63
            <version>${hive.version}</version>
64
            <scope>provided</scope>
65
        </dependency>
66

67 68 69
        <dependency>
            <groupId>org.apache.hive</groupId>
            <artifactId>hive-exec</artifactId>
70
            <version>${hive.version}</version>
71
            <scope>provided</scope>
72
        </dependency>
73

74

75
        <dependency>
76 77 78 79
            <groupId>org.apache.hive</groupId>
            <artifactId>hive-cli</artifactId>
            <version>${hive.version}</version>
            <scope>test</scope>
80 81
        </dependency>

82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100
        <dependency>
            <groupId>org.apache.hadoop.metadata</groupId>
            <artifactId>metadata-client</artifactId>
            <version>${version}</version>
            <exclusions>
                <exclusion>
                    <groupId>com.google.guava</groupId>
                    <artifactId>guava</artifactId>
                </exclusion>
            </exclusions>
            <scope>runtime</scope>
            <type>test-jar</type>
        </dependency>

        <dependency>
            <groupId>org.apache.hadoop.metadata</groupId>
            <artifactId>metadata-typesystem</artifactId>
        </dependency>

101 102 103
        <dependency>
            <groupId>org.apache.hadoop</groupId>
            <artifactId>hadoop-client</artifactId>
104
            <version>${hadoop.version}</version>
105 106 107 108 109 110
        </dependency>

        <dependency>
            <groupId>org.apache.hadoop</groupId>
            <artifactId>hadoop-annotations</artifactId>
            <version>${hadoop.version}</version>
111 112
        </dependency>

113
        <dependency>
114 115
            <groupId>org.testng</groupId>
            <artifactId>testng</artifactId>
116
        </dependency>
117 118 119 120 121

        <dependency>
            <groupId>org.apache.hadoop.metadata</groupId>
            <artifactId>metadata-webapp</artifactId>
            <version>${project.version}</version>
122
            <classifier>classes</classifier>
123
        </dependency>
124 125 126 127

        <dependency>
            <groupId>org.mortbay.jetty</groupId>
            <artifactId>jetty</artifactId>
128
            <scope>test</scope>
129 130
        </dependency>

131 132
    </dependencies>

133 134 135 136
    <build>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
137 138 139 140
                <artifactId>maven-dependency-plugin</artifactId>
                <version>2.10</version>
                <executions>
                    <execution>
141
                        <id>copy-bridge-dependencies</id>
142 143 144 145 146
                        <phase>package</phase>
                        <goals>
                            <goal>copy-dependencies</goal>
                        </goals>
                        <configuration>
147 148 149 150 151 152 153 154
                            <outputDirectory>${project.build.directory}/dependency/bridge/hive</outputDirectory>
                            <includeScope>compile</includeScope>
                            <overWriteReleases>false</overWriteReleases>
                            <overWriteSnapshots>false</overWriteSnapshots>
                            <overWriteIfNewer>true</overWriteIfNewer>
                        </configuration>
                    </execution>
                    <execution>
155
                        <id>copy</id>
156 157
                        <phase>package</phase>
                        <goals>
158
                            <goal>copy</goal>
159 160
                        </goals>
                        <configuration>
161 162 163 164 165 166 167 168 169
                            <artifactItems>
                                <artifactItem>
                                    <groupId>${project.groupId}</groupId>
                                    <artifactId>${project.artifactId}</artifactId>
                                    <version>${project.version}</version>
                                    <overWrite>true</overWrite>
                                    <outputDirectory>${project.build.directory}/dependency/hook/hive</outputDirectory>
                                </artifactItem>
                            </artifactItems>
170 171
                        </configuration>
                    </execution>
172
                    <execution>
173
                        <id>copy-hook-dependencies</id>
174 175 176 177 178
                        <phase>package</phase>
                        <goals>
                            <goal>copy</goal>
                        </goals>
                        <configuration>
179 180 181 182
                            <outputDirectory>${project.build.directory}/dependency/hook/hive</outputDirectory>
                            <overWriteReleases>false</overWriteReleases>
                            <overWriteSnapshots>false</overWriteSnapshots>
                            <overWriteIfNewer>true</overWriteIfNewer>
183 184 185 186 187
                            <artifactItems>
                                <artifactItem>
                                    <groupId>${project.groupId}</groupId>
                                    <artifactId>${project.artifactId}</artifactId>
                                    <version>${project.version}</version>
188 189 190 191
                                </artifactItem>
                                <artifactItem>
                                    <groupId>org.json4s</groupId>
                                    <artifactId>json4s-native_2.10</artifactId>
192
                                    <version>${json.version}</version>
193 194 195 196
                                </artifactItem>
                                <artifactItem>
                                    <groupId>org.json4s</groupId>
                                    <artifactId>json4s-core_2.10</artifactId>
197
                                    <version>${json.version}</version>
198 199 200 201
                                </artifactItem>
                                <artifactItem>
                                    <groupId>org.json4s</groupId>
                                    <artifactId>json4s-ast_2.10</artifactId>
202
                                    <version>${json.version}</version>
203 204 205
                                </artifactItem>
                                <artifactItem>
                                    <groupId>${project.groupId}</groupId>
206
                                    <artifactId>metadata-client</artifactId>
207
                                    <version>${project.version}</version>
208 209 210 211 212 213 214 215 216
                                </artifactItem>
                                <artifactItem>
                                    <groupId>${project.groupId}</groupId>
                                    <artifactId>metadata-typesystem</artifactId>
                                    <version>${project.version}</version>
                                </artifactItem>
                                <artifactItem>
                                    <groupId>org.scala-lang</groupId>
                                    <artifactId>scala-compiler</artifactId>
217
                                    <version>${scala.version}</version>
218 219 220 221
                                </artifactItem>
                                <artifactItem>
                                    <groupId>org.scala-lang</groupId>
                                    <artifactId>scala-reflect</artifactId>
222
                                    <version>${scala.version}</version>
223 224 225 226
                                </artifactItem>
                                <artifactItem>
                                    <groupId>org.scala-lang</groupId>
                                    <artifactId>scala-library</artifactId>
227
                                    <version>${scala.version}</version>
228 229 230 231
                                </artifactItem>
                                <artifactItem>
                                    <groupId>org.scala-lang</groupId>
                                    <artifactId>scalap</artifactId>
232
                                    <version>${scala.version}</version>
233 234 235 236 237 238
                                </artifactItem>
                            </artifactItems>
                        </configuration>
                    </execution>
                </executions>
            </plugin>
239 240 241 242 243

            <plugin>
                <groupId>org.mortbay.jetty</groupId>
                <artifactId>maven-jetty-plugin</artifactId>
                <version>${jetty.version}</version>
244
                <configuration>
245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260
                    <skip>${skipTests}</skip>
                    <!--only skip int tests -->
                    <connectors>
                        <connector implementation="org.mortbay.jetty.nio.SelectChannelConnector">
                            <port>21000</port>
                            <maxIdleTime>60000</maxIdleTime>
                        </connector>
                    </connectors>
                    <webApp>../../webapp/target/metadata-webapp-${project.version}.war</webApp>
                    <contextPath>/</contextPath>
                    <useTestClasspath>true</useTestClasspath>
                    <systemProperties>
                        <systemProperty>
                            <name>metadata.log.dir</name>
                            <value>${project.build.directory}/logs</value>
                        </systemProperty>
Shwetha GS committed
261
                        <systemProperty>
262
                            <name>metadata.conf</name>
Shwetha GS committed
263 264
                            <value>addons/hive-bridge/src/test/resources</value>
                        </systemProperty>
265 266 267
                    </systemProperties>
                    <stopKey>metadata-stop</stopKey>
                    <stopPort>41001</stopPort>
268
                </configuration>
269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287
                <executions>
                    <execution>
                        <id>start-jetty</id>
                        <phase>pre-integration-test</phase>
                        <goals>
                            <goal>deploy-war</goal>
                        </goals>
                        <configuration>
                            <daemon>true</daemon>
                        </configuration>
                    </execution>
                    <execution>
                        <id>stop-jetty</id>
                        <phase>post-integration-test</phase>
                        <goals>
                            <goal>stop</goal>
                        </goals>
                    </execution>
                </executions>
288
            </plugin>
Shwetha GS committed
289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313

            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-site-plugin</artifactId>
                <dependencies>
                    <dependency>
                        <groupId>org.apache.maven.doxia</groupId>
                        <artifactId>doxia-module-twiki</artifactId>
                        <version>1.3</version>
                    </dependency>
                </dependencies>
                <executions>
                    <execution>
                        <goals>
                            <goal>site</goal>
                        </goals>
                        <phase>prepare-package</phase>
                    </execution>
                </executions>
                <configuration>
                    <generateProjectInfo>false</generateProjectInfo>
                    <generateReports>false</generateReports>
                    <skip>false</skip>
                </configuration>
            </plugin>
314 315 316 317 318 319
            <plugin>
                <groupId>org.apache.felix</groupId>
                <artifactId>maven-bundle-plugin</artifactId>
                <inherited>true</inherited>
                <extensions>true</extensions>
            </plugin>
320 321
        </plugins>
    </build>
322
</project>