pom.xml 22.9 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
<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">
21
    <modelVersion>4.0.0</modelVersion>
22
    <parent>
23 24
        <artifactId>apache-atlas</artifactId>
        <groupId>org.apache.atlas</groupId>
25
        <version>1.0.0-SNAPSHOT</version>
26 27 28
        <relativePath>../../</relativePath>
    </parent>
    <artifactId>hive-bridge</artifactId>
29 30
    <description>Apache Atlas Hive Bridge Module</description>
    <name>Apache Atlas Hive Bridge</name>
31
    <packaging>jar</packaging>
32

33
    <properties>
34
        <hive.version>1.2.1</hive.version>
35
        <calcite.version>0.9.2-incubating</calcite.version>
36
    </properties>
37

38
    <dependencies>
Shwetha GS committed
39 40 41 42 43 44 45 46 47 48 49
        <!-- Logging -->
        <dependency>
            <groupId>org.slf4j</groupId>
            <artifactId>slf4j-api</artifactId>
        </dependency>

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

50 51 52
        <dependency>
            <groupId>org.apache.hive</groupId>
            <artifactId>hive-metastore</artifactId>
53
            <version>${hive.version}</version>
54
            <scope>provided</scope>
55 56 57 58 59 60 61
            <exclusions>
                <exclusion>
                    <groupId>org.mortbay.jetty</groupId>
                    <artifactId>*</artifactId>
                </exclusion>
            </exclusions>

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 72 73 74 75
        <dependency>
            <groupId>org.apache.hive</groupId>
            <artifactId>hive-jdbc</artifactId>
            <version>${hive.version}</version>
            <scope>test</scope>
76 77 78 79 80 81
            <exclusions>
                <exclusion>
                    <groupId>javax.servlet</groupId>
                    <artifactId>servlet-api</artifactId>
                </exclusion>
            </exclusions>
82 83
        </dependency>

84
        <dependency>
85 86 87 88
            <groupId>org.apache.hive</groupId>
            <artifactId>hive-cli</artifactId>
            <version>${hive.version}</version>
            <scope>test</scope>
89 90 91 92 93 94 95 96 97 98 99
            <exclusions>
                <exclusion>
                    <groupId>javax.servlet</groupId>
                    <artifactId>*</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>org.eclipse.jetty.aggregate</groupId>
                    <artifactId>*</artifactId>
                </exclusion>
            </exclusions>

100 101
        </dependency>

102
        <dependency>
103
            <groupId>org.apache.atlas</groupId>
104
            <artifactId>atlas-client-v1</artifactId>
105 106
        </dependency>

107 108 109 110 111
        <dependency>
            <groupId>org.apache.atlas</groupId>
            <artifactId>atlas-notification</artifactId>
        </dependency>

112 113 114 115 116
        <dependency>
            <groupId>org.apache.atlas</groupId>
            <artifactId>hdfs-model</artifactId>
        </dependency>

117
        <!-- to bring up atlas server for integration tests -->
118
        <dependency>
119
            <groupId>org.apache.atlas</groupId>
120 121 122
            <artifactId>atlas-webapp</artifactId>
            <type>war</type>
            <scope>test</scope>
123 124
        </dependency>

125 126 127
        <dependency>
            <groupId>org.apache.hadoop</groupId>
            <artifactId>hadoop-client</artifactId>
128 129 130 131 132 133
            <exclusions>
                <exclusion>
                    <groupId>javax.servlet</groupId>
                    <artifactId>servlet-api</artifactId>
                </exclusion>
            </exclusions>
134 135 136 137 138
        </dependency>

        <dependency>
            <groupId>org.apache.hadoop</groupId>
            <artifactId>hadoop-annotations</artifactId>
139 140
        </dependency>

141 142 143 144 145 146
        <dependency>
            <groupId>com.fasterxml.jackson.core</groupId>
            <artifactId>jackson-databind</artifactId>
            <version>${jackson.version}</version>
        </dependency>

147
        <dependency>
148 149
            <groupId>org.testng</groupId>
            <artifactId>testng</artifactId>
150
        </dependency>
151

152 153 154 155 156
        <dependency>
            <groupId>org.mockito</groupId>
            <artifactId>mockito-all</artifactId>
        </dependency>

157 158 159
        <dependency>
            <groupId>org.eclipse.jetty</groupId>
            <artifactId>jetty-server</artifactId>
160
            <scope>test</scope>
161
        </dependency>
162

163 164 165 166 167 168 169
        <dependency>
            <groupId>org.apache.atlas</groupId>
            <artifactId>atlas-graphdb-impls</artifactId>
            <type>pom</type>
            <scope>test</scope>
        </dependency>

170 171
        <dependency>
            <groupId>org.apache.atlas</groupId>
172
            <artifactId>atlas-intg</artifactId>
173 174 175
            <classifier>tests</classifier>
            <scope>test</scope>
        </dependency>
176 177 178 179 180 181 182

        <dependency>
            <groupId>org.apache.atlas</groupId>
            <artifactId>atlas-repository</artifactId>
            <classifier>tests</classifier>
            <scope>test</scope>
        </dependency>
183 184
    </dependencies>

185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210
    <profiles>
        <profile>
            <id>dist</id>
            <build>
                <plugins>
                    <plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-dependency-plugin</artifactId>
                        <executions>
                            <execution>
                                <id>copy-hook</id>
                                <phase>package</phase>
                                <goals>
                                    <goal>copy</goal>
                                </goals>
                                <configuration>
                                    <outputDirectory>${project.build.directory}/dependency/hook/hive/atlas-hive-plugin-impl</outputDirectory>
                                    <overWriteReleases>false</overWriteReleases>
                                    <overWriteSnapshots>false</overWriteSnapshots>
                                    <overWriteIfNewer>true</overWriteIfNewer>
                                    <artifactItems>
                                        <artifactItem>
                                            <groupId>${project.groupId}</groupId>
                                            <artifactId>${project.artifactId}</artifactId>
                                            <version>${project.version}</version>
                                        </artifactItem>
211 212 213 214 215
                                        <artifactItem>
                                            <groupId>${project.groupId}</groupId>
                                            <artifactId>atlas-client-common</artifactId>
                                            <version>${project.version}</version>
                                        </artifactItem>
216 217
                                        <artifactItem>
                                            <groupId>${project.groupId}</groupId>
218
                                            <artifactId>atlas-client-v1</artifactId>
219 220
                                            <version>${project.version}</version>
                                        </artifactItem>
221 222 223 224 225
                                        <artifactItem>
                                            <groupId>${project.groupId}</groupId>
                                            <artifactId>atlas-client-v2</artifactId>
                                            <version>${project.version}</version>
                                        </artifactItem>
226 227 228
                                        <artifactItem>
                                            <groupId>${project.groupId}</groupId>
                                            <artifactId>atlas-intg</artifactId>
229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247
                                            <version>${project.version}</version>
                                        </artifactItem>
                                        <artifactItem>
                                            <groupId>${project.groupId}</groupId>
                                            <artifactId>atlas-notification</artifactId>
                                            <version>${project.version}</version>
                                        </artifactItem>
                                        <artifactItem>
                                            <groupId>${project.groupId}</groupId>
                                            <artifactId>hdfs-model</artifactId>
                                            <version>${project.version}</version>
                                        </artifactItem>
                                        <artifactItem>
                                            <groupId>${project.groupId}</groupId>
                                            <artifactId>atlas-common</artifactId>
                                            <version>${project.version}</version>
                                        </artifactItem>
                                        <artifactItem>
                                            <groupId>org.apache.kafka</groupId>
248
                                            <artifactId>kafka_${kafka.scala.binary.version}</artifactId>
249 250 251 252 253 254 255
                                            <version>${kafka.version}</version>
                                        </artifactItem>
                                        <artifactItem>
                                            <groupId>org.apache.kafka</groupId>
                                            <artifactId>kafka-clients</artifactId>
                                            <version>${kafka.version}</version>
                                        </artifactItem>
256 257 258 259 260
                                        <artifactItem>
                                            <groupId>com.sun.jersey.contribs</groupId>
                                            <artifactId>jersey-multipart</artifactId>
                                            <version>${jersey.version}</version>
                                        </artifactItem>
261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285
                                        <artifactItem>
                                            <groupId>org.scala-lang</groupId>
                                            <artifactId>scala-library</artifactId>
                                            <version>${scala.version}</version>
                                        </artifactItem>
                                        <artifactItem>
                                            <groupId>com.fasterxml.jackson.core</groupId>
                                            <artifactId>jackson-databind</artifactId>
                                            <version>${jackson.version}</version>
                                        </artifactItem>
                                        <artifactItem>
                                            <groupId>com.fasterxml.jackson.core</groupId>
                                            <artifactId>jackson-core</artifactId>
                                            <version>${jackson.version}</version>
                                        </artifactItem>
                                        <artifactItem>
                                            <groupId>com.fasterxml.jackson.core</groupId>
                                            <artifactId>jackson-annotations</artifactId>
                                            <version>${jackson.version}</version>
                                        </artifactItem>
                                        <artifactItem>
                                            <groupId>commons-configuration</groupId>
                                            <artifactId>commons-configuration</artifactId>
                                            <version>${commons-conf.version}</version>
                                        </artifactItem>
286 287 288 289 290
                                        <artifactItem>
                                            <groupId>org.apache.hbase</groupId>
                                            <artifactId>hbase-common</artifactId>
                                            <version>${hbase.version}</version>
                                        </artifactItem>
291 292 293 294 295 296 297 298 299 300
                                        <artifactItem>
                                            <groupId>com.sun.jersey</groupId>
                                            <artifactId>jersey-json</artifactId>
                                            <version>${jersey.version}</version>
                                        </artifactItem>
                                        <artifactItem>
                                            <groupId>javax.ws.rs</groupId>
                                            <artifactId>jsr311-api</artifactId>
                                            <version>${jsr.version}</version>
                                        </artifactItem>
301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334
                                    </artifactItems>
                                </configuration>
                            </execution>
                            <execution>
                                <id>copy-hook-shim</id>
                                <phase>package</phase>
                                <goals>
                                    <goal>copy</goal>
                                </goals>
                                <configuration>
                                    <outputDirectory>${project.build.directory}/dependency/hook/hive</outputDirectory>
                                    <overWriteReleases>false</overWriteReleases>
                                    <overWriteSnapshots>false</overWriteSnapshots>
                                    <overWriteIfNewer>true</overWriteIfNewer>
                                    <artifactItems>
                                        <artifactItem>
                                            <groupId>${project.groupId}</groupId>
                                            <artifactId>hive-bridge-shim</artifactId>
                                            <version>${project.version}</version>
                                        </artifactItem>
                                        <artifactItem>
                                            <groupId>${project.groupId}</groupId>
                                            <artifactId>atlas-plugin-classloader</artifactId>
                                            <version>${project.version}</version>
                                        </artifactItem>
                                    </artifactItems>
                                </configuration>
                            </execution>
                        </executions>
                    </plugin>
                </plugins>
            </build>
        </profile>
    </profiles>
335 336
    <build>
        <plugins>
337
            <plugin>
338 339
                <groupId>org.eclipse.jetty</groupId>
                <artifactId>jetty-maven-plugin</artifactId>
340
                <configuration>
341 342
                    <skip>${skipTests}</skip>
                    <!--only skip int tests -->
343
                    <httpConnector>
344
                        <port>31000</port>
345 346 347 348
                        <idleTimeout>60000</idleTimeout>
                    </httpConnector>
                    <war>../../webapp/target/atlas-webapp-${project.version}.war</war>
                    <daemon>true</daemon>
349
                    <webAppSourceDirectory>../../webapp/src/test/webapp</webAppSourceDirectory>
350 351
                    <webApp>
                        <contextPath>/</contextPath>
352
                        <descriptor>${project.basedir}/../../webapp/src/test/webapp/WEB-INF/web.xml</descriptor>
353 354
                    </webApp>
                    <useTestScope>true</useTestScope>
355
                    <systemProperties>
356
                        <force>true</force>
357
                        <systemProperty>
358 359
                            <name>atlas.home</name>
                            <value>${project.build.directory}</value>
360 361
                        </systemProperty>
                        <systemProperty>
362 363
                            <key>atlas.conf</key>
                            <value>${project.build.directory}/test-classes</value>
364 365
                        </systemProperty>
                        <systemProperty>
366 367
                            <name>atlas.data</name>
                            <value>${project.build.directory}/data</value>
368 369
                        </systemProperty>
                        <systemProperty>
370 371
                            <name>atlas.log.dir</name>
                            <value>${project.build.directory}/logs</value>
372 373
                        </systemProperty>
                        <systemProperty>
374 375
                            <name>atlas.log.file</name>
                            <value>application.log</value>
376
                        </systemProperty>
377
                        <systemProperty>
378 379
                            <name>log4j.configuration</name>
                            <value>file:///${project.build.directory}/test-classes/atlas-log4j.xml</value>
380
                        </systemProperty>
381
                        <systemProperty>
382 383
                            <name>atlas.graphdb.backend</name>
                            <value>${graphdb.backend.impl}</value>
384
                        </systemProperty>
385
                        <systemProperty>
386
                            <key>embedded.solr.directory</key>
387
                            <value>${project.build.directory}</value>
388
                        </systemProperty>
389
                    </systemProperties>
390
                    <stopKey>atlas-stop</stopKey>
391
                    <stopPort>31001</stopPort>
392
                    <stopWait>${jetty-maven-plugin.stopWait}</stopWait>
393
                </configuration>
394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412
                <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>
413
            </plugin>
Shwetha GS committed
414 415 416 417 418 419 420 421

            <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>
422 423 424 425 426 427
                        <version>${doxia.version}</version>
                    </dependency>
                    <dependency>
                        <groupId>org.apache.maven.doxia</groupId>
                        <artifactId>doxia-core</artifactId>
                        <version>${doxia.version}</version>
Shwetha GS committed
428 429 430 431 432 433 434 435 436 437 438 439 440 441 442
                    </dependency>
                </dependencies>
                <executions>
                    <execution>
                        <goals>
                            <goal>site</goal>
                        </goals>
                        <phase>prepare-package</phase>
                    </execution>
                </executions>
                <configuration>
                    <generateProjectInfo>false</generateProjectInfo>
                    <generateReports>false</generateReports>
                </configuration>
            </plugin>
443 444 445 446 447 448 449 450 451

            <plugin>
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>exec-maven-plugin</artifactId>
                <version>1.2.1</version>
                <inherited>false</inherited>
                <executions>
                </executions>
            </plugin>
452 453 454 455 456 457 458 459 460 461 462 463

            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-resources-plugin</artifactId>
                <executions>
                    <execution>
                        <id>copy-resources</id>
                        <phase>validate</phase>
                        <goals>
                            <goal>copy-resources</goal>
                        </goals>
                        <configuration>
464
                            <outputDirectory>${basedir}/target/models</outputDirectory>
465 466
                            <resources>
                                <resource>
467
                                    <directory>${basedir}/../models</directory>
468 469 470 471
                                    <includes>
                                        <include>0000-Area0/0010-base_model.json</include>
                                        <include>1000-Hadoop/**</include>
                                    </includes>
472 473 474 475 476 477
                                </resource>
                            </resources>
                        </configuration>
                    </execution>
                </executions>
            </plugin>
478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497
            <plugin>
                <artifactId>maven-resources-plugin</artifactId>
                <executions>
                    <execution>
                        <id>copy-solr-resources</id>
                        <phase>validate</phase>
                        <goals>
                            <goal>copy-resources</goal>
                        </goals>
                        <configuration>
                            <outputDirectory>${project.build.directory}/solr</outputDirectory>
                            <resources>
                                <resource>
                                    <directory>${basedir}/../../test-tools/src/main/resources/solr</directory>
                                </resource>
                            </resources>
                        </configuration>
                    </execution>
                </executions>
            </plugin>
498 499
        </plugins>
    </build>
500
</project>