pom.xml 24.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
<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 https://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>3.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

    <dependencies>
Shwetha GS committed
34 35 36 37 38 39 40 41 42 43 44
        <!-- Logging -->
        <dependency>
            <groupId>org.slf4j</groupId>
            <artifactId>slf4j-api</artifactId>
        </dependency>

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

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

61
        </dependency>
62

63 64 65
        <dependency>
            <groupId>org.apache.hive</groupId>
            <artifactId>hive-exec</artifactId>
66
            <version>${hive.version}</version>
67
            <scope>provided</scope>
68 69 70 71 72 73
            <exclusions>
                <exclusion>
                    <groupId>javax.servlet</groupId>
                    <artifactId>*</artifactId>
                </exclusion>
            </exclusions>
74
        </dependency>
75

76 77 78 79 80
        <dependency>
            <groupId>org.apache.hive</groupId>
            <artifactId>hive-jdbc</artifactId>
            <version>${hive.version}</version>
            <scope>test</scope>
81 82 83
            <exclusions>
                <exclusion>
                    <groupId>javax.servlet</groupId>
84 85 86 87 88 89 90 91 92
                    <artifactId>*</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>javax.ws.rs</groupId>
                    <artifactId>*</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>org.eclipse.jetty</groupId>
                    <artifactId>*</artifactId>
93 94
                </exclusion>
            </exclusions>
95 96
        </dependency>

97
        <dependency>
98 99 100 101
            <groupId>org.apache.hive</groupId>
            <artifactId>hive-cli</artifactId>
            <version>${hive.version}</version>
            <scope>test</scope>
102 103 104 105 106 107 108 109 110 111 112
            <exclusions>
                <exclusion>
                    <groupId>javax.servlet</groupId>
                    <artifactId>*</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>org.eclipse.jetty.aggregate</groupId>
                    <artifactId>*</artifactId>
                </exclusion>
            </exclusions>

113 114
        </dependency>

115
        <dependency>
116
            <groupId>org.apache.atlas</groupId>
117
            <artifactId>atlas-client-v1</artifactId>
118 119
        </dependency>

120 121 122 123 124 125
        <dependency>
            <groupId>org.apache.atlas</groupId>
            <artifactId>atlas-client-v2</artifactId>
            <version>${project.version}</version>
        </dependency>

126 127 128 129 130
        <dependency>
            <groupId>org.apache.atlas</groupId>
            <artifactId>atlas-notification</artifactId>
        </dependency>

131 132 133 134 135
        <dependency>
            <groupId>org.apache.atlas</groupId>
            <artifactId>hdfs-model</artifactId>
        </dependency>

136
        <!-- to bring up atlas server for integration tests -->
137
        <dependency>
138
            <groupId>org.apache.atlas</groupId>
139 140 141
            <artifactId>atlas-webapp</artifactId>
            <type>war</type>
            <scope>test</scope>
142 143
        </dependency>

144 145 146
        <dependency>
            <groupId>org.apache.hadoop</groupId>
            <artifactId>hadoop-client</artifactId>
147 148 149 150 151
            <exclusions>
                <exclusion>
                    <groupId>javax.servlet</groupId>
                    <artifactId>servlet-api</artifactId>
                </exclusion>
152 153 154 155
                <exclusion>
                    <groupId>org.eclipse.jetty</groupId>
                    <artifactId>*</artifactId>
                </exclusion>
156
            </exclusions>
157 158 159 160 161
        </dependency>

        <dependency>
            <groupId>org.apache.hadoop</groupId>
            <artifactId>hadoop-annotations</artifactId>
162 163
        </dependency>

164 165 166 167 168 169
        <dependency>
            <groupId>com.fasterxml.jackson.core</groupId>
            <artifactId>jackson-databind</artifactId>
            <version>${jackson.version}</version>
        </dependency>

170
        <dependency>
171 172
            <groupId>org.testng</groupId>
            <artifactId>testng</artifactId>
173
        </dependency>
174

175 176 177 178 179
        <dependency>
            <groupId>org.mockito</groupId>
            <artifactId>mockito-all</artifactId>
        </dependency>

180 181 182
        <dependency>
            <groupId>org.eclipse.jetty</groupId>
            <artifactId>jetty-server</artifactId>
183
            <scope>test</scope>
184
        </dependency>
185

186 187 188 189 190 191 192
        <dependency>
            <groupId>org.apache.atlas</groupId>
            <artifactId>atlas-graphdb-impls</artifactId>
            <type>pom</type>
            <scope>test</scope>
        </dependency>

193 194
        <dependency>
            <groupId>org.apache.atlas</groupId>
195
            <artifactId>atlas-intg</artifactId>
196 197 198
            <classifier>tests</classifier>
            <scope>test</scope>
        </dependency>
199 200 201 202 203 204 205

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

208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233
    <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>
234 235 236 237 238
                                        <artifactItem>
                                            <groupId>${project.groupId}</groupId>
                                            <artifactId>atlas-client-common</artifactId>
                                            <version>${project.version}</version>
                                        </artifactItem>
239 240
                                        <artifactItem>
                                            <groupId>${project.groupId}</groupId>
241
                                            <artifactId>atlas-client-v1</artifactId>
242 243
                                            <version>${project.version}</version>
                                        </artifactItem>
244 245 246 247 248
                                        <artifactItem>
                                            <groupId>${project.groupId}</groupId>
                                            <artifactId>atlas-client-v2</artifactId>
                                            <version>${project.version}</version>
                                        </artifactItem>
249 250 251
                                        <artifactItem>
                                            <groupId>${project.groupId}</groupId>
                                            <artifactId>atlas-intg</artifactId>
252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270
                                            <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>
271
                                            <artifactId>kafka_${kafka.scala.binary.version}</artifactId>
272 273 274 275 276 277 278
                                            <version>${kafka.version}</version>
                                        </artifactItem>
                                        <artifactItem>
                                            <groupId>org.apache.kafka</groupId>
                                            <artifactId>kafka-clients</artifactId>
                                            <version>${kafka.version}</version>
                                        </artifactItem>
279 280 281 282 283
                                        <artifactItem>
                                            <groupId>com.sun.jersey.contribs</groupId>
                                            <artifactId>jersey-multipart</artifactId>
                                            <version>${jersey.version}</version>
                                        </artifactItem>
284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303
                                        <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>
304 305 306 307 308
                                        <artifactItem>
                                            <groupId>org.apache.hbase</groupId>
                                            <artifactId>hbase-common</artifactId>
                                            <version>${hbase.version}</version>
                                        </artifactItem>
309 310 311 312 313
                                        <artifactItem>
                                            <groupId>org.apache.hbase</groupId>
                                            <artifactId>hbase-server</artifactId>
                                            <version>${hbase.version}</version>
                                        </artifactItem>
314 315 316 317 318 319 320 321 322 323
                                        <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>
324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357
                                    </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>
358 359
    <build>
        <plugins>
360
            <plugin>
361 362
                <groupId>org.eclipse.jetty</groupId>
                <artifactId>jetty-maven-plugin</artifactId>
363
                <configuration>
364 365
                    <skip>${skipTests}</skip>
                    <!--only skip int tests -->
366
                    <httpConnector>
367
                        <port>31000</port>
368 369 370 371
                        <idleTimeout>60000</idleTimeout>
                    </httpConnector>
                    <war>../../webapp/target/atlas-webapp-${project.version}.war</war>
                    <daemon>true</daemon>
372
                    <webAppSourceDirectory>../../webapp/src/test/webapp</webAppSourceDirectory>
373 374
                    <webApp>
                        <contextPath>/</contextPath>
375
                        <descriptor>${project.basedir}/../../webapp/src/test/webapp/WEB-INF/web.xml</descriptor>
376 377
                    </webApp>
                    <useTestScope>true</useTestScope>
378
                    <systemProperties>
379
                        <force>true</force>
380
                        <systemProperty>
381 382
                            <name>atlas.home</name>
                            <value>${project.build.directory}</value>
383 384
                        </systemProperty>
                        <systemProperty>
385 386
                            <key>atlas.conf</key>
                            <value>${project.build.directory}/test-classes</value>
387 388
                        </systemProperty>
                        <systemProperty>
389 390
                            <name>atlas.data</name>
                            <value>${project.build.directory}/data</value>
391 392
                        </systemProperty>
                        <systemProperty>
393 394
                            <name>atlas.log.dir</name>
                            <value>${project.build.directory}/logs</value>
395 396
                        </systemProperty>
                        <systemProperty>
397 398
                            <name>atlas.log.file</name>
                            <value>application.log</value>
399
                        </systemProperty>
400
                        <systemProperty>
401
                            <name>log4j.configuration</name>
402
                            <value>file:///${project.build.directory}/../../../distro/src/conf/atlas-log4j.xml</value>
403
                        </systemProperty>
404
                        <systemProperty>
405 406
                            <name>atlas.graphdb.backend</name>
                            <value>${graphdb.backend.impl}</value>
407
                        </systemProperty>
408
                        <systemProperty>
409
                            <key>embedded.solr.directory</key>
410
                            <value>${project.build.directory}</value>
411
                        </systemProperty>
412
                    </systemProperties>
413
                    <stopKey>atlas-stop</stopKey>
414
                    <stopPort>31001</stopPort>
415
                    <stopWait>${jetty-maven-plugin.stopWait}</stopWait>
416 417 418
                    <daemon>${debug.jetty.daemon}</daemon>
                    <testClassesDirectory>${project.build.testOutputDirectory}</testClassesDirectory>
                    <useTestClasspath>true</useTestClasspath>
419
                </configuration>
420 421 422 423 424 425 426 427 428 429 430 431
                <dependencies>
                    <dependency>
                        <groupId>org.apache.logging.log4j</groupId>
                        <artifactId>log4j-core</artifactId>
                        <version>2.8</version>
                    </dependency>
                    <dependency>
                        <groupId>org.apache.logging.log4j</groupId>
                        <artifactId>log4j-api</artifactId>
                        <version>2.8</version>
                    </dependency>
                </dependencies>
432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447
                <executions>
                    <execution>
                        <id>start-jetty</id>
                        <phase>pre-integration-test</phase>
                        <goals>
                            <goal>deploy-war</goal>
                        </goals>
                    </execution>
                    <execution>
                        <id>stop-jetty</id>
                        <phase>post-integration-test</phase>
                        <goals>
                            <goal>stop</goal>
                        </goals>
                    </execution>
                </executions>
448
            </plugin>
Shwetha GS committed
449 450 451 452 453 454 455 456

            <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>
457 458 459 460 461 462
                        <version>${doxia.version}</version>
                    </dependency>
                    <dependency>
                        <groupId>org.apache.maven.doxia</groupId>
                        <artifactId>doxia-core</artifactId>
                        <version>${doxia.version}</version>
Shwetha GS committed
463 464 465 466 467 468 469 470 471 472 473 474 475 476 477
                    </dependency>
                </dependencies>
                <executions>
                    <execution>
                        <goals>
                            <goal>site</goal>
                        </goals>
                        <phase>prepare-package</phase>
                    </execution>
                </executions>
                <configuration>
                    <generateProjectInfo>false</generateProjectInfo>
                    <generateReports>false</generateReports>
                </configuration>
            </plugin>
478 479 480 481 482 483 484 485 486

            <plugin>
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>exec-maven-plugin</artifactId>
                <version>1.2.1</version>
                <inherited>false</inherited>
                <executions>
                </executions>
            </plugin>
487 488 489 490 491 492 493 494 495 496 497 498

            <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>
499
                            <outputDirectory>${basedir}/target/models</outputDirectory>
500 501
                            <resources>
                                <resource>
502
                                    <directory>${basedir}/../models</directory>
503 504 505 506
                                    <includes>
                                        <include>0000-Area0/0010-base_model.json</include>
                                        <include>1000-Hadoop/**</include>
                                    </includes>
507 508 509 510
                                </resource>
                            </resources>
                        </configuration>
                    </execution>
511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527
                    <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>
528

529 530
        </plugins>
    </build>
531
</project>