pom.xml 13.3 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
    <parent>
25 26
        <artifactId>apache-atlas</artifactId>
        <groupId>org.apache.atlas</groupId>
27 28 29 30
        <version>0.1-incubating-SNAPSHOT</version>
        <relativePath>../../</relativePath>
    </parent>
    <artifactId>hive-bridge</artifactId>
31 32
    <description>Apache Atlas Hive Bridge Module</description>
    <name>Apache Atlas Hive Bridge</name>
33
    <packaging>jar</packaging>
34

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

40
    <dependencies>
41 42 43 44 45
        <dependency>
            <groupId>org.apache.hadoop</groupId>
            <artifactId>hadoop-minikdc</artifactId>
        </dependency>

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

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

57 58 59
        <dependency>
            <groupId>org.apache.hive</groupId>
            <artifactId>hive-metastore</artifactId>
60
            <version>${hive.version}</version>
61
            <scope>provided</scope>
62
        </dependency>
63

64 65 66
        <dependency>
            <groupId>org.apache.hive</groupId>
            <artifactId>hive-exec</artifactId>
67
            <version>${hive.version}</version>
68
            <scope>provided</scope>
69
        </dependency>
70

71
        <dependency>
72 73 74 75
            <groupId>org.apache.hive</groupId>
            <artifactId>hive-cli</artifactId>
            <version>${hive.version}</version>
            <scope>test</scope>
76 77
        </dependency>

78
        <dependency>
79 80
            <groupId>org.apache.atlas</groupId>
            <artifactId>atlas-client</artifactId>
81 82 83 84 85 86 87 88 89 90 91 92
            <version>${version}</version>
            <exclusions>
                <exclusion>
                    <groupId>com.google.guava</groupId>
                    <artifactId>guava</artifactId>
                </exclusion>
            </exclusions>
            <scope>runtime</scope>
            <type>test-jar</type>
        </dependency>

        <dependency>
93 94
            <groupId>org.apache.atlas</groupId>
            <artifactId>atlas-typesystem</artifactId>
95 96
        </dependency>

97 98 99
        <dependency>
            <groupId>org.apache.hadoop</groupId>
            <artifactId>hadoop-client</artifactId>
100 101 102 103 104
        </dependency>

        <dependency>
            <groupId>org.apache.hadoop</groupId>
            <artifactId>hadoop-annotations</artifactId>
105 106
        </dependency>

107
        <dependency>
108 109
            <groupId>org.testng</groupId>
            <artifactId>testng</artifactId>
110
        </dependency>
111 112

        <dependency>
113 114
            <groupId>org.apache.atlas</groupId>
            <artifactId>atlas-webapp</artifactId>
115
            <classifier>classes</classifier>
116
        </dependency>
117 118 119 120

        <dependency>
            <groupId>org.mortbay.jetty</groupId>
            <artifactId>jetty</artifactId>
121
            <scope>test</scope>
122
        </dependency>
123 124
    </dependencies>

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

            <plugin>
                <groupId>org.mortbay.jetty</groupId>
                <artifactId>maven-jetty-plugin</artifactId>
                <version>${jetty.version}</version>
235
                <configuration>
236 237 238 239 240 241 242 243
                    <skip>${skipTests}</skip>
                    <!--only skip int tests -->
                    <connectors>
                        <connector implementation="org.mortbay.jetty.nio.SelectChannelConnector">
                            <port>21000</port>
                            <maxIdleTime>60000</maxIdleTime>
                        </connector>
                    </connectors>
244
                    <webApp>../../webapp/target/atlas-webapp-${project.version}.war</webApp>
245 246 247 248
                    <contextPath>/</contextPath>
                    <useTestClasspath>true</useTestClasspath>
                    <systemProperties>
                        <systemProperty>
249
                            <name>atlas.log.dir</name>
250 251
                            <value>${project.build.directory}/logs</value>
                        </systemProperty>
Shwetha GS committed
252
                        <systemProperty>
253
                            <name>atlas.conf</name>
Shwetha GS committed
254 255
                            <value>addons/hive-bridge/src/test/resources</value>
                        </systemProperty>
256
                    </systemProperties>
257
                    <stopKey>atlas-stop</stopKey>
258
                    <stopPort>41001</stopPort>
259
                </configuration>
260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278
                <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>
279
            </plugin>
Shwetha GS committed
280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304

            <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>
305

306 307 308 309 310 311
            <plugin>
                <groupId>org.apache.felix</groupId>
                <artifactId>maven-bundle-plugin</artifactId>
                <inherited>true</inherited>
                <extensions>true</extensions>
            </plugin>
312 313
        </plugins>
    </build>
314
</project>