pom.xml 15.1 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
        <version>0.7-incubating-SNAPSHOT</version>
28 29 30
        <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.1</hive.version>
37
        <calcite.version>0.9.2-incubating</calcite.version>
38
    </properties>
39

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

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

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

64
        </dependency>
65

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

73
        <dependency>
74 75 76 77
            <groupId>org.apache.hive</groupId>
            <artifactId>hive-cli</artifactId>
            <version>${hive.version}</version>
            <scope>test</scope>
78 79 80 81 82 83 84 85 86 87 88
            <exclusions>
                <exclusion>
                    <groupId>javax.servlet</groupId>
                    <artifactId>*</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>org.eclipse.jetty.aggregate</groupId>
                    <artifactId>*</artifactId>
                </exclusion>
            </exclusions>

89 90
        </dependency>

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

96
        <dependency>
97 98
            <groupId>org.apache.atlas</groupId>
            <artifactId>atlas-client</artifactId>
99 100
        </dependency>

101 102 103 104 105
        <dependency>
            <groupId>org.apache.atlas</groupId>
            <artifactId>atlas-notification</artifactId>
        </dependency>

106
        <!-- to bring up atlas server for integration tests -->
107
        <dependency>
108
            <groupId>org.apache.atlas</groupId>
109 110 111
            <artifactId>atlas-webapp</artifactId>
            <type>war</type>
            <scope>test</scope>
112 113
        </dependency>

114 115 116
        <dependency>
            <groupId>org.apache.hadoop</groupId>
            <artifactId>hadoop-client</artifactId>
117 118 119 120 121
        </dependency>

        <dependency>
            <groupId>org.apache.hadoop</groupId>
            <artifactId>hadoop-annotations</artifactId>
122 123
        </dependency>

124
        <dependency>
125 126
            <groupId>org.testng</groupId>
            <artifactId>testng</artifactId>
127
        </dependency>
128

129 130 131
        <dependency>
            <groupId>org.eclipse.jetty</groupId>
            <artifactId>jetty-server</artifactId>
132
            <scope>test</scope>
133
        </dependency>
134 135
    </dependencies>

136 137 138 139
    <build>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
140 141 142
                <artifactId>maven-dependency-plugin</artifactId>
                <executions>
                    <execution>
143
                        <id>copy-bridge-dependencies</id>
144 145 146 147 148
                        <phase>package</phase>
                        <goals>
                            <goal>copy-dependencies</goal>
                        </goals>
                        <configuration>
149 150 151 152 153 154 155 156
                            <outputDirectory>${project.build.directory}/dependency/bridge/hive</outputDirectory>
                            <includeScope>compile</includeScope>
                            <overWriteReleases>false</overWriteReleases>
                            <overWriteSnapshots>false</overWriteSnapshots>
                            <overWriteIfNewer>true</overWriteIfNewer>
                        </configuration>
                    </execution>
                    <execution>
157
                        <id>copy-hook</id>
158 159
                        <phase>package</phase>
                        <goals>
160
                            <goal>copy</goal>
161 162
                        </goals>
                        <configuration>
163 164 165 166 167 168 169 170 171
                            <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>
172 173
                        </configuration>
                    </execution>
174
                    <execution>
175
                        <id>copy-hook-dependencies</id>
176 177 178 179 180
                        <phase>package</phase>
                        <goals>
                            <goal>copy</goal>
                        </goals>
                        <configuration>
181 182 183 184
                            <outputDirectory>${project.build.directory}/dependency/hook/hive</outputDirectory>
                            <overWriteReleases>false</overWriteReleases>
                            <overWriteSnapshots>false</overWriteSnapshots>
                            <overWriteIfNewer>true</overWriteIfNewer>
185 186 187 188 189
                            <artifactItems>
                                <artifactItem>
                                    <groupId>${project.groupId}</groupId>
                                    <artifactId>${project.artifactId}</artifactId>
                                    <version>${project.version}</version>
190 191 192 193
                                </artifactItem>
                                <artifactItem>
                                    <groupId>org.json4s</groupId>
                                    <artifactId>json4s-native_2.10</artifactId>
194
                                    <version>${json.version}</version>
195 196 197 198
                                </artifactItem>
                                <artifactItem>
                                    <groupId>org.json4s</groupId>
                                    <artifactId>json4s-core_2.10</artifactId>
199
                                    <version>${json.version}</version>
200 201 202 203
                                </artifactItem>
                                <artifactItem>
                                    <groupId>org.json4s</groupId>
                                    <artifactId>json4s-ast_2.10</artifactId>
204
                                    <version>${json.version}</version>
205 206 207
                                </artifactItem>
                                <artifactItem>
                                    <groupId>${project.groupId}</groupId>
208
                                    <artifactId>atlas-client</artifactId>
209
                                    <version>${project.version}</version>
210 211 212
                                </artifactItem>
                                <artifactItem>
                                    <groupId>${project.groupId}</groupId>
213
                                    <artifactId>atlas-typesystem</artifactId>
214 215
                                    <version>${project.version}</version>
                                </artifactItem>
216 217 218 219 220 221 222 223 224 225
                                <artifactItem>
                                    <groupId>${project.groupId}</groupId>
                                    <artifactId>atlas-notification</artifactId>
                                    <version>${project.version}</version>
                                </artifactItem>
                                <artifactItem>
                                    <groupId>${project.groupId}</groupId>
                                    <artifactId>atlas-common</artifactId>
                                    <version>${project.version}</version>
                                </artifactItem>
226 227 228
                                <artifactItem>
                                    <groupId>org.scala-lang</groupId>
                                    <artifactId>scala-compiler</artifactId>
229
                                    <version>${scala.version}</version>
230 231 232 233
                                </artifactItem>
                                <artifactItem>
                                    <groupId>org.scala-lang</groupId>
                                    <artifactId>scala-reflect</artifactId>
234
                                    <version>${scala.version}</version>
235 236 237 238
                                </artifactItem>
                                <artifactItem>
                                    <groupId>org.scala-lang</groupId>
                                    <artifactId>scala-library</artifactId>
239
                                    <version>${scala.version}</version>
240 241 242 243
                                </artifactItem>
                                <artifactItem>
                                    <groupId>org.scala-lang</groupId>
                                    <artifactId>scalap</artifactId>
244
                                    <version>${scala.version}</version>
245
                                </artifactItem>
246 247 248 249 250 251 252 253 254 255 256 257 258 259 260
                                <artifactItem>
                                    <groupId>com.google.inject.extensions</groupId>
                                    <artifactId>guice-multibindings</artifactId>
                                    <version>${guice.version}</version>
                                </artifactItem>
                                <artifactItem>
                                    <groupId>org.apache.kafka</groupId>
                                    <artifactId>kafka_${scala.binary.version}</artifactId>
                                    <version>${kafka.version}</version>
                                </artifactItem>
                                <artifactItem>
                                    <groupId>org.apache.kafka</groupId>
                                    <artifactId>kafka-clients</artifactId>
                                    <version>${kafka.version}</version>
                                </artifactItem>
261 262 263 264 265
                            </artifactItems>
                        </configuration>
                    </execution>
                </executions>
            </plugin>
266 267

            <plugin>
268 269
                <groupId>org.eclipse.jetty</groupId>
                <artifactId>jetty-maven-plugin</artifactId>
270
                <configuration>
271 272
                    <skip>${skipTests}</skip>
                    <!--only skip int tests -->
273
                    <httpConnector>
274
                        <port>31000</port>
275 276 277 278 279 280 281 282 283
                        <idleTimeout>60000</idleTimeout>
                    </httpConnector>
                    <war>../../webapp/target/atlas-webapp-${project.version}.war</war>
                    <daemon>true</daemon>
                    <webApp>
                        <contextPath>/</contextPath>
                        <descriptor>../../webapp/src/test/webapp/WEB-INF/web.xml</descriptor>
                    </webApp>
                    <useTestScope>true</useTestScope>
284
                    <systemProperties>
285 286 287 288
                        <systemProperty>
                            <name>log4j.configuration</name>
                            <value>atlas-log4j.xml</value>
                        </systemProperty>
289
                        <systemProperty>
290
                            <name>atlas.log.dir</name>
291 292
                            <value>${project.build.directory}/logs</value>
                        </systemProperty>
293 294 295 296
                        <systemProperty>
                            <name>atlas.data</name>
                            <value>${project.build.directory}/data</value>
                        </systemProperty>
297
                    </systemProperties>
298
                    <stopKey>atlas-stop</stopKey>
299
                    <stopPort>31001</stopPort>
300
                </configuration>
301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319
                <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>
320
            </plugin>
Shwetha GS committed
321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344

            <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>
                </configuration>
            </plugin>
345 346
        </plugins>
    </build>
347
</project>