de42c4ea68eb9691e12783aabdca1ae04225cfd3
[dmaap/messagerouter/msgrtr.git] / pom.xml
1 <!--
2   ============LICENSE_START==============================================
3         org.onap.dmaap
4         =======================================================================
5         Copyright © 2017 AT&T Intellectual Property. All rights reserved.
6         =======================================================================
7         Licensed under the Apache License, Version 2.0 (the "License");
8         you may not use this file except in compliance with the License.
9         You may obtain a copy of the License at
10
11                   http://www.apache.org/licenses/LICENSE-2.0
12
13         Unless required by applicable law or agreed to in writing, software
14         distributed under the License is distributed on an "AS IS" BASIS,
15         WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16         See the License for the specific language governing permissions and
17         limitations under the License.
18         ============LICENSE_END================================================
19         ECOMP is a trademark and service mark of AT&T Intellectual Property.
20 -->
21 <project xmlns="http://maven.apache.org/POM/4.0.0"
22   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
23   xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
24
25     <modelVersion>4.0.0</modelVersion>
26     <groupId>org.onap.dmaap.messagerouter.msgrtr</groupId>
27     <artifactId>msgrtr</artifactId>
28     <version>1.1.23-SNAPSHOT</version>
29     <packaging>jar</packaging>
30     <name>dmaap-messagerouter-msgrtr</name>
31     <description>Message Router - Restful interface built for kafka</description>
32
33     <parent>
34         <groupId>org.onap.oparent</groupId>
35         <artifactId>oparent</artifactId>
36         <version>3.2.0</version>
37     </parent>
38
39     <properties>
40         <onap.nexus.url>https://nexus.onap.org</onap.nexus.url>
41         <spring.version>3.2.18.RELEASE</spring.version>
42         <cxf.version>3.0.4</cxf.version>
43         <jstl.version>1.2</jstl.version>
44         <log4j.version>2.13.3</log4j.version>
45         <maven.compiler.target>11</maven.compiler.target>
46         <maven.compiler.source>11</maven.compiler.source>
47         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
48         <onap.nexus.url>https://nexus.onap.org</onap.nexus.url>
49         <sonar.language>java</sonar.language>
50         <sonar.skip>false</sonar.skip>
51         <sonar.surefire.reportsPath>${project.build.directory}/surefire-reports
52         </sonar.surefire.reportsPath>
53         <sonar.coverage.jacoco.xmlReportPaths>
54             ${project.reporting.outputDirectory}/jacoco-ut/jacoco.xml
55         </sonar.coverage.jacoco.xmlReportPaths>
56         <sonar.projectVersion>${project.version}</sonar.projectVersion>
57         <sonar.exclusions>**/gen/**,**/generated-sources/**,**/yang-gen**,**/pax/**
58         </sonar.exclusions>
59         <sitePath>
60             /content/sites/site/org/onap/dmaap/messagerouter/msgrtr/${project.artifactId}/${project.version}
61         </sitePath>
62         <nexusproxy>https://nexus.onap.org</nexusproxy>
63     </properties>
64
65     <!-- Distribution management -->
66     <!-- Currently all artifacts will be uploaded to att-public-group reposiotry on Maven Central -->
67     <distributionManagement>
68         <site>
69             <id>ecomp-site</id>
70             <url>dav:${nexusproxy}${sitePath}</url>
71         </site>
72     </distributionManagement>
73     <!-- End Distribution management -->
74
75     <licenses>
76         <license>
77             <name>Apache License Version 2.0</name>
78         </license>
79     </licenses>
80
81     <developers>
82         <developer>
83             <name>Rajashree</name>
84             <email></email>
85             <organization>ATT</organization>
86             <organizationUrl>www.att.com</organizationUrl>
87         </developer>
88         <developer>
89             <name>Ramkumar</name>
90             <email></email>
91             <organization>ATT</organization>
92             <organizationUrl>www.att.com</organizationUrl>
93         </developer>
94     </developers>
95
96     <dependencies>
97         <dependency>
98             <groupId>commons-collections</groupId>
99             <artifactId>commons-collections</artifactId>
100             <version>3.2.2</version>
101         </dependency>
102         <dependency>
103             <groupId>ch.qos.logback</groupId>
104             <artifactId>logback-core</artifactId>
105             <version>1.2.3</version>
106         </dependency>
107         <dependency>
108             <groupId>ch.qos.logback</groupId>
109             <artifactId>logback-classic</artifactId>
110             <version>1.2.3</version>
111         </dependency>
112         <dependency>
113             <groupId>org.grails</groupId>
114             <artifactId>grails-web</artifactId>
115             <version>2.5.4</version>
116             <exclusions>
117                 <exclusion>
118                     <groupId>org.grails</groupId>
119                     <artifactId>grails-web-jsp</artifactId>
120                 </exclusion>
121             </exclusions>
122         </dependency>
123         <dependency>
124             <groupId>org.grails</groupId>
125             <artifactId>grails-bootstrap</artifactId>
126             <version>4.0.1</version>
127             <scope>compile</scope>
128             <exclusions>
129                 <exclusion>
130                     <artifactId>ant</artifactId>
131                     <groupId>org.apache.ant</groupId>
132                 </exclusion>
133                 <exclusion>
134                     <artifactId>jna</artifactId>
135                     <groupId>net.java.dev.jna</groupId>
136                 </exclusion>
137                 <exclusion>
138                     <artifactId>ant-trax</artifactId>
139                     <groupId>org.apache.ant</groupId>
140                 </exclusion>
141                 <exclusion>
142                     <artifactId>gant_groovy1.8</artifactId>
143                     <groupId>org.codehaus.gant</groupId>
144                 </exclusion>
145                 <exclusion>
146                     <artifactId>ant-launcher</artifactId>
147                     <groupId>org.apache.ant</groupId>
148                 </exclusion>
149                 <exclusion>
150                     <artifactId>jline</artifactId>
151                     <groupId>jline</groupId>
152                 </exclusion>
153                 <exclusion>
154                     <artifactId>ivy</artifactId>
155                     <groupId>org.apache.ivy</groupId>
156                 </exclusion>
157                 <exclusion>
158                     <artifactId>jansi</artifactId>
159                     <groupId>org.fusesource.jansi</groupId>
160                 </exclusion>
161                 <exclusion>
162                     <artifactId>commons-logging</artifactId>
163                     <groupId>commons-logging</groupId>
164                 </exclusion>
165                 <exclusion>
166                     <artifactId>ant-junit</artifactId>
167                     <groupId>org.apache.ant</groupId>
168                 </exclusion>
169             </exclusions>
170         </dependency>
171         <dependency>
172             <groupId>org.springframework</groupId>
173             <artifactId>spring-test</artifactId>
174             <version>${spring.version}</version>
175             <scope>test</scope>
176         </dependency>
177         <dependency>
178             <groupId>org.codehaus.groovy</groupId>
179             <artifactId>groovy-all</artifactId>
180             <version>2.4.8</version>
181             <scope>compile</scope>
182             <exclusions>
183                 <exclusion>
184                     <artifactId>jline</artifactId>
185                     <groupId>jline</groupId>
186                 </exclusion>
187             </exclusions>
188         </dependency>
189         <dependency>
190             <groupId>commons-fileupload</groupId>
191             <artifactId>commons-fileupload</artifactId>
192             <version>1.4</version>
193         </dependency>
194         <dependency>
195             <groupId>junit</groupId>
196             <artifactId>junit</artifactId>
197             <version>4.12</version>
198             <scope>test</scope>
199         </dependency>
200         <dependency>
201             <groupId>com.att.aft</groupId>
202             <artifactId>dme2</artifactId>
203             <version>3.1.200-oss</version>
204             <exclusions>
205                 <exclusion>
206                     <groupId>javax.jms</groupId>
207                     <artifactId>jms</artifactId>
208                 </exclusion>
209             </exclusions>
210         </dependency>
211
212         <!-- slf4j logger -->
213         <dependency>
214             <groupId>org.slf4j</groupId>
215             <artifactId>slf4j-api</artifactId>
216             <version>1.7.28</version>
217         </dependency>
218         <!-- Log4j2 logger -->
219         <dependency>
220             <groupId>org.apache.logging.log4j</groupId>
221             <artifactId>log4j-api</artifactId>
222             <version>${log4j.version}</version>
223         </dependency>
224         <dependency>
225             <groupId>org.apache.logging.log4j</groupId>
226             <artifactId>log4j-core</artifactId>
227             <version>${log4j.version}</version>
228         </dependency>
229
230         <dependency>
231             <groupId>javax.inject</groupId>
232             <artifactId>javax.inject</artifactId>
233             <version>1</version>
234         </dependency>
235         <dependency>
236             <groupId>com.att.ajsc</groupId>
237             <artifactId>ajsc-core</artifactId>
238             <version>1.0.0</version>
239         </dependency>
240         <dependency>
241             <groupId>javax.ws.rs</groupId>
242             <artifactId>javax.ws.rs-api</artifactId>
243             <version>2.0.1</version>
244         </dependency>
245
246         <!-- Begin - Spring Dependencies for DI -->
247         <dependency>
248             <groupId>org.springframework</groupId>
249             <artifactId>spring-context</artifactId>
250             <version>${spring.version}</version>
251         </dependency>
252         <dependency>
253             <groupId>org.springframework</groupId>
254             <artifactId>spring-expression</artifactId>
255             <version>5.2.10.RELEASE</version>
256         </dependency>
257         <dependency>
258             <groupId>org.springframework</groupId>
259             <artifactId>spring-webmvc</artifactId>
260             <version>5.2.10.RELEASE</version>
261         </dependency>
262         <dependency>
263             <groupId>org.springframework</groupId>
264             <artifactId>spring-core</artifactId>
265             <version>5.2.10.RELEASE</version>
266         </dependency>
267         <dependency>
268             <groupId>javax.servlet</groupId>
269             <artifactId>javax.servlet-api</artifactId>
270             <version>4.0.1</version>
271             <scope>provided</scope>
272         </dependency>
273
274         <!-- ZooKeeper Library -->
275         <dependency>
276             <groupId>org.apache.zookeeper</groupId>
277             <artifactId>zookeeper</artifactId>
278             <version>3.4.14</version>
279         </dependency>
280
281         <!-- JSON libraries -->
282         <dependency>
283             <groupId>org.json</groupId>
284             <artifactId>json</artifactId>
285             <version>20160810</version>
286         </dependency>
287
288         <!-- Apache Kafka -->
289         <dependency>
290             <groupId>org.apache.kafka</groupId>
291             <artifactId>kafka_2.11</artifactId>
292             <version>0.11.0.3</version>
293         </dependency>
294         <dependency>
295             <groupId>commons-codec</groupId>
296             <artifactId>commons-codec</artifactId>
297             <version>1.15</version>
298         </dependency>
299         <dependency>
300             <groupId>com.google.guava</groupId>
301             <artifactId>guava</artifactId>
302             <version>30.1.1-jre</version>
303         </dependency>
304
305         <dependency>
306             <groupId>com.att.eelf</groupId>
307             <artifactId>eelf-core</artifactId>
308             <version>1.0.0</version>
309             <exclusions>
310                 <exclusion>
311                     <groupId>org.mockito</groupId>
312                     <artifactId>mockito-core</artifactId>
313                 </exclusion>
314                 <exclusion>
315                     <groupId>org.powermock</groupId>
316                     <artifactId>powermock-module-junit4</artifactId>
317                 </exclusion>
318                 <exclusion>
319                     <groupId>org.powermock</groupId>
320                     <artifactId>powermock-api-mockito</artifactId>
321                 </exclusion>
322             </exclusions>
323         </dependency>
324
325         <!-- our NSA server library -->
326         <dependency>
327             <groupId>com.att.nsa</groupId>
328             <artifactId>nsaServerLibrary</artifactId>
329             <version>1.0.10</version>
330             <exclusions>
331                 <exclusion>
332                     <groupId>org.apache.tomcat</groupId>
333                     <artifactId>tomcat-catalina</artifactId>
334                 </exclusion>
335                 <exclusion>
336                     <groupId>org.apache.tomcat.embed</groupId>
337                     <artifactId>tomcat-embed-core</artifactId>
338                 </exclusion>
339                 <exclusion>
340                     <groupId>org.apache.tomcat</groupId>
341                     <artifactId>tomcat-util</artifactId>
342                 </exclusion>
343                 <exclusion>
344                     <groupId>javax.mail</groupId>
345                     <artifactId>mail</artifactId>
346                 </exclusion>
347             </exclusions>
348         </dependency>
349         <dependency>
350             <groupId>com.att.nsa</groupId>
351             <artifactId>saToolkit</artifactId>
352             <version>0.0.1</version>
353         </dependency>
354         <dependency>
355             <groupId>com.sun.mail</groupId>
356             <artifactId>javax.mail</artifactId>
357             <version>1.6.0</version>
358             <exclusions>
359                 <!-- javax activation is part of the JDK now -->
360                 <exclusion>
361                     <groupId>javax.activation</groupId>
362                     <artifactId>activation</artifactId>
363                 </exclusion>
364             </exclusions>
365         </dependency>
366         <dependency>
367             <groupId>javax.annotation</groupId>
368             <artifactId>javax.annotation-api</artifactId>
369             <version>1.3.2</version>
370         </dependency>
371         <dependency>
372             <groupId>javax.xml.bind</groupId>
373             <artifactId>jaxb-api</artifactId>
374             <version>2.3.1</version>
375         </dependency>
376         <!-- sun.security.acl? -->
377
378
379         <!-- our base client library, for its command line tools -->
380         <dependency>
381             <groupId>com.att.nsa</groupId>
382             <artifactId>saClientLibrary</artifactId>
383             <version>0.0.1</version>
384             <exclusions>
385                 <exclusion>
386                     <groupId>org.apache.httpcomponents</groupId>
387                     <artifactId>httpclient</artifactId>
388                 </exclusion>
389                 <exclusion>
390                     <groupId>org.apache.httpcomponents</groupId>
391                     <artifactId>httpclient-cache</artifactId>
392                 </exclusion>
393             </exclusions>
394         </dependency>
395         <dependency>
396             <groupId>org.apache.httpcomponents</groupId>
397             <artifactId>httpclient</artifactId>
398             <version>4.5.13</version>
399         </dependency>
400         <dependency>
401             <groupId>org.apache.httpcomponents</groupId>
402             <artifactId>httpclient-cache</artifactId>
403             <version>4.5.13</version>
404         </dependency>
405         <dependency>
406             <groupId>org.apache.httpcomponents</groupId>
407             <artifactId>httpcore</artifactId>
408             <version>4.4.1</version>
409         </dependency>
410
411         <!-- explicit jline add b/c it conflicts with the zk client -->
412         <dependency>
413             <groupId>jline</groupId>
414             <artifactId>jline</artifactId>
415             <version>2.12.1</version>
416         </dependency>
417
418         <dependency>
419             <groupId>org.apache.curator</groupId>
420             <artifactId>curator-recipes</artifactId>
421             <version>4.0.1</version>
422         </dependency>
423
424         <dependency>
425             <groupId>org.apache.curator</groupId>
426             <artifactId>curator-test</artifactId>
427             <version>4.0.1</version>
428         </dependency>
429
430         <dependency>
431             <groupId>com.google.code.gson</groupId>
432             <artifactId>gson</artifactId>
433             <version>2.8.0</version>
434         </dependency>
435
436         <dependency>
437             <groupId>com.fasterxml.jackson.core</groupId>
438             <artifactId>jackson-core</artifactId>
439             <version>2.12.2</version>
440             <scope>test</scope>
441         </dependency>
442         <dependency>
443             <groupId>com.fasterxml.jackson.core</groupId>
444             <artifactId>jackson-databind</artifactId>
445             <version>2.12.2</version>
446         </dependency>
447         <dependency>
448             <groupId>org.powermock</groupId>
449             <artifactId>powermock-module-junit4</artifactId>
450             <version>2.0.7</version>
451             <scope>test</scope>
452         </dependency>
453         <dependency>
454             <groupId>org.powermock</groupId>
455             <artifactId>powermock-core</artifactId>
456             <version>2.0.7</version>
457             <scope>test</scope>
458         </dependency>
459         <dependency>
460             <groupId>org.powermock</groupId>
461             <artifactId>powermock-module-junit4-rule</artifactId>
462             <version>2.0.7</version>
463             <scope>test</scope>
464         </dependency>
465         <dependency>
466             <groupId>org.powermock</groupId>
467             <artifactId>powermock-api-support</artifactId>
468             <version>2.0.7</version>
469             <scope>test</scope>
470         </dependency>
471         <dependency>
472             <groupId>org.powermock</groupId>
473             <artifactId>powermock-api-mockito2</artifactId>
474             <version>2.0.7</version>
475         </dependency>
476         <dependency>
477             <groupId>org.apache.commons</groupId>
478             <artifactId>commons-lang3</artifactId>
479             <version>3.8.1</version>
480         </dependency>
481         <dependency>
482             <groupId>commons-lang</groupId>
483             <artifactId>commons-lang</artifactId>
484             <version>2.6</version>
485         </dependency>
486     </dependencies>
487     <build>
488         <finalName>DMaaP</finalName>
489         <resources>
490             <resource>
491                 <directory>src/main/resources</directory>
492                 <filtering>true</filtering>
493                 <includes>
494                     <include>**/*.properties</include>
495                 </includes>
496             </resource>
497         </resources>
498         <plugins>
499             <plugin>
500                 <artifactId>maven-checkstyle-plugin</artifactId>
501                 <version>3.1.2</version>
502                 <dependencies>
503                     <dependency>
504                         <groupId>org.onap.oparent</groupId>
505                         <artifactId>checkstyle</artifactId>
506                         <version>3.0.0</version>
507                     </dependency>
508                 </dependencies>
509                 <executions>
510                     <execution>
511                         <id>onap-license</id>
512                         <goals>
513                             <goal>check</goal>
514                         </goals>
515                         <phase>process-sources</phase>
516                         <configuration>
517                             <configLocation>onap-checkstyle/check-license.xml</configLocation>
518                             <includeResources>false</includeResources>
519                             <includeTestSourceDirectory>true</includeTestSourceDirectory>
520                             <includeTestResources>false</includeTestResources>
521                             <sourceDirectories>${project.build.sourceDirectory}</sourceDirectories>
522                             <excludes>
523                             </excludes>
524                             <consoleOutput>true</consoleOutput>
525                             <failOnViolation>false</failOnViolation>
526                         </configuration>
527                     </execution>
528                     <execution>
529                         <id>onap-java-style</id>
530                         <goals>
531                             <goal>check</goal>
532                         </goals>
533                         <phase>none</phase>
534                         <configuration>
535                             <!-- Use Google Java Style Guide:
536                                  https://github.com/checkstyle/checkstyle/blob/master/src/main/resources/google_checks.xml
537                                  with minor changes -->
538                             <configLocation>onap-checkstyle/onap-java-style.xml</configLocation>
539                             <!-- <sourceDirectory> is needed so that checkstyle ignores the generated sources directory -->
540                             <sourceDirectories>${project.build.sourceDirectory}</sourceDirectories>
541                             <includeResources>true</includeResources>
542                             <includeTestSourceDirectory>true</includeTestSourceDirectory>
543                             <includeTestResources>true</includeTestResources>
544                             <excludes>
545                             </excludes>
546                             <consoleOutput>true</consoleOutput>
547                             <failOnViolation>false</failOnViolation>
548                         </configuration>
549                     </execution>
550                 </executions>
551             </plugin>
552             <plugin>
553                 <groupId>org.apache.maven.plugins</groupId>
554                 <artifactId>maven-site-plugin</artifactId>
555                 <version>3.6</version>
556                 <dependencies>
557                     <dependency>
558                         <groupId>org.apache.maven.wagon</groupId>
559                         <artifactId>wagon-webdav-jackrabbit</artifactId>
560                         <version>2.10</version>
561                     </dependency>
562                 </dependencies>
563             </plugin>
564             <plugin>
565                 <groupId>org.apache.maven.plugins</groupId>
566                 <artifactId>maven-compiler-plugin</artifactId>
567                 <configuration>
568                     <source>11</source>
569                     <target>11</target>
570                 </configuration>
571             </plugin>
572             <plugin>
573                 <groupId>org.apache.maven.plugins</groupId>
574                 <artifactId>maven-javadoc-plugin</artifactId>
575                 <version>2.10.4</version>
576                 <configuration>
577                     <additionalparam>-Xdoclint:none</additionalparam>
578                     <source>8</source>
579                     <detectJavaApiLink>false</detectJavaApiLink>
580                 </configuration>
581                 <executions>
582                     <execution>
583                         <id>attach-javadocs</id>
584                         <goals>
585                             <goal>jar</goal>
586                         </goals>
587                     </execution>
588                 </executions>
589             </plugin>
590             <plugin>
591                 <groupId>org.apache.maven.plugins</groupId>
592                 <artifactId>maven-source-plugin</artifactId>
593                 <version>3.0.0</version>
594                 <executions>
595                     <execution>
596                         <id>attach-sources</id>
597                         <goals>
598                             <goal>jar-no-fork</goal>
599                         </goals>
600                     </execution>
601                 </executions>
602             </plugin>
603             <plugin>
604                 <groupId>org.apache.maven.plugins</groupId>
605                 <artifactId>maven-surefire-plugin</artifactId>
606                 <version>3.0.0-M5</version>
607                 <configuration>
608                     <excludes>
609                         <!-- exclude until junits updated <exclude>**/DME2*.java</exclude> -->
610                     </excludes>
611                     <argLine>
612                         --illegal-access=permit
613                     </argLine>
614                 </configuration>
615             </plugin>
616             <plugin>
617                 <groupId>org.apache.maven.plugins</groupId>
618                 <artifactId>maven-failsafe-plugin</artifactId>
619                 <configuration>
620                     <argLine>
621                         --illegal-access=permit
622                     </argLine>
623                 </configuration>
624             </plugin>
625             <plugin>
626                 <groupId>org.jacoco</groupId>
627                 <artifactId>jacoco-maven-plugin</artifactId>
628                 <executions>
629                     <execution>
630                         <id>prepare-agent</id>
631                         <goals>
632                             <goal>prepare-agent</goal>
633                         </goals>
634                     </execution>
635                     <execution>
636                         <id>report</id>
637                         <goals>
638                             <goal>report</goal>
639                         </goals>
640                         <configuration>
641                             <dataFile>${project.build.directory}/code-coverage/jacoco.exec
642                             </dataFile>
643                             <outputDirectory>${project.reporting.outputDirectory}/jacoco-ut
644                             </outputDirectory>
645                         </configuration>
646                     </execution>
647                 </executions>
648             </plugin>
649         </plugins>
650     </build>
651 </project>