pom.xml 19.3 KB
Newer Older
1 2
<?xml version="1.0" encoding="UTF-8"?>

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="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/maven-v4_0_0.xsd">
22

23 24
    <modelVersion>4.0.0</modelVersion>
    <parent>
25 26
        <groupId>org.apache.atlas</groupId>
        <artifactId>apache-atlas</artifactId>
27
        <version>0.8-incubating-SNAPSHOT</version>
28
    </parent>
29 30 31
    <artifactId>atlas-webapp</artifactId>
    <description>Apache Atlas Web Application</description>
    <name>Apache Atlas Web Application</name>
32
    <packaging>war</packaging>
33

Shwetha GS committed
34
    <properties>
35
        <projectBaseDir>${project.basedir}/..</projectBaseDir>
Shwetha GS committed
36
        <debug.jetty.daemon>true</debug.jetty.daemon>
37
        <packages.to.exclude />
Shwetha GS committed
38
    </properties>
39

40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55
    <profiles>
        <profile>
            <id>jdk7</id>
            <activation>
                <jdk>[1.7,1.8)</jdk>
            </activation>
            <build>
                <plugins>
                    <plugin>
                        <groupId>org.codehaus.enunciate</groupId>
                        <artifactId>maven-enunciate-plugin</artifactId>
                        <executions>
                            <execution>
                                <goals>
                                    <goal>docs</goal>
                                </goals>
56
                                <phase>site</phase>
57 58 59 60 61 62 63 64 65 66 67
                            </execution>
                        </executions>
                        <configuration>
                            <!-- the directory where to put the docs -->
                            <docsDir>${project.build.directory}/apidocs</docsDir>
                            <configFile>${basedir}/../src/build/enunciate.xml</configFile>
                        </configuration>
                    </plugin>
                </plugins>
            </build>
        </profile>
68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87
        <profile>
            <!-- default profile is for external HBase and Solr - hence not packaging those jars -->
            <id>dist</id>
            <activation>
                <activeByDefault>false</activeByDefault>
            </activation>
            <properties>
                <packages.to.exclude>WEB-INF/lib/titan-berkeleyje-${titan.version}.jar,WEB-INF/lib/je-*.jar,WEB-INF/lib/titan-es-${titan.version}.jar,WEB-INF/lib/elasticsearch-*.jar</packages.to.exclude>
            </properties>
        </profile>

        <profile>
            <id>berkeley-elasticsearch</id>
            <activation>
                <activeByDefault>false</activeByDefault>
            </activation>
            <properties>
                <packages.to.exclude>WEB-INF/lib/je-*.jar</packages.to.exclude>
            </properties>
        </profile>
88 89
    </profiles>

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

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

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

106
        <dependency>
107 108
            <groupId>org.apache.atlas</groupId>
            <artifactId>atlas-client</artifactId>
109 110
        </dependency>

111 112 113 114 115 116
	    <dependency>
            <groupId>org.apache.atlas</groupId>
            <artifactId>atlas-authorization</artifactId>
	    <version>${project.version}</version>	
        </dependency>

117 118 119 120 121
        <dependency>
            <groupId>org.apache.atlas</groupId>
            <artifactId>atlas-notification</artifactId>
        </dependency>

Jon Maron committed
122 123 124 125 126
        <dependency>
            <groupId>org.apache.hadoop</groupId>
            <artifactId>hadoop-common</artifactId>
        </dependency>

127 128 129 130 131 132 133 134 135
        <dependency>
            <groupId>org.apache.hadoop</groupId>
            <artifactId>hadoop-minikdc</artifactId>
        </dependency>

        <dependency>
            <groupId>org.apache.hadoop</groupId>
            <artifactId>hadoop-hdfs</artifactId>
        </dependency>
136 137 138 139 140
   
        <dependency>
            <groupId>org.apache.atlas</groupId>
            <artifactId>atlas-catalog</artifactId>
        </dependency>
141 142 143 144 145 146 147

        <!-- supports simple auth handler -->
        <dependency>
            <groupId>org.apache.httpcomponents</groupId>
            <artifactId>httpclient</artifactId>
        </dependency>

148 149 150 151
        <dependency>
            <groupId>joda-time</groupId>
            <artifactId>joda-time</artifactId>
        </dependency>
152

153 154 155 156
        <dependency>
            <groupId>commons-configuration</groupId>
            <artifactId>commons-configuration</artifactId>
        </dependency>
157

158 159 160 161
        <dependency>
            <groupId>commons-cli</groupId>
            <artifactId>commons-cli</artifactId>
        </dependency>
162

163 164 165 166 167
        <dependency>
            <groupId>org.apache.commons</groupId>
            <artifactId>commons-lang3</artifactId>
        </dependency>

168 169 170 171
        <dependency>
            <groupId>com.tinkerpop.blueprints</groupId>
            <artifactId>blueprints-core</artifactId>
        </dependency>
172

173 174 175 176
        <dependency>
            <groupId>com.thinkaurelius.titan</groupId>
            <artifactId>titan-core</artifactId>
        </dependency>
177

178 179 180 181
        <dependency>
            <groupId>com.googlecode.json-simple</groupId>
            <artifactId>json-simple</artifactId>
        </dependency>
182

183 184 185 186
        <dependency>
            <groupId>javax.servlet.jsp</groupId>
            <artifactId>jsp-api</artifactId>
        </dependency>
187

188
        <dependency>
189 190
            <groupId>org.eclipse.jetty</groupId>
            <artifactId>jetty-server</artifactId>
191
        </dependency>
192

193
        <dependency>
194 195
            <groupId>org.eclipse.jetty</groupId>
            <artifactId>jetty-webapp</artifactId>
196
        </dependency>
197

198 199 200 201
        <dependency>
            <groupId>com.sun.jersey</groupId>
            <artifactId>jersey-core</artifactId>
        </dependency>
202

203 204 205 206
        <dependency>
            <groupId>com.sun.jersey</groupId>
            <artifactId>jersey-server</artifactId>
        </dependency>
207

208 209 210 211
        <dependency>
            <groupId>com.sun.jersey</groupId>
            <artifactId>jersey-client</artifactId>
        </dependency>
212

213 214 215 216
        <dependency>
            <groupId>com.sun.jersey</groupId>
            <artifactId>jersey-json</artifactId>
        </dependency>
217

218 219 220 221
        <dependency>
            <groupId>org.mockito</groupId>
            <artifactId>mockito-all</artifactId>
        </dependency>
222

223
        <dependency>
224 225
            <groupId>org.testng</groupId>
            <artifactId>testng</artifactId>
226
        </dependency>
227

228 229 230 231
        <dependency>
            <groupId>com.google.inject.extensions</groupId>
            <artifactId>guice-servlet</artifactId>
        </dependency>
232

233 234 235 236
        <dependency>
            <groupId>com.google.code.gson</groupId>
            <artifactId>gson</artifactId>
        </dependency>
237

238 239 240 241
        <dependency>
            <groupId>com.sun.jersey.contribs</groupId>
            <artifactId>jersey-guice</artifactId>
        </dependency>
Shwetha GS committed
242 243

        <dependency>
244 245 246 247
            <groupId>org.eclipse.jetty</groupId>
            <artifactId>jetty-jsp</artifactId>
        </dependency>

248 249 250 251 252
        <dependency>
            <groupId>org.glassfish</groupId>
            <artifactId>javax.el</artifactId>
        </dependency>

253 254 255
        <dependency>
            <groupId>org.codehaus.jackson</groupId>
            <artifactId>jackson-core-asl</artifactId>
Shwetha GS committed
256
        </dependency>
257 258 259 260 261

        <dependency>
            <groupId>commons-io</groupId>
            <artifactId>commons-io</artifactId>
        </dependency>
262

263 264 265 266 267
        <dependency>
            <groupId>com.google.inject</groupId>
            <artifactId>guice</artifactId>
        </dependency>

268 269 270 271 272 273 274 275 276 277 278 279 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 305 306 307 308 309 310 311 312 313 314 315 316 317 318
        <dependency>
                <groupId>org.springframework</groupId>
                <artifactId>spring-core</artifactId>
                <version>${spring.version}</version>
        </dependency>

        <dependency>
                <groupId>org.springframework</groupId>
                <artifactId>spring-web</artifactId>
                <version>${spring.version}</version>
        </dependency>

        <dependency>
                <groupId>org.springframework</groupId>
                <artifactId>spring-webmvc</artifactId>
                <version>${spring.version}</version>
        </dependency>

        <dependency>
                <groupId>org.springframework.security</groupId>
                <artifactId>spring-security-core</artifactId>
                <version>${spring.security.version}</version>
        </dependency>

        <dependency>
                <groupId>org.springframework.security</groupId>
                <artifactId>spring-security-web</artifactId>
                <version>${spring.security.version}</version>
        </dependency>

        <dependency>
                <groupId>org.springframework.security</groupId>
                <artifactId>spring-security-config</artifactId>
                <version>${spring.security.version}</version>
        </dependency>

        <dependency>
                <groupId>org.springframework.security</groupId>
                <artifactId>spring-security-ldap</artifactId>
                <version>${spring.security.version}</version>
        </dependency>
        <dependency>
                <groupId>javax.servlet</groupId>
                <artifactId>javax.servlet-api</artifactId>
                <version>${javax.servlet.version}</version>
        </dependency>
        <dependency>
                <groupId>org.springframework.ldap</groupId>
                <artifactId>spring-ldap-core</artifactId>
                <version>${spring-ldap-core.version}</version>
        </dependency>
319
        <dependency>
320 321 322
            <groupId>org.apache.atlas</groupId>
            <artifactId>atlas-dashboardv2</artifactId>
            <type>war</type>
323
        </dependency>
324 325 326 327 328 329
        <dependency>
            <groupId>org.easymock</groupId>
            <artifactId>easymock</artifactId>
            <version>3.4</version>
            <scope>test</scope>
        </dependency>
330 331 332 333 334 335 336

        <dependency>
            <groupId>org.apache.atlas</groupId>
            <artifactId>atlas-typesystem</artifactId>
            <classifier>tests</classifier>
            <scope>test</scope>
        </dependency>
337
    </dependencies>
338

339
    <build>
340 341 342 343 344
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-war-plugin</artifactId>
                <configuration>
345
                    <archiveClasses>true</archiveClasses>
346
                    <attachClasses>true</attachClasses>
347
                    <overlays>
348
                        <overlay>
349 350
                            <groupId>org.apache.atlas</groupId>
                            <artifactId>atlas-dashboardv2</artifactId>
351
                        </overlay>
352 353 354
                        <overlay>
                             <!-- empty groupId/artifactId represents the current build -->
                        </overlay>
355
                    </overlays>
356 357 358 359 360
                    <archive>
                        <manifest>
                            <addClasspath>true</addClasspath>
                        </manifest>
                    </archive>
361 362 363
                    <packagingExcludes>
                        ${packages.to.exclude}
                    </packagingExcludes>
364 365
                </configuration>
            </plugin>
366

367 368 369 370 371 372 373 374 375 376 377 378
            <plugin>
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>keytool-maven-plugin</artifactId>
                <executions>
                    <execution>
                        <id>clean</id>
                        <phase>generate-resources</phase>
                        <goals>
                            <goal>clean</goal>
                        </goals>
                    </execution>
                    <execution>
Jon Maron committed
379
                        <id>generateKeyPair</id>
380 381 382 383 384 385 386
                        <phase>generate-resources</phase>
                        <goals>
                            <goal>generateKeyPair</goal>
                        </goals>
                    </execution>
                </executions>
                <configuration>
387 388
                    <dname>cn=atlas.incubator.apache.org</dname>
                    <keystore>${project.build.directory}/atlas.keystore</keystore>
Jon Maron committed
389 390
                    <keypass>keypass</keypass>
                    <storepass>keypass</storepass>
391
                    <alias>atlas</alias>
392 393 394 395 396
                    <keyalg>RSA</keyalg>
                    <validity>100000</validity>
                </configuration>
            </plugin>

397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435
            <!-- Running unit tests in pre-integration-test phase after war is built -->
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-surefire-plugin</artifactId>
                <configuration>
                    <systemProperties>
                        <user.dir>${project.basedir}</user.dir>
                        <projectBaseDir>${project.basedir}/..</projectBaseDir>
                    </systemProperties>
                    <!--<skipTests>true</skipTests>-->
                    <forkMode>always</forkMode>
                    <redirectTestOutputToFile>true</redirectTestOutputToFile>
                    <argLine>-Djava.awt.headless=true -Dproject.version=${project.version}
                        -Dhadoop.tmp.dir=${project.build.directory}/tmp-hadoop-${user.name}
                        -Xmx1024m -XX:MaxPermSize=512m
                    </argLine>
                    <excludes>
                        <exclude>**/*Base*</exclude>
                    </excludes>
                </configuration>
                <dependencies>
                    <dependency>
                        <groupId>org.apache.maven.surefire</groupId>
                        <artifactId>surefire-testng</artifactId>
                        <version>2.18.1</version>
                    </dependency>
                </dependencies>
                <executions>
                    <execution>
                        <id>default-test</id>
                        <phase>pre-integration-test</phase>
                        <goals>
                            <goal>test</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>


436
            <plugin>
437 438
                <groupId>org.eclipse.jetty</groupId>
                <artifactId>jetty-maven-plugin</artifactId>
439
                <configuration>
440
                    <skip>${skipTests}</skip>
441
                    <!--only skip int tests -->
442
                    <httpConnector>
443
                        <port>31000</port>
444 445 446 447
                        <idleTimeout>60000</idleTimeout>
                    </httpConnector>
                    <war>${project.build.directory}/atlas-webapp-${project.version}.war</war>
                    <daemon>true</daemon>
448
                    <webAppSourceDirectory>webapp/src/test/webapp</webAppSourceDirectory>
449 450
                    <webApp>
                        <contextPath>/</contextPath>
451
                        <descriptor>${project.basedir}/src/test/webapp/WEB-INF/web.xml</descriptor>
452
                        <!-- ${project.build.directory}/atlas-webapp-${project.version} -->
453
                        <extraClasspath>${project.build.directory}/../../webapp/target/test-classes/</extraClasspath>
454 455
                    </webApp>
                    <useTestScope>true</useTestScope>
456
                    <systemProperties>
457 458
                        <systemProperty>
                            <name>log4j.configuration</name>
459 460 461 462 463
                            <value>file://${project.build.directory}/../../distro/src/conf/atlas-log4j.xml</value>
                        </systemProperty>
                        <systemProperty>
                            <name>atlas.log.file</name>
                            <value>application.log</value>
464
                        </systemProperty>
465
                        <systemProperty>
466
                            <name>atlas.log.dir</name>
467 468
                            <value>${project.build.directory}/logs</value>
                        </systemProperty>
469 470
                        <systemProperty>
                            <name>keystore.file</name>
471
                            <value>${project.build.directory}/../../webapp/target/atlas.keystore
472 473 474 475
                            </value>
                        </systemProperty>
                        <systemProperty>
                            <name>truststore.file</name>
Shwetha GS committed
476
                            <value>${project.build.directory}/../../webapp/target/atlas.keystore</value>
477
                        </systemProperty>
478
                        <systemProperty>
479
                            <name>atlas.home</name>
480 481
                            <value>${project.build.directory}</value>
                        </systemProperty>
482 483 484 485
                        <systemProperty>
                            <name>atlas.data</name>
                            <value>${project.build.directory}/data</value>
                        </systemProperty>
486 487 488 489
                        <systemProperty>
                            <key>atlas.conf</key>
                            <value>${project.build.directory}/../../typesystem/target/test-classes</value>
                        </systemProperty>
490
                    </systemProperties>
491
                    <stopKey>atlas-stop</stopKey>
492
                    <stopPort>31001</stopPort>
493
                    <stopWait>${jetty-maven-plugin.stopWait}</stopWait>
Shwetha GS committed
494
                    <daemon>${debug.jetty.daemon}</daemon>
495 496
                    <testClassesDirectory>${project.build.directory}/../../webapp/target/test-classes/</testClassesDirectory>
                    <useTestClasspath>true</useTestClasspath>
497 498 499 500 501 502
                </configuration>
                <executions>
                    <execution>
                        <id>start-jetty</id>
                        <phase>pre-integration-test</phase>
                        <goals>
503
                            <goal>deploy-war</goal>
504 505 506 507 508 509 510 511 512 513 514
                        </goals>
                    </execution>
                    <execution>
                        <id>stop-jetty</id>
                        <phase>post-integration-test</phase>
                        <goals>
                            <goal>stop</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
515 516 517 518
            <plugin>
                <groupId>net.alchim31.maven</groupId>
                <artifactId>scala-maven-plugin</artifactId>
            </plugin>
519
        </plugins>
520
    </build>
521
</project>