pom.xml 29.8 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 https://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>3.0.0-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
        <log4j.configuration.url>file:///${project.build.directory}/../../distro/src/conf/atlas-log4j.xml</log4j.configuration.url>
Shwetha GS committed
38
    </properties>
39

40
    <profiles>
41 42 43 44 45 46
        <profile>
            <id>dist</id>
            <activation>
                <activeByDefault>false</activeByDefault>
            </activation>
            <properties>
47
                <packages.to.exclude>${distro.exclude.packages}</packages.to.exclude>
48 49 50 51 52 53 54 55 56
            </properties>
        </profile>

        <profile>
            <id>berkeley-elasticsearch</id>
            <activation>
                <activeByDefault>false</activeByDefault>
            </activation>
            <properties>
57
                <packages.to.exclude>WEB-INF/lib/je-*.jar,WEB-INF/lib/dom4j-*.jar</packages.to.exclude>
58 59
            </properties>
        </profile>
60

61 62 63 64 65 66 67 68 69 70
        <profile>
            <id>berkeley-solr</id>
            <activation>
                <activeByDefault>false</activeByDefault>
            </activation>
            <properties>
                <packages.to.exclude>WEB-INF/lib/dom4j-*.jar</packages.to.exclude>
            </properties>
        </profile>

71 72 73 74 75 76 77 78
        <profile>
            <id>Windows</id>
            <activation>
                <os>
                    <family>windows</family>
                </os>
            </activation>
            <properties>
79
                <log4j.configuration.url>file:/${project.build.directory}/../../distro/src/conf/atlas-log4j.xml</log4j.configuration.url>
80
            </properties>
81
        </profile>
82

83 84
    </profiles>

85
    <dependencies>
86 87 88
        <dependency>
            <groupId>org.apache.atlas</groupId>
            <artifactId>atlas-graphdb-impls</artifactId>
89 90 91 92 93 94
            <exclusions>
                <exclusion>
                    <groupId>io.netty</groupId>
                    <artifactId>netty-handler</artifactId>
                </exclusion>
            </exclusions>
95 96
            <type>pom</type>
        </dependency>
97

98 99 100
        <dependency>
            <groupId>org.apache.atlas</groupId>
            <artifactId>atlas-common</artifactId>
101 102 103 104 105 106
            <exclusions>
                <exclusion>
                    <groupId>com.fasterxml.jackson.core</groupId>
                    <artifactId>*</artifactId>
                </exclusion>
            </exclusions>
107 108
        </dependency>

109
        <dependency>
110 111
            <groupId>org.apache.atlas</groupId>
            <artifactId>atlas-repository</artifactId>
112 113 114 115 116 117
            <exclusions>
                <exclusion>
                    <groupId>io.netty</groupId>
                    <artifactId>netty-handler</artifactId>
                </exclusion>
            </exclusions>
118
        </dependency>
119

120
        <dependency>
121
            <groupId>org.apache.atlas</groupId>
122 123 124 125 126 127
            <artifactId>atlas-client-v1</artifactId>
        </dependency>

        <dependency>
            <groupId>org.apache.atlas</groupId>
            <artifactId>atlas-client-v2</artifactId>
128 129
        </dependency>

130
        <dependency>
131 132
            <groupId>org.apache.atlas</groupId>
            <artifactId>atlas-authorization</artifactId>
133
            <version>${project.version}</version>
134 135
        </dependency>

136 137 138 139
        <dependency>
            <groupId>org.apache.atlas</groupId>
            <artifactId>atlas-notification</artifactId>
        </dependency>
140

141 142 143 144
        <dependency>
            <groupId>org.apache.atlas</groupId>
            <artifactId>atlas-intg</artifactId>
        </dependency>
145

146 147 148 149
        <dependency>
            <groupId>org.apache.atlas</groupId>
            <artifactId>atlas-janusgraph-hbase2</artifactId>
            <version>${project.version}</version>
150 151 152 153 154 155
            <exclusions>
              <exclusion>
                <groupId>org.noggit</groupId>
                <artifactId>noggit</artifactId>
              </exclusion>
            </exclusions>
156 157
        </dependency>

Jon Maron committed
158 159 160
        <dependency>
            <groupId>org.apache.hadoop</groupId>
            <artifactId>hadoop-common</artifactId>
161 162 163 164 165
            <exclusions>
                <exclusion>
                    <groupId>javax.servlet</groupId>
                    <artifactId>servlet-api</artifactId>
                </exclusion>
166 167 168 169
                <exclusion>
                    <groupId>org.eclipse.jetty</groupId>
                    <artifactId>*</artifactId>
                </exclusion>
170
            </exclusions>
Jon Maron committed
171
        </dependency>
172

173 174 175 176 177 178 179 180
        <dependency>
            <groupId>org.apache.hadoop</groupId>
            <artifactId>hadoop-minikdc</artifactId>
        </dependency>

        <dependency>
            <groupId>org.apache.hadoop</groupId>
            <artifactId>hadoop-hdfs</artifactId>
181 182 183 184 185
            <exclusions>
                <exclusion>
                    <groupId>javax.servlet</groupId>
                    <artifactId>servlet-api</artifactId>
                </exclusion>
186 187 188 189
                <exclusion>
                    <groupId>org.eclipse.jetty</groupId>
                    <artifactId>*</artifactId>
                </exclusion>
190
            </exclusions>
191
        </dependency>
192

193 194 195 196 197 198 199 200 201 202 203
        <!-- Zookeeper, curator -->
        <dependency>
            <groupId>org.apache.curator</groupId>
            <artifactId>curator-framework</artifactId>
        </dependency>

        <dependency>
            <groupId>org.apache.curator</groupId>
            <artifactId>curator-recipes</artifactId>
        </dependency>

204 205 206 207 208
        <dependency>
            <groupId>org.apache.curator</groupId>
            <artifactId>curator-client</artifactId>
        </dependency>

209
        <dependency>
210 211
            <groupId>org.apache.zookeeper</groupId>
            <artifactId>zookeeper</artifactId>
212

213 214

        </dependency>
215 216 217 218 219 220
        <!-- supports simple auth handler -->
        <dependency>
            <groupId>org.apache.httpcomponents</groupId>
            <artifactId>httpclient</artifactId>
        </dependency>

221 222 223 224
        <dependency>
            <groupId>joda-time</groupId>
            <artifactId>joda-time</artifactId>
        </dependency>
225

226 227 228 229
        <dependency>
            <groupId>commons-configuration</groupId>
            <artifactId>commons-configuration</artifactId>
        </dependency>
230

231 232 233 234
        <dependency>
            <groupId>commons-cli</groupId>
            <artifactId>commons-cli</artifactId>
        </dependency>
235

236 237 238 239 240
        <dependency>
            <groupId>org.apache.commons</groupId>
            <artifactId>commons-lang3</artifactId>
        </dependency>

241 242 243 244 245
        <dependency>
            <groupId>org.apache.commons</groupId>
            <artifactId>commons-collections4</artifactId>
        </dependency>

246 247 248 249
        <dependency>
            <groupId>com.googlecode.json-simple</groupId>
            <artifactId>json-simple</artifactId>
        </dependency>
250

251 252 253 254
        <dependency>
            <groupId>javax.servlet.jsp</groupId>
            <artifactId>jsp-api</artifactId>
        </dependency>
255

256
        <dependency>
257 258
            <groupId>org.eclipse.jetty</groupId>
            <artifactId>jetty-server</artifactId>
259
        </dependency>
260

261
        <dependency>
262 263
            <groupId>org.eclipse.jetty</groupId>
            <artifactId>jetty-webapp</artifactId>
264
        </dependency>
265

266 267 268 269
        <dependency>
            <groupId>com.sun.jersey</groupId>
            <artifactId>jersey-core</artifactId>
        </dependency>
270

271 272 273 274
        <dependency>
            <groupId>com.sun.jersey</groupId>
            <artifactId>jersey-server</artifactId>
        </dependency>
275

276 277 278 279
        <dependency>
            <groupId>com.sun.jersey</groupId>
            <artifactId>jersey-client</artifactId>
        </dependency>
280

281 282 283 284 285
        <dependency>
            <groupId>com.sun.jersey.contribs</groupId>
            <artifactId>jersey-multipart</artifactId>
        </dependency>

286 287 288 289
        <dependency>
            <groupId>org.mockito</groupId>
            <artifactId>mockito-all</artifactId>
        </dependency>
290

291
        <dependency>
292 293
            <groupId>org.testng</groupId>
            <artifactId>testng</artifactId>
294
        </dependency>
295

296 297 298 299 300 301 302
        <dependency>
            <groupId>com.google.inject</groupId>
            <artifactId>guice</artifactId>
            <version>${guice.version}</version>
            <scope>test</scope>
        </dependency>

303 304
        <dependency>
            <groupId>com.google.inject.extensions</groupId>
305 306 307
            <artifactId>guice-throwingproviders</artifactId>
            <version>${guice.version}</version>
            <scope>test</scope>
308
        </dependency>
309

310
        <dependency>
311 312 313 314
            <groupId>com.google.inject.extensions</groupId>
            <artifactId>guice-multibindings</artifactId>
            <version>${guice.version}</version>
            <scope>test</scope>
315
        </dependency>
316

Shwetha GS committed
317
        <dependency>
318 319 320 321
            <groupId>org.eclipse.jetty</groupId>
            <artifactId>jetty-jsp</artifactId>
        </dependency>

322 323 324 325
        <dependency>
            <groupId>org.glassfish</groupId>
            <artifactId>javax.el</artifactId>
        </dependency>
326 327 328 329 330

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

332
        <dependency>
333 334
                <groupId>org.springframework</groupId>
                <artifactId>spring-core</artifactId>
335 336
        </dependency>

337
        <dependency>
338 339
                <groupId>org.springframework</groupId>
                <artifactId>spring-web</artifactId>
340 341 342
        </dependency>

        <dependency>
343 344
                <groupId>org.springframework</groupId>
                <artifactId>spring-webmvc</artifactId>
345 346 347
        </dependency>

        <dependency>
348 349
                <groupId>org.springframework.security</groupId>
                <artifactId>spring-security-core</artifactId>
350 351 352
        </dependency>

        <dependency>
353 354
                <groupId>org.springframework.security</groupId>
                <artifactId>spring-security-web</artifactId>
355 356 357
        </dependency>

        <dependency>
358 359
                <groupId>org.springframework.security</groupId>
                <artifactId>spring-security-config</artifactId>
360 361 362
        </dependency>

        <dependency>
363 364 365 366 367 368 369
                <groupId>org.springframework.security</groupId>
                <artifactId>spring-security-ldap</artifactId>
        </dependency>
        <dependency>
                <groupId>javax.servlet</groupId>
                <artifactId>javax.servlet-api</artifactId>
        </dependency>
370

371 372 373 374 375
        <!-- Jersey + Spring -->
        <dependency>
            <groupId>com.sun.jersey.contribs</groupId>
            <artifactId>jersey-spring</artifactId>
        </dependency>
376
        <dependency>
377 378
            <groupId>com.sun.jersey</groupId>
            <artifactId>jersey-servlet</artifactId>
379
        </dependency>
380
        <!-- Required for Spring configuration processing -->
381
        <dependency>
382 383 384 385 386 387 388 389 390 391 392 393
            <groupId>org.springframework</groupId>
            <artifactId>spring-aop</artifactId>
        </dependency>
        <dependency>
            <groupId>org.aspectj</groupId>
            <artifactId>aspectjrt</artifactId>
            <version>1.8.9</version>
        </dependency>
        <dependency>
            <groupId>org.aspectj</groupId>
            <artifactId>aspectjweaver</artifactId>
            <version>1.8.9</version>
394
        </dependency>
395
        <dependency>
396 397 398
            <groupId>org.apache.atlas</groupId>
            <artifactId>atlas-dashboardv2</artifactId>
            <type>war</type>
399
        </dependency>
400 401 402 403 404
        <dependency>
            <groupId>org.apache.atlas</groupId>
            <artifactId>atlas-dashboardv3</artifactId>
            <type>war</type>
        </dependency>
405 406 407 408 409 410
        <dependency>
            <groupId>org.easymock</groupId>
            <artifactId>easymock</artifactId>
            <version>3.4</version>
            <scope>test</scope>
        </dependency>
411

412 413 414 415 416 417
        <dependency>
            <groupId>org.apache.atlas</groupId>
            <artifactId>atlas-intg</artifactId>
            <classifier>tests</classifier>
            <scope>test</scope>
        </dependency>
418

419
        <dependency>
420 421 422 423 424
            <groupId>org.apache.atlas</groupId>
            <artifactId>atlas-repository</artifactId>
            <classifier>tests</classifier>
            <scope>test</scope>
        </dependency>
425

426 427 428 429 430 431 432 433 434 435 436 437
        <dependency>
            <groupId>org.elasticsearch.client</groupId>
            <artifactId>elasticsearch-rest-high-level-client</artifactId>
            <version>${elasticsearch.version}</version>
            <exclusions>
                <exclusion>
                    <groupId>org.elasticsearch</groupId>
                    <artifactId>elasticsearch</artifactId>
                </exclusion>
            </exclusions>
        </dependency>

438 439 440 441 442 443
        <dependency>
            <groupId>org.apache.atlas</groupId>
            <artifactId>atlas-graphdb-common</artifactId>
            <classifier>tests</classifier>
            <scope>test</scope>
        </dependency>
444

445
        <dependency>
446 447
            <groupId>com.nimbusds</groupId>
            <artifactId>nimbus-jose-jwt</artifactId>
448
            <version>5.4</version>
449 450 451 452 453 454 455 456
            <scope>compile</scope>
            <exclusions>
                <exclusion>
                    <groupId>org.bouncycastle</groupId>
                    <artifactId>bcprov-jdk15on</artifactId>
                </exclusion>
            </exclusions>
        </dependency>
457 458 459 460 461

        <dependency>
            <groupId>org.apache.atlas</groupId>
            <artifactId>atlas-server-api</artifactId>
        </dependency>
462 463 464 465 466

        <dependency>
            <groupId>com.webcohesion.enunciate</groupId>
            <artifactId>enunciate-core-annotations</artifactId>
        </dependency>
467 468 469 470
        <!-- PAM -->
        <dependency>
            <groupId>org.kohsuke</groupId>
            <artifactId>libpam4j</artifactId>
471
            <version>1.11</version>
472 473 474 475 476
        </dependency>

        <dependency>
            <groupId>net.java.dev.jna</groupId>
            <artifactId>jna</artifactId>
477
            <version>5.2.0</version>
478
        </dependency>
479 480 481 482 483 484 485 486 487 488 489 490
        <dependency>
            <groupId>org.apache.hadoop</groupId>
            <artifactId>hadoop-hdfs-client</artifactId>
            <version>${hadoop.version}</version>
        </dependency>

        <!-- AWS library -->
        <dependency>
            <groupId>org.apache.hadoop</groupId>
            <artifactId>hadoop-aws</artifactId>
            <version>${hadoop.version}</version>
        </dependency>
491 492 493 494 495 496 497 498

        <!-- Keycloak -->
        <dependency>
            <groupId>org.keycloak</groupId>
            <artifactId>keycloak-spring-security-adapter</artifactId>
            <version>${keycloak.version}</version>
        </dependency>

499
    </dependencies>
500

501
    <build>
502 503 504 505 506
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-war-plugin</artifactId>
                <configuration>
507
                    <archiveClasses>true</archiveClasses>
508
                    <attachClasses>true</attachClasses>
509
                    <overlays>
510
                        <overlay>
511 512
                            <groupId>org.apache.atlas</groupId>
                            <artifactId>atlas-dashboardv2</artifactId>
513
                        </overlay>
514 515 516 517
                        <overlay>
                            <groupId>org.apache.atlas</groupId>
                            <artifactId>atlas-dashboardv3</artifactId>
                        </overlay>
518
                        <overlay>
519
                            <!-- empty groupId/artifactId represents the current build -->
520
                        </overlay>
521
                    </overlays>
522 523 524 525 526
                    <archive>
                        <manifest>
                            <addClasspath>true</addClasspath>
                        </manifest>
                    </archive>
527
                    <packagingExcludes>
528
                        WEB-INF/lib/junit*.jar,WEB-INF/lib/dom4j-*.jar,${packages.to.exclude}
529
                    </packagingExcludes>
530 531
                </configuration>
            </plugin>
532

533 534 535
            <plugin>
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>keytool-maven-plugin</artifactId>
536
                <version>1.5</version>
537 538 539 540 541 542 543 544 545
                <executions>
                    <execution>
                        <id>clean</id>
                        <phase>generate-resources</phase>
                        <goals>
                            <goal>clean</goal>
                        </goals>
                    </execution>
                    <execution>
Jon Maron committed
546
                        <id>generateKeyPair</id>
547 548 549 550 551 552 553
                        <phase>generate-resources</phase>
                        <goals>
                            <goal>generateKeyPair</goal>
                        </goals>
                    </execution>
                </executions>
                <configuration>
554
                    <dname>cn=atlas.apache.org</dname>
555
                    <keystore>${project.build.directory}/atlas.keystore</keystore>
Jon Maron committed
556 557
                    <keypass>keypass</keypass>
                    <storepass>keypass</storepass>
558
                    <alias>atlas</alias>
559 560 561 562 563
                    <keyalg>RSA</keyalg>
                    <validity>100000</validity>
                </configuration>
            </plugin>

564 565 566 567 568 569 570 571 572 573 574 575
            <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>
                    <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}
576
                        -Xmx1024m
577 578 579
                    </argLine>
                </configuration>
                <executions>
580
                    <!-- Needed for explicit separation of UTs, SSL/Kerberos/Secure server tests and ITs-->
581 582
                    <execution>
                        <id>default-test</id>
583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613
                        <configuration>
                            <skip>true</skip>
                        </configuration>
                    </execution>

                    <!-- Unit tests don't rely of WAR being built and don't interact with real server -->
                    <execution>
                        <id>unit-tests</id>
                        <phase>test</phase>
                        <goals>
                            <goal>test</goal>
                        </goals>
                        <configuration>
                            <includes>
                                <include>**/*Test.java</include>
                            </includes>
                            <excludes>
                                <exclude>**/*SSL*.java</exclude>
                                <exclude>**/*Kerberos*.java</exclude>
                                <exclude>**/*Base*.java</exclude>
                                <exclude>**/*Secure*.java</exclude>
                                <exclude>**/*Server*.java</exclude>
                                <exclude>**/*$*.java</exclude>
                            </excludes>
                        </configuration>
                    </execution>

                    <!-- Secure tests rely on the generated WAR and (may) start atlas server for tests -->
                    <!-- Eventually all these server interaction tests need to move to IT phase -->
                    <execution>
                        <id>secure-tests</id>
614 615 616 617
                        <phase>pre-integration-test</phase>
                        <goals>
                            <goal>test</goal>
                        </goals>
618 619 620 621 622 623 624 625 626 627 628 629
                        <configuration>
                            <includes>
                                <include>**/*SSL*Test.java</include>
                                <include>**/*Kerberos*Test.java</include>
                                <include>**/*Secure*Test.java</include>
                                <include>**/*Server*Test.java</include>
                                <include>**/*$*.java</include>
                            </includes>
                            <excludes>
                                <exclude>**/*Base*.java</exclude>
                            </excludes>
                        </configuration>
630 631 632 633
                    </execution>
                </executions>
            </plugin>

634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-antrun-plugin</artifactId>
                <executions>
                    <execution>
                        <phase>pre-integration-test</phase>
                        <goals>
                            <goal>run</goal>
                        </goals>
                        <configuration>
                            <tasks>
                                <delete dir="${project.build.directory}/data"/>
                                <delete dir="${project.build.directory}/logs"/>
                            </tasks>
                        </configuration>
                    </execution>
                </executions>
            </plugin>

653
            <plugin>
654 655
                <groupId>org.eclipse.jetty</groupId>
                <artifactId>jetty-maven-plugin</artifactId>
656
                <configuration>
657
                    <skip>${skipTests}</skip>
658
                    <!--only skip int tests -->
659
                    <httpConnector>
660
                        <port>31000</port>
661 662 663 664
                        <idleTimeout>60000</idleTimeout>
                    </httpConnector>
                    <war>${project.build.directory}/atlas-webapp-${project.version}.war</war>
                    <daemon>true</daemon>
665
                    <webAppSourceDirectory>${project.basedir}/src/main/webapp</webAppSourceDirectory>
666 667
                    <webApp>
                        <contextPath>/</contextPath>
668
                        <descriptor>${project.basedir}/src/main/webapp/WEB-INF/web.xml</descriptor>
669
                        <extraClasspath>${project.build.testOutputDirectory}</extraClasspath>
670 671
                    </webApp>
                    <useTestScope>true</useTestScope>
672
                    <systemProperties>
673
                        <systemProperty>
674 675
                            <name>atlas.home</name>
                            <value>${project.build.directory}</value>
676
                        </systemProperty>
677
                        <systemProperty>
678 679
                            <key>atlas.conf</key>
                            <value>${project.build.directory}/test-classes</value>
680
                        </systemProperty>
681
                        <systemProperty>
682 683
                            <name>atlas.data</name>
                            <value>${project.build.directory}/data</value>
684 685
                        </systemProperty>
                        <systemProperty>
686 687
                            <name>atlas.log.dir</name>
                            <value>${project.build.directory}/logs</value>
688
                        </systemProperty>
689
                        <systemProperty>
690 691
                            <name>atlas.log.file</name>
                            <value>application.log</value>
692
                        </systemProperty>
693
                        <systemProperty>
694 695
                            <name>log4j.configuration</name>
                            <value>${log4j.configuration.url}</value>
696
                        </systemProperty>
697
                        <systemProperty>
698 699
                            <name>atlas.graphdb.backend</name>
                            <value>${graphdb.backend.impl}</value>
700 701 702
                        </systemProperty>
                        <systemProperty>
                            <key>embedded.solr.directory</key>
703
                            <value>${project.build.directory}</value>
704
                        </systemProperty>
705 706
                        <systemProperty>
                            <name>org.eclipse.jetty.annotations.maxWait</name>
707 708 709 710 711
                            <value>5000</value>
                        </systemProperty>
                        <systemProperty>
                            <name>org.eclipse.jetty.annotations.maxWait</name>
                            <value>5000</value>
712
                        </systemProperty>
713
                    </systemProperties>
714
                    <stopKey>atlas-stop</stopKey>
715
                    <stopPort>31001</stopPort>
716
                    <stopWait>${jetty-maven-plugin.stopWait}</stopWait>
Shwetha GS committed
717
                    <daemon>${debug.jetty.daemon}</daemon>
718
                    <testClassesDirectory>${project.build.testOutputDirectory}</testClassesDirectory>
719
                    <useTestClasspath>true</useTestClasspath>
720 721 722 723 724 725
                </configuration>
                <executions>
                    <execution>
                        <id>start-jetty</id>
                        <phase>pre-integration-test</phase>
                        <goals>
726
                            <goal>deploy-war</goal>
727 728 729 730 731 732 733 734 735 736 737
                        </goals>
                    </execution>
                    <execution>
                        <id>stop-jetty</id>
                        <phase>post-integration-test</phase>
                        <goals>
                            <goal>stop</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
738
           <plugin>
739 740 741 742 743 744 745 746 747 748
                <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>
749
                            <outputDirectory>${basedir}/target/models/</outputDirectory>
750 751
                            <resources>
                                <resource>
752
                                    <directory>${basedir}/../addons/models/</directory>
753
                                    <includes>
754
                                        <include>0000-Area0/0011-glossary_model.json</include>
755 756 757
                                        <include>0000-Area0/0010-base_model.json</include>
                                        <include>1000-Hadoop/**</include>
                                    </includes>
758 759 760 761
                                </resource>
                            </resources>
                        </configuration>
                    </execution>
762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777

                    <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>
778 779
                </executions>
            </plugin>
780

781 782 783
            <plugin>
                <groupId>com.webcohesion.enunciate</groupId>
                <artifactId>enunciate-maven-plugin</artifactId>
784
                <version>${enunciate-maven-plugin.version}</version>
785 786 787 788
                <configuration>
                    <configFile>${project.parent.basedir}/build-tools/src/main/resources/enunciate.xml</configFile>
                    <enunciateArtifactId/>
                    <docsDir>${project.build.directory}/api/v2/</docsDir>
789 790
                    <source>1.8</source>
                    <target>1.8</target>
791 792
                    <skipEnunciate>${skipEnunciate}</skipEnunciate>
                </configuration>
793 794 795 796 797 798 799
                <dependencies>
                    <dependency>
                        <groupId>javax.annotation</groupId>
                        <artifactId>javax.annotation-api</artifactId>
                        <version>1.3</version>
                    </dependency>
                </dependencies>
800
            </plugin>
801
        </plugins>
802
    </build>
803 804


805
</project>