pom.xml 28.4 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 57 58 59
            </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>
60

61 62 63 64 65 66 67 68
        <profile>
            <id>Windows</id>
            <activation>
                <os>
                    <family>windows</family>
                </os>
            </activation>
            <properties>
69
                <log4j.configuration.url>file:/${project.build.directory}/../../distro/src/conf/atlas-log4j.xml</log4j.configuration.url>
70
            </properties>
71
        </profile>
72

73 74
    </profiles>

75
    <dependencies>
76 77 78
        <dependency>
            <groupId>org.apache.atlas</groupId>
            <artifactId>atlas-graphdb-impls</artifactId>
79 80 81 82 83 84
            <exclusions>
                <exclusion>
                    <groupId>io.netty</groupId>
                    <artifactId>netty-handler</artifactId>
                </exclusion>
            </exclusions>
85 86
            <type>pom</type>
        </dependency>
87

88 89 90
        <dependency>
            <groupId>org.apache.atlas</groupId>
            <artifactId>atlas-common</artifactId>
91 92 93 94 95 96
            <exclusions>
                <exclusion>
                    <groupId>com.fasterxml.jackson.core</groupId>
                    <artifactId>*</artifactId>
                </exclusion>
            </exclusions>
97 98
        </dependency>

99
        <dependency>
100 101
            <groupId>org.apache.atlas</groupId>
            <artifactId>atlas-repository</artifactId>
102 103 104 105 106 107
            <exclusions>
                <exclusion>
                    <groupId>io.netty</groupId>
                    <artifactId>netty-handler</artifactId>
                </exclusion>
            </exclusions>
108
        </dependency>
109

110
        <dependency>
111
            <groupId>org.apache.atlas</groupId>
112 113 114 115 116 117
            <artifactId>atlas-client-v1</artifactId>
        </dependency>

        <dependency>
            <groupId>org.apache.atlas</groupId>
            <artifactId>atlas-client-v2</artifactId>
118 119
        </dependency>

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

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

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

136 137 138 139
        <dependency>
            <groupId>org.apache.atlas</groupId>
            <artifactId>atlas-janusgraph-hbase2</artifactId>
            <version>${project.version}</version>
140 141 142 143 144 145
            <exclusions>
              <exclusion>
                <groupId>org.noggit</groupId>
                <artifactId>noggit</artifactId>
              </exclusion>
            </exclusions>
146 147
        </dependency>

Jon Maron committed
148 149 150
        <dependency>
            <groupId>org.apache.hadoop</groupId>
            <artifactId>hadoop-common</artifactId>
151 152 153 154 155
            <exclusions>
                <exclusion>
                    <groupId>javax.servlet</groupId>
                    <artifactId>servlet-api</artifactId>
                </exclusion>
156 157 158 159
                <exclusion>
                    <groupId>org.eclipse.jetty</groupId>
                    <artifactId>*</artifactId>
                </exclusion>
160
            </exclusions>
Jon Maron committed
161
        </dependency>
162

163 164 165 166 167 168 169 170
        <dependency>
            <groupId>org.apache.hadoop</groupId>
            <artifactId>hadoop-minikdc</artifactId>
        </dependency>

        <dependency>
            <groupId>org.apache.hadoop</groupId>
            <artifactId>hadoop-hdfs</artifactId>
171 172 173 174 175
            <exclusions>
                <exclusion>
                    <groupId>javax.servlet</groupId>
                    <artifactId>servlet-api</artifactId>
                </exclusion>
176 177 178 179
                <exclusion>
                    <groupId>org.eclipse.jetty</groupId>
                    <artifactId>*</artifactId>
                </exclusion>
180
            </exclusions>
181
        </dependency>
182

183 184 185 186 187 188 189 190 191 192 193
        <!-- Zookeeper, curator -->
        <dependency>
            <groupId>org.apache.curator</groupId>
            <artifactId>curator-framework</artifactId>
        </dependency>

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

194 195 196 197 198
        <dependency>
            <groupId>org.apache.curator</groupId>
            <artifactId>curator-client</artifactId>
        </dependency>

199
        <dependency>
200 201
            <groupId>org.apache.zookeeper</groupId>
            <artifactId>zookeeper</artifactId>
202

203 204

        </dependency>
205 206 207 208 209 210
        <!-- supports simple auth handler -->
        <dependency>
            <groupId>org.apache.httpcomponents</groupId>
            <artifactId>httpclient</artifactId>
        </dependency>

211 212 213 214
        <dependency>
            <groupId>joda-time</groupId>
            <artifactId>joda-time</artifactId>
        </dependency>
215

216 217 218 219
        <dependency>
            <groupId>commons-configuration</groupId>
            <artifactId>commons-configuration</artifactId>
        </dependency>
220

221 222 223 224
        <dependency>
            <groupId>commons-cli</groupId>
            <artifactId>commons-cli</artifactId>
        </dependency>
225

226 227 228 229 230
        <dependency>
            <groupId>org.apache.commons</groupId>
            <artifactId>commons-lang3</artifactId>
        </dependency>

231 232 233 234
        <dependency>
            <groupId>com.googlecode.json-simple</groupId>
            <artifactId>json-simple</artifactId>
        </dependency>
235

236 237 238 239
        <dependency>
            <groupId>javax.servlet.jsp</groupId>
            <artifactId>jsp-api</artifactId>
        </dependency>
240

241
        <dependency>
242 243
            <groupId>org.eclipse.jetty</groupId>
            <artifactId>jetty-server</artifactId>
244
        </dependency>
245

246
        <dependency>
247 248
            <groupId>org.eclipse.jetty</groupId>
            <artifactId>jetty-webapp</artifactId>
249
        </dependency>
250

251 252 253 254
        <dependency>
            <groupId>com.sun.jersey</groupId>
            <artifactId>jersey-core</artifactId>
        </dependency>
255

256 257 258 259
        <dependency>
            <groupId>com.sun.jersey</groupId>
            <artifactId>jersey-server</artifactId>
        </dependency>
260

261 262 263 264
        <dependency>
            <groupId>com.sun.jersey</groupId>
            <artifactId>jersey-client</artifactId>
        </dependency>
265

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

271 272 273 274
        <dependency>
            <groupId>org.mockito</groupId>
            <artifactId>mockito-all</artifactId>
        </dependency>
275

276
        <dependency>
277 278
            <groupId>org.testng</groupId>
            <artifactId>testng</artifactId>
279
        </dependency>
280

281 282 283 284 285 286 287
        <dependency>
            <groupId>com.google.inject</groupId>
            <artifactId>guice</artifactId>
            <version>${guice.version}</version>
            <scope>test</scope>
        </dependency>

288 289
        <dependency>
            <groupId>com.google.inject.extensions</groupId>
290 291 292
            <artifactId>guice-throwingproviders</artifactId>
            <version>${guice.version}</version>
            <scope>test</scope>
293
        </dependency>
294

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

Shwetha GS committed
302
        <dependency>
303 304 305 306
            <groupId>org.eclipse.jetty</groupId>
            <artifactId>jetty-jsp</artifactId>
        </dependency>

307 308 309 310
        <dependency>
            <groupId>org.glassfish</groupId>
            <artifactId>javax.el</artifactId>
        </dependency>
311 312 313 314 315

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

317
        <dependency>
318 319
                <groupId>org.springframework</groupId>
                <artifactId>spring-core</artifactId>
320 321
        </dependency>

322
        <dependency>
323 324
                <groupId>org.springframework</groupId>
                <artifactId>spring-web</artifactId>
325 326 327
        </dependency>

        <dependency>
328 329
                <groupId>org.springframework</groupId>
                <artifactId>spring-webmvc</artifactId>
330 331 332
        </dependency>

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

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

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

        <dependency>
348 349 350 351 352 353 354
                <groupId>org.springframework.security</groupId>
                <artifactId>spring-security-ldap</artifactId>
        </dependency>
        <dependency>
                <groupId>javax.servlet</groupId>
                <artifactId>javax.servlet-api</artifactId>
        </dependency>
355

356 357 358 359 360
        <!-- Jersey + Spring -->
        <dependency>
            <groupId>com.sun.jersey.contribs</groupId>
            <artifactId>jersey-spring</artifactId>
        </dependency>
361
        <dependency>
362 363
            <groupId>com.sun.jersey</groupId>
            <artifactId>jersey-servlet</artifactId>
364
        </dependency>
365
        <!-- Required for Spring configuration processing -->
366
        <dependency>
367 368 369 370 371 372 373 374 375 376 377 378
            <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>
379
        </dependency>
380
        <dependency>
381 382 383
            <groupId>org.apache.atlas</groupId>
            <artifactId>atlas-dashboardv2</artifactId>
            <type>war</type>
384
        </dependency>
385 386 387 388 389 390
        <dependency>
            <groupId>org.easymock</groupId>
            <artifactId>easymock</artifactId>
            <version>3.4</version>
            <scope>test</scope>
        </dependency>
391

392 393 394 395 396 397
        <dependency>
            <groupId>org.apache.atlas</groupId>
            <artifactId>atlas-intg</artifactId>
            <classifier>tests</classifier>
            <scope>test</scope>
        </dependency>
398

399
        <dependency>
400 401 402 403 404
            <groupId>org.apache.atlas</groupId>
            <artifactId>atlas-repository</artifactId>
            <classifier>tests</classifier>
            <scope>test</scope>
        </dependency>
405

406 407 408 409 410 411 412 413 414 415 416 417
        <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>

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

425
        <dependency>
426 427
            <groupId>com.nimbusds</groupId>
            <artifactId>nimbus-jose-jwt</artifactId>
428
            <version>5.4</version>
429 430 431 432 433 434 435 436
            <scope>compile</scope>
            <exclusions>
                <exclusion>
                    <groupId>org.bouncycastle</groupId>
                    <artifactId>bcprov-jdk15on</artifactId>
                </exclusion>
            </exclusions>
        </dependency>
437 438 439 440 441

        <dependency>
            <groupId>org.apache.atlas</groupId>
            <artifactId>atlas-server-api</artifactId>
        </dependency>
442 443 444 445 446

        <dependency>
            <groupId>com.webcohesion.enunciate</groupId>
            <artifactId>enunciate-core-annotations</artifactId>
        </dependency>
447 448 449 450 451 452 453 454 455 456 457 458
        <!-- PAM -->
        <dependency>
            <groupId>org.kohsuke</groupId>
            <artifactId>libpam4j</artifactId>
            <version>1.8</version>
        </dependency>

        <dependency>
            <groupId>net.java.dev.jna</groupId>
            <artifactId>jna</artifactId>
            <version>4.1.0</version>
        </dependency>
459 460 461 462 463 464 465 466 467 468 469 470
        <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>
471 472 473 474 475 476 477 478

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

479
    </dependencies>
480

481
    <build>
482 483 484 485 486
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-war-plugin</artifactId>
                <configuration>
487
                    <archiveClasses>true</archiveClasses>
488
                    <attachClasses>true</attachClasses>
489
                    <overlays>
490
                        <overlay>
491 492
                            <groupId>org.apache.atlas</groupId>
                            <artifactId>atlas-dashboardv2</artifactId>
493
                        </overlay>
494
                        <overlay>
495
                            <!-- empty groupId/artifactId represents the current build -->
496
                        </overlay>
497
                    </overlays>
498 499 500 501 502
                    <archive>
                        <manifest>
                            <addClasspath>true</addClasspath>
                        </manifest>
                    </archive>
503
                    <packagingExcludes>
504
                        WEB-INF/lib/junit*.jar,${packages.to.exclude}
505
                    </packagingExcludes>
506 507
                </configuration>
            </plugin>
508

509 510 511
            <plugin>
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>keytool-maven-plugin</artifactId>
512
                <version>1.5</version>
513 514 515 516 517 518 519 520 521
                <executions>
                    <execution>
                        <id>clean</id>
                        <phase>generate-resources</phase>
                        <goals>
                            <goal>clean</goal>
                        </goals>
                    </execution>
                    <execution>
Jon Maron committed
522
                        <id>generateKeyPair</id>
523 524 525 526 527 528 529
                        <phase>generate-resources</phase>
                        <goals>
                            <goal>generateKeyPair</goal>
                        </goals>
                    </execution>
                </executions>
                <configuration>
530
                    <dname>cn=atlas.apache.org</dname>
531
                    <keystore>${project.build.directory}/atlas.keystore</keystore>
Jon Maron committed
532 533
                    <keypass>keypass</keypass>
                    <storepass>keypass</storepass>
534
                    <alias>atlas</alias>
535 536 537 538 539
                    <keyalg>RSA</keyalg>
                    <validity>100000</validity>
                </configuration>
            </plugin>

540 541 542 543 544 545 546 547 548 549 550 551
            <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}
552
                        -Xmx1024m
553 554 555
                    </argLine>
                </configuration>
                <executions>
556
                    <!-- Needed for explicit separation of UTs, SSL/Kerberos/Secure server tests and ITs-->
557 558
                    <execution>
                        <id>default-test</id>
559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589
                        <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>
590 591 592 593
                        <phase>pre-integration-test</phase>
                        <goals>
                            <goal>test</goal>
                        </goals>
594 595 596 597 598 599 600 601 602 603 604 605
                        <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>
606 607 608 609
                    </execution>
                </executions>
            </plugin>

610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628
            <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>

629
            <plugin>
630 631
                <groupId>org.eclipse.jetty</groupId>
                <artifactId>jetty-maven-plugin</artifactId>
632
                <configuration>
633
                    <skip>${skipTests}</skip>
634
                    <!--only skip int tests -->
635
                    <httpConnector>
636
                        <port>31000</port>
637 638 639 640
                        <idleTimeout>60000</idleTimeout>
                    </httpConnector>
                    <war>${project.build.directory}/atlas-webapp-${project.version}.war</war>
                    <daemon>true</daemon>
641
                    <webAppSourceDirectory>${project.basedir}/src/main/webapp</webAppSourceDirectory>
642 643
                    <webApp>
                        <contextPath>/</contextPath>
644
                        <descriptor>${project.basedir}/src/main/webapp/WEB-INF/web.xml</descriptor>
645
                        <extraClasspath>${project.build.testOutputDirectory}</extraClasspath>
646 647
                    </webApp>
                    <useTestScope>true</useTestScope>
648
                    <systemProperties>
649
                        <systemProperty>
650 651
                            <name>atlas.home</name>
                            <value>${project.build.directory}</value>
652
                        </systemProperty>
653
                        <systemProperty>
654 655
                            <key>atlas.conf</key>
                            <value>${project.build.directory}/test-classes</value>
656
                        </systemProperty>
657
                        <systemProperty>
658 659
                            <name>atlas.data</name>
                            <value>${project.build.directory}/data</value>
660 661
                        </systemProperty>
                        <systemProperty>
662 663
                            <name>atlas.log.dir</name>
                            <value>${project.build.directory}/logs</value>
664
                        </systemProperty>
665
                        <systemProperty>
666 667
                            <name>atlas.log.file</name>
                            <value>application.log</value>
668
                        </systemProperty>
669
                        <systemProperty>
670 671
                            <name>log4j.configuration</name>
                            <value>${log4j.configuration.url}</value>
672
                        </systemProperty>
673
                        <systemProperty>
674 675
                            <name>atlas.graphdb.backend</name>
                            <value>${graphdb.backend.impl}</value>
676 677 678
                        </systemProperty>
                        <systemProperty>
                            <key>embedded.solr.directory</key>
679
                            <value>${project.build.directory}</value>
680
                        </systemProperty>
681
                    </systemProperties>
682
                    <stopKey>atlas-stop</stopKey>
683
                    <stopPort>31001</stopPort>
684
                    <stopWait>${jetty-maven-plugin.stopWait}</stopWait>
Shwetha GS committed
685
                    <daemon>${debug.jetty.daemon}</daemon>
686
                    <testClassesDirectory>${project.build.testOutputDirectory}</testClassesDirectory>
687
                    <useTestClasspath>true</useTestClasspath>
688 689 690 691 692 693
                </configuration>
                <executions>
                    <execution>
                        <id>start-jetty</id>
                        <phase>pre-integration-test</phase>
                        <goals>
694
                            <goal>deploy-war</goal>
695 696 697 698 699 700 701 702 703 704 705
                        </goals>
                    </execution>
                    <execution>
                        <id>stop-jetty</id>
                        <phase>post-integration-test</phase>
                        <goals>
                            <goal>stop</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
706
           <plugin>
707 708 709 710 711 712 713 714 715 716
                <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>
717
                            <outputDirectory>${basedir}/target/models/</outputDirectory>
718 719
                            <resources>
                                <resource>
720
                                    <directory>${basedir}/../addons/models/</directory>
721 722 723 724
                                    <includes>
                                        <include>0000-Area0/0010-base_model.json</include>
                                        <include>1000-Hadoop/**</include>
                                    </includes>
725 726 727 728
                                </resource>
                            </resources>
                        </configuration>
                    </execution>
729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744

                    <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>
745 746
                </executions>
            </plugin>
747

748 749 750
            <plugin>
                <groupId>com.webcohesion.enunciate</groupId>
                <artifactId>enunciate-maven-plugin</artifactId>
751
                <version>${enunciate-maven-plugin.version}</version>
752 753 754 755
                <configuration>
                    <configFile>${project.parent.basedir}/build-tools/src/main/resources/enunciate.xml</configFile>
                    <enunciateArtifactId/>
                    <docsDir>${project.build.directory}/api/v2/</docsDir>
756 757
                    <source>1.8</source>
                    <target>1.8</target>
758 759
                    <skipEnunciate>${skipEnunciate}</skipEnunciate>
                </configuration>
760 761 762 763 764 765 766
                <dependencies>
                    <dependency>
                        <groupId>javax.annotation</groupId>
                        <artifactId>javax.annotation-api</artifactId>
                        <version>1.3</version>
                    </dependency>
                </dependencies>
767
            </plugin>
768
        </plugins>
769
    </build>
770 771


772
</project>