pom.xml 31.1 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 35
    <properties>
        <debug.jetty.daemon>true</debug.jetty.daemon>
36
        <log4j.configuration.url>file:///${project.build.directory}/../../distro/src/conf/atlas-log4j.xml</log4j.configuration.url>
37
        <projectBaseDir>${project.basedir}/..</projectBaseDir>
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 262 263 264 265
        <dependency>
            <groupId>org.eclipse.jetty</groupId>
            <artifactId>jetty-servlet</artifactId>
        </dependency>

266
        <dependency>
267 268
            <groupId>org.eclipse.jetty</groupId>
            <artifactId>jetty-webapp</artifactId>
269
        </dependency>
270

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

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

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

286 287 288 289 290
        <dependency>
            <groupId>com.sun.jersey.contribs</groupId>
            <artifactId>jersey-multipart</artifactId>
        </dependency>

291 292 293 294
        <dependency>
            <groupId>org.mockito</groupId>
            <artifactId>mockito-all</artifactId>
        </dependency>
295

296
        <dependency>
297 298
            <groupId>org.testng</groupId>
            <artifactId>testng</artifactId>
299
        </dependency>
300

301 302 303 304 305 306 307
        <dependency>
            <groupId>com.google.inject</groupId>
            <artifactId>guice</artifactId>
            <version>${guice.version}</version>
            <scope>test</scope>
        </dependency>

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

315
        <dependency>
316 317 318 319
            <groupId>com.google.inject.extensions</groupId>
            <artifactId>guice-multibindings</artifactId>
            <version>${guice.version}</version>
            <scope>test</scope>
320
        </dependency>
321

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 500 501 502 503
        <dependency>
            <groupId>org.apache.atlas</groupId>
            <artifactId>atlas-testtools</artifactId>
            <version>${project.version}</version>
        </dependency>
504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521

        <dependency>
          <groupId>org.apache.logging.log4j</groupId>
          <artifactId>log4j-core</artifactId>
          <version>${log4j2.version}</version>
        </dependency>

        <dependency>
          <groupId>org.apache.logging.log4j</groupId>
          <artifactId>log4j-web</artifactId>
          <version>${log4j2.version}</version>
        </dependency>

       <dependency>
         <groupId>org.apache.logging.log4j</groupId>
         <artifactId>log4j-api</artifactId>
         <version>${log4j2.version}</version>
       </dependency>
522
    </dependencies>
523

524
    <build>
525 526 527 528 529
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-war-plugin</artifactId>
                <configuration>
530
                    <archiveClasses>true</archiveClasses>
531
                    <attachClasses>true</attachClasses>
532
                    <overlays>
533
                        <overlay>
534 535
                            <groupId>org.apache.atlas</groupId>
                            <artifactId>atlas-dashboardv2</artifactId>
536
                        </overlay>
537 538 539 540
                        <overlay>
                            <groupId>org.apache.atlas</groupId>
                            <artifactId>atlas-dashboardv3</artifactId>
                        </overlay>
541
                        <overlay>
542
                            <!-- empty groupId/artifactId represents the current build -->
543
                        </overlay>
544
                    </overlays>
545 546 547 548 549 550 551 552

                    <webResources>
                        <resource>
                            <directory>${project.build.directory}/api/v2/apidocs/ui</directory>
                            <targetPath>apidocs</targetPath>
                        </resource>
                    </webResources>

553 554 555 556 557
                    <archive>
                        <manifest>
                            <addClasspath>true</addClasspath>
                        </manifest>
                    </archive>
558
                    <packagingExcludes>
559
                        WEB-INF/lib/dom4j-*.jar,${packages.to.exclude}
560
                    </packagingExcludes>
561 562
                </configuration>
            </plugin>
563

564 565 566
            <plugin>
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>keytool-maven-plugin</artifactId>
567
                <version>1.5</version>
568 569 570 571 572 573 574 575 576
                <executions>
                    <execution>
                        <id>clean</id>
                        <phase>generate-resources</phase>
                        <goals>
                            <goal>clean</goal>
                        </goals>
                    </execution>
                    <execution>
Jon Maron committed
577
                        <id>generateKeyPair</id>
578 579 580 581 582 583 584
                        <phase>generate-resources</phase>
                        <goals>
                            <goal>generateKeyPair</goal>
                        </goals>
                    </execution>
                </executions>
                <configuration>
585
                    <dname>cn=atlas.apache.org</dname>
586
                    <keystore>${project.build.directory}/atlas.keystore</keystore>
Jon Maron committed
587 588
                    <keypass>keypass</keypass>
                    <storepass>keypass</storepass>
589
                    <alias>atlas</alias>
590 591 592 593 594
                    <keyalg>RSA</keyalg>
                    <validity>100000</validity>
                </configuration>
            </plugin>

595 596 597 598 599 600 601 602 603 604 605 606
            <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}
607
                        -Xmx1024m
608 609 610
                    </argLine>
                </configuration>
                <executions>
611
                    <!-- Needed for explicit separation of UTs, SSL/Kerberos/Secure server tests and ITs-->
612 613
                    <execution>
                        <id>default-test</id>
614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644
                        <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>
645 646 647 648
                        <phase>pre-integration-test</phase>
                        <goals>
                            <goal>test</goal>
                        </goals>
649 650 651 652 653 654 655 656 657 658 659 660
                        <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>
661 662 663 664
                    </execution>
                </executions>
            </plugin>

665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683
            <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>

684
            <plugin>
685 686
                <groupId>org.eclipse.jetty</groupId>
                <artifactId>jetty-maven-plugin</artifactId>
687
                <configuration>
688
                    <skip>${skipTests}</skip>
689
                    <!--only skip int tests -->
690
                    <httpConnector>
691
                        <port>31000</port>
692 693 694 695
                        <idleTimeout>60000</idleTimeout>
                    </httpConnector>
                    <war>${project.build.directory}/atlas-webapp-${project.version}.war</war>
                    <daemon>true</daemon>
696
                    <webAppSourceDirectory>${project.basedir}/src/main/webapp</webAppSourceDirectory>
697 698
                    <webApp>
                        <contextPath>/</contextPath>
699
                        <descriptor>${project.basedir}/src/main/webapp/WEB-INF/web.xml</descriptor>
700
                        <extraClasspath>${project.build.testOutputDirectory}</extraClasspath>
701 702
                    </webApp>
                    <useTestScope>true</useTestScope>
703
                    <systemProperties>
704
                        <systemProperty>
705 706
                            <name>atlas.home</name>
                            <value>${project.build.directory}</value>
707
                        </systemProperty>
708
                        <systemProperty>
709 710
                            <key>atlas.conf</key>
                            <value>${project.build.directory}/test-classes</value>
711
                        </systemProperty>
712
                        <systemProperty>
713 714
                            <name>atlas.data</name>
                            <value>${project.build.directory}/data</value>
715 716
                        </systemProperty>
                        <systemProperty>
717 718
                            <name>atlas.log.dir</name>
                            <value>${project.build.directory}/logs</value>
719
                        </systemProperty>
720
                        <systemProperty>
721 722
                            <name>atlas.log.file</name>
                            <value>application.log</value>
723
                        </systemProperty>
724
                        <systemProperty>
725 726
                            <name>log4j.configuration</name>
                            <value>${log4j.configuration.url}</value>
727
                        </systemProperty>
728
                        <systemProperty>
729 730
                            <name>atlas.graphdb.backend</name>
                            <value>${graphdb.backend.impl}</value>
731 732 733
                        </systemProperty>
                        <systemProperty>
                            <key>embedded.solr.directory</key>
734
                            <value>${project.build.directory}</value>
735
                        </systemProperty>
736 737
                        <systemProperty>
                            <name>org.eclipse.jetty.annotations.maxWait</name>
738 739 740 741 742
                            <value>5000</value>
                        </systemProperty>
                        <systemProperty>
                            <name>org.eclipse.jetty.annotations.maxWait</name>
                            <value>5000</value>
743
                        </systemProperty>
744
                    </systemProperties>
745
                    <stopKey>atlas-stop</stopKey>
746
                    <stopPort>31001</stopPort>
747
                    <stopWait>${jetty-maven-plugin.stopWait}</stopWait>
Shwetha GS committed
748
                    <daemon>${debug.jetty.daemon}</daemon>
749
                    <testClassesDirectory>${project.build.testOutputDirectory}</testClassesDirectory>
750
                    <useTestClasspath>true</useTestClasspath>
751 752 753 754 755 756
                </configuration>
                <executions>
                    <execution>
                        <id>start-jetty</id>
                        <phase>pre-integration-test</phase>
                        <goals>
757
                            <goal>deploy-war</goal>
758 759 760 761 762 763 764 765 766 767 768
                        </goals>
                    </execution>
                    <execution>
                        <id>stop-jetty</id>
                        <phase>post-integration-test</phase>
                        <goals>
                            <goal>stop</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
769
           <plugin>
770 771 772 773 774 775 776 777 778 779
                <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>
780
                            <outputDirectory>${basedir}/target/models/</outputDirectory>
781 782
                            <resources>
                                <resource>
783
                                    <directory>${basedir}/../addons/models/</directory>
784
                                    <includes>
785
                                        <include>0000-Area0/0011-glossary_model.json</include>
786 787 788
                                        <include>0000-Area0/0010-base_model.json</include>
                                        <include>1000-Hadoop/**</include>
                                    </includes>
789 790 791 792
                                </resource>
                            </resources>
                        </configuration>
                    </execution>
793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808

                    <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>
809 810
                </executions>
            </plugin>
811

812 813 814
            <plugin>
                <groupId>com.webcohesion.enunciate</groupId>
                <artifactId>enunciate-maven-plugin</artifactId>
815
                <version>${enunciate-maven-plugin.version}</version>
816 817 818 819 820 821
                <!-- to allow target/api/v2/apidocs/ui to be created before building maven-war-plugin)-->
                <executions>
                    <execution>
                        <phase>generate-resources</phase>
                    </execution>
                </executions>
822 823 824 825
                <configuration>
                    <configFile>${project.parent.basedir}/build-tools/src/main/resources/enunciate.xml</configFile>
                    <enunciateArtifactId/>
                    <docsDir>${project.build.directory}/api/v2/</docsDir>
826 827
                    <source>1.8</source>
                    <target>1.8</target>
828 829
                    <skipEnunciate>${skipEnunciate}</skipEnunciate>
                </configuration>
830 831 832 833 834 835 836
                <dependencies>
                    <dependency>
                        <groupId>javax.annotation</groupId>
                        <artifactId>javax.annotation-api</artifactId>
                        <version>1.3</version>
                    </dependency>
                </dependencies>
837
            </plugin>
838
        </plugins>
839
    </build>
840 841


842
</project>