721fe240ca360b4981f2fc24d6d27a40d86742dd
[dcaegen2/analytics/tca.git] / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3   ~ ===============================LICENSE_START======================================
4   ~  dcae-analytics
5   ~ ================================================================================
6   ~    Copyright © 2017 AT&T Intellectual Property. All rights reserved.
7   ~ ================================================================================
8   ~  Licensed under the Apache License, Version 2.0 (the "License");
9   ~  you may not use this file except in compliance with the License.
10   ~   You may obtain a copy of the License at
11   ~
12   ~          http://www.apache.org/licenses/LICENSE-2.0
13   ~
14   ~  Unless required by applicable law or agreed to in writing, software
15   ~  distributed under the License is distributed on an "AS IS" BASIS,
16   ~  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17   ~  See the License for the specific language governing permissions and
18   ~  limitations under the License.
19   ~  ============================LICENSE_END===========================================
20   -->
21
22 <project xmlns="http://maven.apache.org/POM/4.0.0"
23          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
24          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
25     <modelVersion>4.0.0</modelVersion>
26
27     <parent>
28       <groupId>org.onap.oparent</groupId>
29       <artifactId>oparent</artifactId>
30       <version>0.1.1</version>
31       <relativePath/>
32     </parent>
33
34     <groupId>org.onap.dcaegen2.analytics.tca</groupId>
35     <artifactId>dcae-analytics</artifactId>
36     <version>2.2.0-SNAPSHOT</version>
37     <packaging>pom</packaging>
38
39     <name>dcaegen2-analytics-tca</name>
40     <description>Application Framework for DCAE Analytics</description>
41
42     <licenses>
43         <license>
44             <name>The Apache Software License, Version 2.0</name>
45             <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
46         </license>
47     </licenses>
48
49     <properties>
50
51         <!-- PROJECT SETTINGS-->
52         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
53         <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
54         <main.basedir>${project.basedir}</main.basedir>
55
56         <!--TEST SETTINGS -->
57         <surefire.redirectTestOutputToFile>true</surefire.redirectTestOutputToFile>
58
59         <!-- PROJECT DEPENDENCIES -->
60         <cdap.version>4.1.2</cdap.version>
61         <cask.common.version>0.7.1</cask.common.version>
62         <hadoop.version>2.3.0</hadoop.version>
63         <spark.version>1.6.1</spark.version>
64         <!-- NOTE: Jackson version should match spark version jackson dependency -->
65         <jackson.json.version>2.4.4</jackson.json.version>
66         <netty.http.version>0.16.0</netty.http.version>
67         <gson.version>2.2.4</gson.version>
68         <guava.version>13.0.1</guava.version>
69         <guice.version>3.0</guice.version>
70         <slf4j.version>1.7.5</slf4j.version>
71         <logback.version>1.0.9</logback.version>
72         <findbugs.jsr305.version>2.0.1</findbugs.jsr305.version>
73         <findbugs.annotations.version>3.0.0</findbugs.annotations.version>
74         <lombok.version>1.16.10</lombok.version>
75         <jedis.version>2.9.0</jedis.version>
76         <json.path.version>2.2.0</json.path.version>
77         <quartz.version>2.2.0</quartz.version>
78         <httpclient.version>4.5.2</httpclient.version>
79         <commons.lang3.version>3.5</commons.lang3.version>
80
81
82         <!--TESTING DEPENDENCIES -->
83         <junit.version>4.12</junit.version>
84         <jayway.jsonpath.version>2.2.0</jayway.jsonpath.version>
85         <jsonassert.version>1.4.0</jsonassert.version>
86         <mockito.version>2.5.7</mockito.version>
87         <cucumber.version>1.2.5</cucumber.version>
88
89
90         <!-- PLUGINS VERSIONS -->
91         <compiler.plugin.version>3.3</compiler.plugin.version>
92         <surefire.plugin.version>2.19.1</surefire.plugin.version>
93         <failsafe.plugin.version>2.19.1</failsafe.plugin.version>
94         <bundle.plugin.version>2.5.4</bundle.plugin.version>
95         <autorun.plugin.version>1.7</autorun.plugin.version>
96         <eclipe.plugin.version>2.10</eclipe.plugin.version>
97         <findbugs.plugin.version>3.0.2</findbugs.plugin.version>
98         <pmd.plugin.version>3.5</pmd.plugin.version>
99         <surefire.report.plugin.version>2.19.1</surefire.report.plugin.version>
100         <checkstyle.plugin.version>2.16</checkstyle.plugin.version>
101         <javadoc.plugin.version>2.10.4</javadoc.plugin.version>
102         <source.plugin.version>2.4</source.plugin.version>
103         <jar.plugin.version>2.4</jar.plugin.version>
104         <lombok.plugin.version>1.16.10.0</lombok.plugin.version>
105         <jgitflow.plugin.version>1.0-m5.1</jgitflow.plugin.version>
106         <gitcommitid.plugin.version>2.2.3</gitcommitid.plugin.version>
107         <maven.site.plugin>3.5.1</maven.site.plugin>
108         <jxr.plugin.version>2.5</jxr.plugin.version>
109         <project.info.reports.plugin.version>2.7</project.info.reports.plugin.version>
110
111         <!--PLUGIN SETTINGS -->
112         <compiler.source.version>1.7</compiler.source.version>
113         <compiler.target.version>1.7</compiler.target.version>
114         <unit.test.pattern>**/*Test.java</unit.test.pattern>
115         <skip.unit.tests>false</skip.unit.tests>
116         <integration.test.pattern>**/*IT.java</integration.test.pattern>
117         <skip.integration.tests>true</skip.integration.tests>
118         <pmd.violation.buildfail>true</pmd.violation.buildfail>
119         <findbugs.failOnError>true</findbugs.failOnError>
120         <checkstyle.failOnViolation>true</checkstyle.failOnViolation>
121         <checkstyle.file.name>checkstyle.xml</checkstyle.file.name>
122         <checkstyle.suppression.file.name>suppressions.xml</checkstyle.suppression.file.name>       
123         <dependency.locations.enabled>false</dependency.locations.enabled>
124         <nexusproxy>https://nexus.onap.org</nexusproxy>
125         <snapshots.path>content/repositories/snapshots/</snapshots.path>
126         <releases.path>content/repositories/releases/</releases.path>
127         <site.path>
128             content/sites/site/org/onap/dcaegen2/analytics/tca/${project.artifactId}/${project.version}
129         </site.path>
130     </properties>
131
132     <dependencyManagement>
133
134         <dependencies>
135
136             <!-- CDAP -->
137             <dependency>
138                 <groupId>co.cask.cdap</groupId>
139                 <artifactId>cdap-api</artifactId>
140                 <version>${cdap.version}</version>
141                 <scope>provided</scope>
142             </dependency>
143
144             <dependency>
145                 <groupId>co.cask.cdap</groupId>
146                 <artifactId>cdap-etl-api</artifactId>
147                 <version>${cdap.version}</version>
148                 <scope>provided</scope>
149             </dependency>
150
151             <dependency>
152                 <groupId>co.cask.cdap</groupId>
153                 <artifactId>cdap-etl-api-spark</artifactId>
154                 <version>${cdap.version}</version>
155                 <scope>provided</scope>
156             </dependency>
157
158             <dependency>
159                 <groupId>co.cask.cdap</groupId>
160                 <artifactId>cdap-etl-realtime</artifactId>
161                 <version>${cdap.version}</version>
162                 <scope>provided</scope>
163             </dependency>
164
165             <dependency>
166                 <groupId>co.cask.cdap</groupId>
167                 <artifactId>cdap-data-pipeline</artifactId>
168                 <version>${cdap.version}</version>
169                 <scope>provided</scope>
170             </dependency>
171
172             <dependency>
173                 <groupId>co.cask.cdap</groupId>
174                 <artifactId>cdap-data-streams</artifactId>
175                 <version>${cdap.version}</version>
176                 <scope>provided</scope>
177             </dependency>
178
179             <dependency>
180                 <groupId>org.apache.spark</groupId>
181                 <artifactId>spark-streaming_2.10</artifactId>
182                 <version>${spark.version}</version>
183                 <scope>provided</scope>
184             </dependency>
185
186             <dependency>
187                 <groupId>co.cask.http</groupId>
188                 <artifactId>netty-http</artifactId>
189                 <version>${netty.http.version}</version>
190             </dependency>
191
192
193             <dependency>
194                 <groupId>co.cask.common</groupId>
195                 <artifactId>common-http</artifactId>
196                 <version>${cask.common.version}</version>
197                 <!-- exclude this, otherwise an old version of asm will get pulled in -->
198                 <exclusions>
199                     <exclusion>
200                         <groupId>org.ow2.asm</groupId>
201                         <artifactId>asm-all</artifactId>
202                     </exclusion>
203                 </exclusions>
204             </dependency>
205
206             <!-- HADOOP -->
207             <dependency>
208                 <groupId>org.apache.hadoop</groupId>
209                 <artifactId>hadoop-common</artifactId>
210                 <version>${hadoop.version}</version>
211                 <scope>provided</scope>
212                 <exclusions>
213                     <exclusion>
214                         <groupId>commons-logging</groupId>
215                         <artifactId>commons-logging</artifactId>
216                     </exclusion>
217                     <exclusion>
218                         <groupId>log4j</groupId>
219                         <artifactId>log4j</artifactId>
220                     </exclusion>
221                     <exclusion>
222                         <groupId>org.slf4j</groupId>
223                         <artifactId>slf4j-log4j12</artifactId>
224                     </exclusion>
225                     <exclusion>
226                         <groupId>org.apache.avro</groupId>
227                         <artifactId>avro</artifactId>
228                     </exclusion>
229                     <exclusion>
230                         <groupId>org.apache.zookeeper</groupId>
231                         <artifactId>zookeeper</artifactId>
232                     </exclusion>
233                     <exclusion>
234                         <artifactId>guava</artifactId>
235                         <groupId>com.google.guava</groupId>
236                     </exclusion>
237                     <exclusion>
238                         <artifactId>jersey-core</artifactId>
239                         <groupId>com.sun.jersey</groupId>
240                     </exclusion>
241                     <exclusion>
242                         <artifactId>jersey-json</artifactId>
243                         <groupId>com.sun.jersey</groupId>
244                     </exclusion>
245                     <exclusion>
246                         <artifactId>jersey-server</artifactId>
247                         <groupId>com.sun.jersey</groupId>
248                     </exclusion>
249                     <exclusion>
250                         <artifactId>servlet-api</artifactId>
251                         <groupId>javax.servlet</groupId>
252                     </exclusion>
253                     <exclusion>
254                         <groupId>org.mortbay.jetty</groupId>
255                         <artifactId>jetty</artifactId>
256                     </exclusion>
257                     <exclusion>
258                         <groupId>org.mortbay.jetty</groupId>
259                         <artifactId>jetty-util</artifactId>
260                     </exclusion>
261                     <exclusion>
262                         <artifactId>jasper-compiler</artifactId>
263                         <groupId>tomcat</groupId>
264                     </exclusion>
265                     <exclusion>
266                         <artifactId>jasper-runtime</artifactId>
267                         <groupId>tomcat</groupId>
268                     </exclusion>
269                     <exclusion>
270                         <artifactId>jsp-api</artifactId>
271                         <groupId>javax.servlet.jsp</groupId>
272                     </exclusion>
273                     <exclusion>
274                         <artifactId>slf4j-api</artifactId>
275                         <groupId>org.slf4j</groupId>
276                     </exclusion>
277                     <exclusion>
278                         <artifactId>httpcore</artifactId>
279                         <groupId>org.apache.httpcomponents</groupId>
280                     </exclusion>
281                 </exclusions>
282             </dependency>
283
284             <dependency>
285                 <groupId>org.apache.hadoop</groupId>
286                 <artifactId>hadoop-mapreduce-client-core</artifactId>
287                 <version>${hadoop.version}</version>
288                 <scope>provided</scope>
289                 <exclusions>
290                     <exclusion>
291                         <groupId>asm</groupId>
292                         <artifactId>asm</artifactId>
293                     </exclusion>
294                     <exclusion>
295                         <groupId>io.netty</groupId>
296                         <artifactId>netty</artifactId>
297                     </exclusion>
298                     <exclusion>
299                         <groupId>org.slf4j</groupId>
300                         <artifactId>slf4j-log4j12</artifactId>
301                     </exclusion>
302                 </exclusions>
303             </dependency>
304
305
306             <!-- SPARK -->
307             <dependency>
308                 <groupId>org.apache.spark</groupId>
309                 <artifactId>spark-core_2.10</artifactId>
310                 <version>${spark.version}</version>
311                 <scope>provided</scope>
312                 <exclusions>
313                     <exclusion>
314                         <groupId>asm</groupId>
315                         <artifactId>asm</artifactId>
316                     </exclusion>
317                     <exclusion>
318                         <groupId>org.slf4j</groupId>
319                         <artifactId>slf4j-log4j12</artifactId>
320                     </exclusion>
321                     <exclusion>
322                         <groupId>log4j</groupId>
323                         <artifactId>log4j</artifactId>
324                     </exclusion>
325                     <exclusion>
326                         <groupId>org.apache.hadoop</groupId>
327                         <artifactId>hadoop-client</artifactId>
328                     </exclusion>
329                     <exclusion>
330                         <groupId>com.esotericsoftware.reflectasm</groupId>
331                         <artifactId>reflectasm</artifactId>
332                     </exclusion>
333                     <exclusion>
334                         <groupId>org.apache.curator</groupId>
335                         <artifactId>curator-recipes</artifactId>
336                     </exclusion>
337                     <exclusion>
338                         <groupId>org.tachyonproject</groupId>
339                         <artifactId>tachyon-client</artifactId>
340                     </exclusion>
341                     <exclusion>
342                         <groupId>org.scala-lang</groupId>
343                         <artifactId>scala-compiler</artifactId>
344                     </exclusion>
345                     <exclusion>
346                         <groupId>org.eclipse.jetty.orbit</groupId>
347                         <artifactId>javax.servlet</artifactId>
348                     </exclusion>
349                 </exclusions>
350             </dependency>
351
352             <!-- LOGGING -->
353             <dependency>
354                 <groupId>org.slf4j</groupId>
355                 <artifactId>slf4j-api</artifactId>
356                 <version>${slf4j.version}</version>
357                 <scope>provided</scope>
358             </dependency>
359
360             <dependency>
361                 <groupId>ch.qos.logback</groupId>
362                 <artifactId>logback-core</artifactId>
363                 <version>${logback.version}</version>
364                 <scope>provided</scope>
365             </dependency>
366
367             <dependency>
368                 <groupId>ch.qos.logback</groupId>
369                 <artifactId>logback-classic</artifactId>
370                 <version>${logback.version}</version>
371                 <scope>provided</scope>
372             </dependency>
373
374             <!-- UTILITIES -->
375             <dependency>
376                 <groupId>com.google.guava</groupId>
377                 <artifactId>guava</artifactId>
378                 <version>${guava.version}</version>
379             </dependency>
380
381             <dependency>
382                 <groupId>com.google.code.gson</groupId>
383                 <artifactId>gson</artifactId>
384                 <version>${gson.version}</version>
385                 <scope>provided</scope>
386             </dependency>
387             <dependency>
388                 <groupId>org.apache.commons</groupId>
389                 <artifactId>commons-lang3</artifactId>
390                 <version>${commons.lang3.version}</version>
391             </dependency>
392
393             <!-- FIND BUGS -->
394             <dependency>
395                 <groupId>com.google.code.findbugs</groupId>
396                 <artifactId>jsr305</artifactId>
397                 <version>${findbugs.jsr305.version}</version>
398                 <scope>provided</scope>
399             </dependency>
400             <dependency>
401                 <groupId>com.google.code.findbugs</groupId>
402                 <artifactId>annotations</artifactId>
403                 <version>${findbugs.annotations.version}</version>
404                 <scope>provided</scope>
405             </dependency>
406
407             <!-- JACKSON JSON -->
408             <dependency>
409                 <groupId>com.fasterxml.jackson.core</groupId>
410                 <artifactId>jackson-core</artifactId>
411                 <version>${jackson.json.version}</version>
412             </dependency>
413             <dependency>
414                 <groupId>com.fasterxml.jackson.core</groupId>
415                 <artifactId>jackson-databind</artifactId>
416                 <version>${jackson.json.version}</version>
417             </dependency>
418             <dependency>
419                 <groupId>com.fasterxml.jackson.core</groupId>
420                 <artifactId>jackson-annotations</artifactId>
421                 <version>${jackson.json.version}</version>
422             </dependency>
423
424             <!-- JSON PATH -->
425             <dependency>
426                 <groupId>com.jayway.jsonpath</groupId>
427                 <artifactId>json-path</artifactId>
428                 <version>${json.path.version}</version>
429             </dependency>
430
431             <!-- CODE GENERATION -->
432             <dependency>
433                 <groupId>org.projectlombok</groupId>
434                 <artifactId>lombok</artifactId>
435                 <version>${lombok.version}</version>
436                 <scope>provided</scope>
437             </dependency>
438
439             <!-- DISTRIBUTED CACHING -->
440             <dependency>
441                 <groupId>redis.clients</groupId>
442                 <artifactId>jedis</artifactId>
443                 <version>${jedis.version}</version>
444             </dependency>
445
446             <!-- DEPENDENCY INJECTION -->
447             <dependency>
448                 <groupId>com.google.inject</groupId>
449                 <artifactId>guice</artifactId>
450                 <version>${guice.version}</version>
451             </dependency>
452             <dependency>
453                 <groupId>com.google.inject.extensions</groupId>
454                 <artifactId>guice-assistedinject</artifactId>
455                 <version>${guice.version}</version>
456             </dependency>
457             <dependency>
458                 <groupId>com.google.inject.extensions</groupId>
459                 <artifactId>guice-multibindings</artifactId>
460                 <version>${guice.version}</version>
461             </dependency>
462
463             <!-- SCHEDULER -->
464             <dependency>
465                 <groupId>org.quartz-scheduler</groupId>
466                 <artifactId>quartz</artifactId>
467                 <version>${quartz.version}</version>
468             </dependency>
469
470             <!-- HTTP CLIENT -->
471             <dependency>
472                 <groupId>org.apache.httpcomponents</groupId>
473                 <artifactId>httpclient</artifactId>
474                 <version>${httpclient.version}</version>
475             </dependency>
476
477
478             <!-- TEST DEPENDENCIES -->
479             <dependency>
480                 <groupId>co.cask.cdap</groupId>
481                 <artifactId>cdap-unit-test</artifactId>
482                 <version>${cdap.version}</version>
483                 <scope>test</scope>
484                 <exclusions>
485                     <exclusion>
486                         <groupId>co.cask.cdap</groupId>
487                         <artifactId>cdap-explore-jdbc</artifactId>
488                     </exclusion>
489                 </exclusions>
490             </dependency>
491
492             <dependency>
493                 <groupId>co.cask.cdap</groupId>
494                 <artifactId>hydrator-test</artifactId>
495                 <version>${cdap.version}</version>
496                 <scope>test</scope>
497             </dependency>
498
499             <dependency>
500                 <groupId>junit</groupId>
501                 <artifactId>junit</artifactId>
502                 <version>${junit.version}</version>
503                 <scope>test</scope>
504             </dependency>
505
506             <dependency>
507                 <groupId>org.mockito</groupId>
508                 <artifactId>mockito-core</artifactId>
509                 <version>${mockito.version}</version>
510             </dependency>
511
512             <dependency>
513                 <groupId>com.jayway.jsonpath</groupId>
514                 <artifactId>json-path-assert</artifactId>
515                 <version>${jayway.jsonpath.version}</version>
516                 <scope>test</scope>
517             </dependency>
518
519             <dependency>
520                 <groupId>org.skyscreamer</groupId>
521                 <artifactId>jsonassert</artifactId>
522                 <version>${jsonassert.version}</version>
523                 <scope>test</scope>
524             </dependency>
525
526             <!-- BDD TEST DEPENDENCIES -->
527             <dependency>
528                 <groupId>info.cukes</groupId>
529                 <artifactId>cucumber-java</artifactId>
530                 <version>${cucumber.version}</version>
531                 <scope>test</scope>
532             </dependency>
533
534             <dependency>
535                 <groupId>info.cukes</groupId>
536                 <artifactId>cucumber-guice</artifactId>
537                 <version>${cucumber.version}</version>
538                 <scope>test</scope>
539             </dependency>
540
541             <dependency>
542                 <groupId>info.cukes</groupId>
543                 <artifactId>cucumber-junit</artifactId>
544                 <version>${cucumber.version}</version>
545                 <scope>test</scope>
546             </dependency>
547
548         </dependencies>
549         
550     </dependencyManagement>
551
552
553     <build>
554
555         <resources>
556             <resource>
557                 <directory>${project.basedir}/src/main/resources</directory>
558             </resource>
559             <resource>
560                 <directory>${project.build.directory}/git</directory>
561             </resource>
562         </resources>
563
564         <extensions>
565             <extension>
566                 <groupId>org.apache.maven.wagon</groupId>
567                 <artifactId>wagon-webdav-jackrabbit</artifactId>
568                 <version>1.0-beta-7</version>
569             </extension>
570         </extensions>
571
572         <pluginManagement>
573
574             <plugins>
575
576                 <!-- COMPILER PLUGIN -->
577                 <plugin>
578                     <groupId>org.apache.maven.plugins</groupId>
579                     <artifactId>maven-compiler-plugin</artifactId>
580                     <version>${compiler.plugin.version}</version>
581                     <configuration>
582                         <source>${compiler.target.version}</source>
583                         <target>${compiler.source.version}</target>
584                     </configuration>
585                 </plugin>
586
587                 <!-- MAVEN SOURCE PLUGIN -->
588                 <plugin>
589                     <groupId>org.apache.maven.plugins</groupId>
590                     <artifactId>maven-source-plugin</artifactId>
591                     <version>${source.plugin.version}</version>
592                     <configuration>
593                         <excludeResources>true</excludeResources>
594                     </configuration>
595                     <executions>
596                         <execution>
597                             <id>attach-sources</id>
598                             <phase>verify</phase>
599                             <goals>
600                                 <goal>jar-no-fork</goal>
601                             </goals>
602                         </execution>
603                     </executions>
604                 </plugin>
605
606
607                 <!-- MAVEN JAVADOC PLUGIN -->
608                 <plugin>
609                     <groupId>org.apache.maven.plugins</groupId>
610                     <artifactId>maven-javadoc-plugin</artifactId>
611                     <version>${javadoc.plugin.version}</version>
612                     <configuration>
613                         <!-- minimize console output messages -->
614                         <quiet>true</quiet>
615                         <verbose>false</verbose>
616                         <useStandardDocletOptions>false</useStandardDocletOptions>
617                     </configuration>
618                     <executions>
619                         <execution>
620                             <id>aggregate</id>
621                             <phase>site</phase>
622                             <goals>
623                                 <goal>aggregate</goal>
624                             </goals>
625                         </execution>
626                         <execution>
627                             <id>attach-javadoc</id>
628                             <goals>
629                                 <goal>jar</goal>
630                             </goals>
631                         </execution>
632                     </executions>
633                 </plugin>
634
635                 <!-- MAVEN BUNDLE PLUGIN -->
636                 <plugin>
637                     <groupId>org.apache.felix</groupId>
638                     <artifactId>maven-bundle-plugin</artifactId>
639                     <version>${bundle.plugin.version}</version>
640                     <extensions>true</extensions>
641                     <configuration>
642                         <instructions>
643                             <Embed-Dependency>*;inline=false;scope=compile</Embed-Dependency>
644                             <Embed-Transitive>true</Embed-Transitive>
645                             <Embed-Directory>lib</Embed-Directory>
646                         </instructions>
647                     </configuration>
648                     <executions>
649                         <execution>
650                             <id>Bundling CDAP Jar</id>
651                             <phase>package</phase>
652                             <goals>
653                                 <goal>bundle</goal>
654                             </goals>
655                         </execution>
656                     </executions>
657                 </plugin>
658
659                 <!-- MAVEN AUTO RUN PLUGIN -->
660                 <plugin>
661                     <groupId>org.apache.maven.plugins</groupId>
662                     <artifactId>maven-antrun-plugin</artifactId>
663                     <version>${autorun.plugin.version}</version>
664                 </plugin>
665
666                 <!-- SUREFIRE TEST PLUGIN -->
667                 <plugin>
668                     <groupId>org.apache.maven.plugins</groupId>
669                     <artifactId>maven-surefire-plugin</artifactId>
670                     <version>${surefire.plugin.version}</version>
671                     <configuration>
672                         <skipTests>${skip.unit.tests}</skipTests>
673                         <argLine>-Xmx2048m -Djava.awt.headless=true -XX:+UseConcMarkSweepGC
674                             -XX:OnOutOfMemoryError="kill -9 %p" -XX:+HeapDumpOnOutOfMemoryError
675                         </argLine>
676                         <redirectTestOutputToFile>${surefire.redirectTestOutputToFile}</redirectTestOutputToFile>
677                         <parallel>methods</parallel>
678                         <threadCount>8</threadCount>
679                         <forkCount>8</forkCount>
680                         <reuseForks>true</reuseForks>
681                         <reportFormat>xml</reportFormat>
682                         <trimStackTrace>false</trimStackTrace>
683                         <systemPropertyVariables>
684                             <java.io.tmpdir>${project.build.directory}</java.io.tmpdir>
685                             <logback.configurationFile>
686                                 ${basedir}/src/test/resources/logback-test.xml
687                             </logback.configurationFile>
688                             <HADOOP_HOME>${project.build.directory}</HADOOP_HOME>
689                         </systemPropertyVariables>
690                         <includes>
691                             <include>${unit.test.pattern}</include>
692                         </includes>
693                         <excludes>
694                             <exclude>${integration.test.pattern}</exclude>
695                         </excludes>
696                         <!-- Sets the VM argument line used when unit tests are run. -->
697                         <argLine>${surefireArgLine}</argLine>
698                     </configuration>
699                     <dependencies>
700                         <dependency>
701                             <groupId>org.apache.maven.surefire</groupId>
702                             <artifactId>surefire-junit47</artifactId>
703                             <version>${surefire.plugin.version}</version>
704                         </dependency>
705                     </dependencies>
706                 </plugin>
707
708                 <!-- FAIL SAFE PLUGIN FOR INTEGRATION TEST -->
709                 <plugin>
710                     <groupId>org.apache.maven.plugins</groupId>
711                     <artifactId>maven-failsafe-plugin</artifactId>
712                     <version>${failsafe.plugin.version}</version>
713                     <executions>
714                         <execution>
715                             <id>integration-tests</id>
716                             <goals>
717                                 <goal>integration-test</goal>
718                                 <goal>verify</goal>
719                             </goals>
720                             <configuration>
721                                 <skipTests>${skip.integration.tests}</skipTests>
722                                 <!-- Sets the VM argument line used when integration tests are run. -->
723                                 <!--suppress MavenModelInspection -->
724                                 <argLine>${failsafeArgLine}</argLine>
725                             </configuration>
726                         </execution>
727                     </executions>
728                 </plugin>
729
730                 <!-- FIND BUGS (STATIC CODE ANALYSIS) PLUGIN -->
731                 <plugin>
732                     <groupId>org.codehaus.mojo</groupId>
733                     <artifactId>findbugs-maven-plugin</artifactId>
734                     <version>${findbugs.plugin.version}</version>
735                     <configuration>
736                         <effort>Max</effort>
737                         <threshold>Low</threshold>
738                         <xmlOutput>true</xmlOutput>
739                         <!-- BUILD FAIL ON FINDBUGS ERRORS -->
740                         <failOnError>${findbugs.failOnError}</failOnError>
741                         <excludeFilterFile>${main.basedir}/findbugs-exclude.xml</excludeFilterFile>
742                         <outputDirectory>${project.reporting.outputDirectory}/findbugs</outputDirectory>
743                         <findbugsXmlOutputDirectory>${project.reporting.outputDirectory}/findbugs
744                         </findbugsXmlOutputDirectory>
745                     </configuration>
746                     <executions>
747                         <execution>
748                             <id>analyze-compile</id>
749                             <phase>compile</phase>
750                             <goals>
751                                 <goal>check</goal>
752                             </goals>
753                         </execution>
754                     </executions>
755                 </plugin>
756
757                 <!-- PMD PLUGIN SETUP -->
758                 <plugin>
759                     <groupId>org.apache.maven.plugins</groupId>
760                     <artifactId>maven-pmd-plugin</artifactId>
761                     <version>${pmd.plugin.version}</version>
762                     <configuration>
763                         <sourceEncoding>${project.build.sourceEncoding}</sourceEncoding>
764                         <targetJdk>${compiler.target.version}</targetJdk>
765                         <linkXRef>false</linkXRef>
766                         <excludes>
767                             <!-- IGNORE PMD & CPD ANALYTICS MODEL FACADE OBJECTS -->
768                             <exclude>**/model/facade/**/*.java</exclude>
769                         </excludes>
770                         <!-- BUILD FAIL ON PMD VIOLATION -->
771                         <failOnViolation>${pmd.violation.buildfail}</failOnViolation>
772                         <targetDirectory>${project.reporting.outputDirectory}/pmd</targetDirectory>
773                     </configuration>
774                     <executions>
775                         <execution>
776                             <id>pmd-check</id>
777                             <goals>
778                                 <goal>check</goal>
779                             </goals>
780                             <configuration>
781                                 <printFailingErrors>true</printFailingErrors>
782                                 <excludeFromFailureFile>${main.basedir}/pmd-exclude.properties</excludeFromFailureFile>
783                             </configuration>
784                         </execution>
785                         <execution>
786                             <id>cpd-check</id>
787                             <goals>
788                                 <goal>cpd-check</goal>
789                             </goals>
790                             <configuration>
791                                 <printFailingErrors>true</printFailingErrors>
792                                 <excludeFromFailureFile>${main.basedir}/cpd-exclude.properties</excludeFromFailureFile>
793                             </configuration>
794                         </execution>
795                     </executions>
796                 </plugin>
797
798                 <!-- CHECKSTYLE PLUGIN -->
799                 <plugin>
800                     <groupId>org.apache.maven.plugins</groupId>
801                     <artifactId>maven-checkstyle-plugin</artifactId>
802                     <version>${checkstyle.plugin.version}</version>
803                     <executions>
804                         <execution>
805                             <id>validate</id>
806                             <phase>validate</phase>
807                             <configuration>
808                                 <configLocation>${checkstyle.file.name}</configLocation>
809                                 <suppressionsLocation>${checkstyle.suppression.file.name}</suppressionsLocation>
810                                 <encoding>UTF-8</encoding>
811                                 <consoleOutput>true</consoleOutput>
812                                 <!-- BUILD FAIL ON CHECKSTYLE VIOLATION -->
813                                 <failOnViolation>${checkstyle.failOnViolation}</failOnViolation>
814                                 <includeTestSourceDirectory>true</includeTestSourceDirectory>
815                                 <outputFile>${project.reporting.outputDirectory}/checkstyle</outputFile>
816                             </configuration>
817                             <goals>
818                                 <goal>check</goal>
819                             </goals>
820                         </execution>
821                     </executions>
822                     <dependencies>
823                         <dependency>
824                             <groupId>com.puppycrawl.tools</groupId>
825                             <artifactId>checkstyle</artifactId>
826                             <version>6.19</version>
827                         </dependency>
828                     </dependencies>
829                 </plugin>
830
831                 <!-- ECLIPSE PLUGIN -->
832                 <plugin>
833                     <groupId>org.apache.maven.plugins</groupId>
834                     <artifactId>maven-eclipse-plugin</artifactId>
835                     <version>${eclipe.plugin.version}</version>
836                 </plugin>
837
838
839                 <!-- LOMBOK PLUGIN -->
840                 <plugin>
841                     <groupId>org.projectlombok</groupId>
842                     <artifactId>lombok-maven-plugin</artifactId>
843                     <version>${lombok.plugin.version}</version>
844                     <executions>
845                         <execution>
846                             <id>delombok</id>
847                             <phase>generate-sources</phase>
848                             <goals>
849                                 <goal>delombok</goal>
850                             </goals>
851                             <configuration>
852                                 <addOutputDirectory>false</addOutputDirectory>
853                                 <sourceDirectory>src/main/java</sourceDirectory>
854                             </configuration>
855                         </execution>
856                     </executions>
857                 </plugin>
858
859                 <!-- GIT COMMIT ID PLUGIN -->
860                 <plugin>
861                     <groupId>pl.project13.maven</groupId>
862                     <artifactId>git-commit-id-plugin</artifactId>
863                     <version>${gitcommitid.plugin.version}</version>
864                     <executions>
865                         <execution>
866                             <id>generate-git-properties</id>
867                             <phase>generate-resources</phase>
868                             <goals>
869                                 <goal>revision</goal>
870                             </goals>
871                             <configuration>
872                                 <failOnNoGitDirectory>false</failOnNoGitDirectory>
873                                 <generateGitPropertiesFile>true</generateGitPropertiesFile>
874                                 <generateGitPropertiesFilename>
875                                     ${project.build.directory}/git/git.properties
876                                 </generateGitPropertiesFilename>
877                             </configuration>
878                         </execution>
879                     </executions>
880                 </plugin>
881
882                 <!-- JGIT FLOW PLUGIN -->
883                 <plugin>
884                     <groupId>external.atlassian.jgitflow</groupId>
885                     <artifactId>jgitflow-maven-plugin</artifactId>
886                     <version>${jgitflow.plugin.version}</version>
887                     <configuration>
888                         <!-- Enable this to push to origin using SSH keys -->
889                         <enableSshAgent>true</enableSshAgent>
890                         <!-- Keep your maven sub modules at the same version as the parent POM -->
891                         <autoVersionSubmodules>true</autoVersionSubmodules>
892                         <!--
893                           Pushing in-development features to origin allows all devs to see what each other
894                           are working on
895                         -->
896                         <pushFeatures>true</pushFeatures>
897                         <!--
898                           This allows the CI server (e.g. Jenkins) to automatically push new releases to
899                           origin; you can then either manually deploy them or, if you are doing Continuous
900                           Deployments, auto-deploy them to prod
901                         -->
902                         <pushReleases>true</pushReleases>
903                         <!--
904                           Hot Fixes should be pushed to origin as well so that any dev can pick them up
905                         -->
906                         <pushHotfixes>true</pushHotfixes>
907                         <!--
908                           Prevents deployments from dev workstations so that they can be done by a CI
909                           server
910                         -->
911                         <flowInitContext>
912                             <masterBranchName>master</masterBranchName>
913                             <developBranchName>develop</developBranchName>
914                             <featureBranchPrefix>feature</featureBranchPrefix>
915                             <releaseBranchPrefix>release</releaseBranchPrefix>
916                             <hotfixBranchPrefix>hotfix</hotfixBranchPrefix>
917                         </flowInitContext>
918                         <noDeploy>true</noDeploy>
919                     </configuration>
920                 </plugin>
921
922                 <!-- JAR PLUGIN -->
923                 <plugin>
924                     <groupId>org.apache.maven.plugins</groupId>
925                     <artifactId>maven-jar-plugin</artifactId>
926                     <version>${jar.plugin.version}</version>
927                     <configuration>
928                         <archive>
929                             <manifest>
930                                 <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
931                             </manifest>
932                             <manifestEntries>
933                                 <Implementation-Build-Version>${project.version}</Implementation-Build-Version>
934                             </manifestEntries>
935                         </archive>
936                     </configuration>
937                 </plugin>
938
939                 <plugin>
940                     <groupId>org.apache.maven.plugins</groupId>
941                     <artifactId>maven-site-plugin</artifactId>
942                     <version>${maven.site.plugin}</version>
943                 </plugin>
944
945                 <plugin>
946                     <groupId>org.apache.maven.plugins</groupId>
947                     <artifactId>maven-jxr-plugin</artifactId>
948                     <version>${jxr.plugin.version}</version>
949                 </plugin>
950
951                 <plugin>
952                     <groupId>org.apache.maven.plugins</groupId>
953                     <artifactId>maven-project-info-reports-plugin</artifactId>
954                     <version>${project.info.reports.plugin.version}</version>
955                     <configuration>
956                         <dependencyDetailsEnabled>false</dependencyDetailsEnabled>
957                         <dependencyLocationsEnabled>false</dependencyLocationsEnabled>
958                     </configuration>
959                 </plugin>
960
961                 <plugin>
962                     <groupId>org.apache.maven.plugins</groupId>
963                     <artifactId>maven-surefire-report-plugin</artifactId>
964                     <version>${surefire.report.plugin.version}</version>
965                 </plugin>
966
967             </plugins>
968
969         </pluginManagement>
970
971         <plugins>
972
973             <plugin>
974                 <groupId>org.apache.maven.plugins</groupId>
975                 <artifactId>maven-compiler-plugin</artifactId>
976             </plugin>
977
978             <plugin>
979                 <groupId>org.apache.maven.plugins</groupId>
980                 <artifactId>maven-jar-plugin</artifactId>
981             </plugin>
982
983             <plugin>
984                 <groupId>org.apache.maven.plugins</groupId>
985                 <artifactId>maven-surefire-plugin</artifactId>
986             </plugin>
987
988             <plugin>
989                 <groupId>org.apache.maven.plugins</groupId>
990                 <artifactId>maven-failsafe-plugin</artifactId>
991             </plugin>
992
993             <plugin>
994                 <groupId>org.apache.maven.plugins</groupId>
995                 <artifactId>maven-source-plugin</artifactId>
996             </plugin>
997
998             <plugin>
999                 <groupId>org.apache.maven.plugins</groupId>
1000                 <artifactId>maven-javadoc-plugin</artifactId>
1001             </plugin>
1002
1003             <plugin>
1004                 <groupId>org.apache.maven.plugins</groupId>
1005                 <artifactId>maven-pmd-plugin</artifactId>
1006             </plugin>
1007
1008            <!--  <plugin>
1009                 <groupId>org.codehaus.mojo</groupId>
1010                 <artifactId>findbugs-maven-plugin</artifactId>
1011             </plugin>
1012  -->
1013             <plugin>
1014                 <groupId>org.apache.maven.plugins</groupId>
1015                 <artifactId>maven-checkstyle-plugin</artifactId>
1016                 <inherited>false</inherited>
1017             </plugin>
1018
1019             <plugin>
1020                 <groupId>external.atlassian.jgitflow</groupId>
1021                 <artifactId>jgitflow-maven-plugin</artifactId>
1022             </plugin>
1023
1024             <plugin>
1025                 <groupId>pl.project13.maven</groupId>
1026                 <artifactId>git-commit-id-plugin</artifactId>
1027             </plugin>
1028
1029         </plugins>
1030     </build>
1031
1032     <reporting>
1033         <plugins>
1034             <plugin>
1035                 <groupId>org.apache.maven.plugins</groupId>
1036                 <artifactId>maven-site-plugin</artifactId>
1037             </plugin>
1038             <plugin>
1039                 <groupId>org.apache.maven.plugins</groupId>
1040                 <artifactId>maven-checkstyle-plugin</artifactId>
1041                 <configuration>
1042                     <configLocation>${checkstyle.file.name}</configLocation>
1043                     <suppressionsLocation>${checkstyle.suppression.file.name}</suppressionsLocation>
1044                 </configuration>
1045             </plugin>
1046             <plugin>
1047                 <groupId>org.apache.maven.plugins</groupId>
1048                 <artifactId>maven-jxr-plugin</artifactId>
1049             </plugin>
1050             <plugin>
1051                 <groupId>org.apache.maven.plugins</groupId>
1052                 <artifactId>maven-pmd-plugin</artifactId>
1053             </plugin>
1054             <plugin>
1055                 <groupId>org.apache.maven.plugins</groupId>
1056                 <artifactId>maven-project-info-reports-plugin</artifactId>
1057             </plugin>
1058             <plugin>
1059                 <groupId>org.apache.maven.plugins</groupId>
1060                 <artifactId>maven-surefire-report-plugin</artifactId>
1061             </plugin>
1062         </plugins>
1063     </reporting>
1064
1065     <profiles>
1066         <profile>
1067             <id>doclint-java8-disable</id>
1068             <activation>
1069                 <jdk>[1.8,)</jdk>
1070             </activation>
1071             <build>
1072                 <plugins>
1073                     <plugin>
1074                         <groupId>org.apache.maven.plugins</groupId>
1075                         <artifactId>maven-javadoc-plugin</artifactId>
1076                         <configuration>
1077                             <additionalparam>-Xdoclint:none</additionalparam>
1078                         </configuration>
1079                     </plugin>
1080                 </plugins>
1081             </build>
1082         </profile>
1083     </profiles>
1084
1085     <modules>
1086         <module>dcae-analytics-test</module>
1087         <module>dcae-analytics-model</module>
1088         <module>dcae-analytics-common</module>
1089         <module>dcae-analytics-dmaap</module>
1090         <module>dcae-analytics-tca</module>
1091         <module>dcae-analytics-cdap-common</module>
1092         <module>dcae-analytics-cdap-tca</module>
1093         <module>dcae-analytics-cdap-plugins</module>
1094         <module>dcae-analytics-it</module>
1095         <module>dcae-analytics-aai</module>
1096     </modules>
1097
1098 </project>