8fff980764a322fed3df9fbe725649a7ee089368
[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            http://www.apache.org/licenses/LICENSE-2.0
11      
12      Unless required by applicable law or agreed to in writing, software
13      distributed under the License is distributed on an "AS IS" BASIS,
14      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15      See the License for the specific language governing permissions and
16      limitations under the License.
17      ============LICENSE_END=========================================================
18    
19      ECOMP is a trademark and service mark of AT&T Intellectual Property.
20      
21  -->
22 <project xmlns="http://maven.apache.org/POM/4.0.0" 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         <modelVersion>4.0.0</modelVersion>
25         <groupId>org.onap.dmaap.messagerouter.msgrtr</groupId>
26         <artifactId>msgrtr</artifactId>
27         <version>1.1.1-SNAPSHOT</version>
28         <packaging>jar</packaging>
29         <name>dmaap-messagerouter-msgrtr</name>
30         <description>Message Router - Restful interface built for kafka</description>
31         
32         <parent>
33                 <groupId>org.onap.oparent</groupId>
34                 <artifactId>oparent</artifactId>
35                 <version>0.1.1</version>
36         </parent>
37         
38         <properties>
39                 <spring.version>3.2.15.RELEASE</spring.version>
40                 <cxf.version>3.0.4</cxf.version>
41                 <jstl.version>1.2</jstl.version>
42                 <maven.compiler.target>1.7</maven.compiler.target>
43                 <maven.compiler.source>1.7</maven.compiler.source>
44                 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
45                 
46                 <!--  SONAR  -->
47                  <jacoco.version>0.7.7.201606060606</jacoco.version>
48             <sonar-jacoco-listeners.version>3.2</sonar-jacoco-listeners.version>
49             <sonar.core.codeCoveragePlugin>jacoco</sonar.core.codeCoveragePlugin>
50             <!-- Default Sonar configuration -->
51             <sonar.jacoco.reportPath>target/code-coverage/jacoco-ut.exec</sonar.jacoco.reportPath>
52             <sonar.jacoco.itReportPath>target/code-coverage/jacoco-it.exec</sonar.jacoco.itReportPath>
53             <!-- Note: This list should match jacoco-maven-plugin's exclusion list below -->
54             <sonar.exclusions>**/gen/**,**/generated-sources/**,**/yang-gen**,**/pax/**</sonar.exclusions>
55             <sitePath>/content/sites/site/org/onap/dmaap/messagerouter/msgrtr/${project.artifactId}/${project.version}</sitePath>
56                 <nexusproxy>https://nexus.onap.org</nexusproxy>
57         </properties>
58
59         <!-- Distribution management -->
60         <!-- Currently all artifacts will be uploaded to att-public-group reposiotry 
61                 on Maven Central -->
62         <distributionManagement>
63                 <site>
64                         <id>ecomp-site</id>
65                         <url>dav:${nexusproxy}${sitePath}</url>
66                 </site>
67         </distributionManagement>
68
69         <!-- End Distribution management -->
70
71          <licenses>
72           <license>
73             <name>Apache License Version 2.0</name>
74           </license>
75         </licenses>
76
77         <developers>
78            <developer>
79              <name>Rajashree</name>
80              <email></email>
81              <organization>ATT</organization>
82              <organizationUrl>www.att.com</organizationUrl>
83            </developer>
84            <developer>
85              <name>Ramkumar</name>
86              <email></email>
87              <organization>ATT</organization>
88              <organizationUrl>www.att.com</organizationUrl>
89            </developer>
90          </developers>
91
92         <dependencies>
93         <dependency>
94                 <groupId>commons-collections</groupId>
95                 <artifactId>commons-collections</artifactId>
96                 <version>3.2.2</version>
97         </dependency>
98         <dependency>
99                 <groupId>ch.qos.logback</groupId>
100                 <artifactId>logback-core</artifactId>
101                 <version>1.2.0</version>
102         </dependency>
103         <dependency>
104                 <groupId>ch.qos.logback</groupId>
105                 <artifactId>logback-classic</artifactId>
106                 <version>1.2.0</version>
107         </dependency>
108         <!-- <dependency>
109                 <groupId>commons-beanutils</groupId>
110                 <artifactId>commons-beanutils</artifactId>
111                 <version>1.9.2</version>
112                 <exclusions>
113                         We have JCL-over-SLF4J instead.
114                         <exclusion>
115                                 <groupId>commons-logging</groupId>
116                                 <artifactId>commons-logging</artifactId>
117                         </exclusion>
118                 </exclusions>
119         </dependency> -->
120         <dependency>
121     <groupId>org.grails</groupId>
122         <artifactId>grails-web</artifactId>
123         <version>2.4.4</version>
124         </dependency>
125      <dependency>
126                         <groupId>org.springframework</groupId>
127                         <artifactId>spring-test</artifactId>
128                         <version>${spring.version}</version>
129                         <scope>test</scope>
130                 </dependency>
131         <dependency>
132                 <groupId>org.codehaus.groovy</groupId>
133                 <artifactId>groovy-all</artifactId>
134                 <version>2.4.4</version>
135                 <scope>compile</scope>
136                 <exclusions>
137                         <exclusion>
138                                 <artifactId>jline</artifactId>
139                                 <groupId>jline</groupId>
140                         </exclusion>
141                 </exclusions>
142         </dependency>
143         <dependency>
144                 <groupId>commons-fileupload</groupId>
145                 <artifactId>commons-fileupload</artifactId>
146                 <version>1.3.3</version>
147         </dependency>
148     
149                 <dependency>
150                         <groupId>junit</groupId>
151                         <artifactId>junit</artifactId>
152                         <version>4.11</version>
153                         <scope>test</scope>
154                 </dependency>
155                 <dependency>
156                         <groupId>com.att.aft</groupId>
157                         <artifactId>dme2</artifactId>
158                         <version>3.1.200-oss</version>
159                         </dependency>
160
161                 <!-- slf4j logger -->
162                 <dependency>
163                         <groupId>org.slf4j</groupId>
164                         <artifactId>slf4j-api</artifactId>
165                         <version>1.7.6</version>
166                 </dependency>
167
168                 <dependency>
169                         <groupId>javax.inject</groupId>
170                         <artifactId>javax.inject</artifactId>
171                         <version>1</version>
172                 </dependency>
173
174                 <dependency>
175                         <groupId>com.att.ajsc</groupId>
176                         <artifactId>ajsc-core</artifactId>
177                         <version>1.0.0</version>
178                 </dependency>
179
180                 <dependency>
181                         <groupId>javax.ws.rs</groupId>
182                         <artifactId>javax.ws.rs-api</artifactId>
183                         <version>2.0.1</version>
184                 </dependency>
185
186                 <!-- <dependency> <groupId>org.apache.cxf</groupId> <artifactId>cxf-rt-rs-client</artifactId> 
187                         <version>${cxf.version}</version> </dependency> <dependency> <groupId>org.apache.cxf</groupId> 
188                         <artifactId>cxf-rt-frontend-jaxws</artifactId> <version>${cxf.version}</version> 
189                         </dependency> <dependency> <groupId>org.apache.cxf</groupId> <artifactId>cxf-rt-transports-http</artifactId> 
190                         <version>${cxf.version}</version> </dependency> Jetty is needed if you're 
191                         are not using the CXFServlet <dependency> <groupId>org.apache.cxf</groupId> 
192                         <artifactId>cxf-rt-transports-http-jetty</artifactId> <version>${cxf.version}</version> 
193                         </dependency> -->
194                 <!-- Begin - Spring Dependencies for DI -->
195                 <dependency>
196                         <groupId>org.springframework</groupId>
197                         <artifactId>spring-core</artifactId>
198                         <version>${spring.version}</version>
199                 </dependency>
200                 <dependency>
201                         <groupId>org.springframework</groupId>
202                         <artifactId>spring-context</artifactId>
203                         <version>${spring.version}</version>
204                 </dependency>
205                 <dependency>
206                         <groupId>org.springframework</groupId>
207                         <artifactId>spring-webmvc</artifactId>
208                         <version>${spring.version}</version>
209                 </dependency>
210                 <dependency>
211                         <groupId>org.springframework</groupId>
212                         <artifactId>spring-web</artifactId>
213                         <version>${spring.version}</version>
214                 </dependency>
215                 <dependency>
216                         <groupId>javax.servlet</groupId>
217                         <artifactId>javax.servlet-api</artifactId>
218                         <version>3.0.1</version>
219                         <scope>provided</scope>
220                 </dependency>
221                 <!-- End - Spring Dependencies for DI -->
222                 <!-- Begin - Dependency on Dmaap Spring layer -->
223                 <!-- <dependency> <groupId>com.att.dmaap</groupId> <artifactId>dmaap-spring</artifactId> 
224                         <version>0.0.1-SNAPSHOT</version> </dependency> -->
225                 <!-- End - Dependency on Dmaap Spring layer -->
226                 <!-- Begin - Dependency on log4j for logging purpose -->
227                 <!-- <dependency> <groupId>log4j</groupId> <artifactId>log4j</artifactId> 
228                         <version>1.2.17</version> </dependency> -->
229                 <!-- Log4j's enhanced pattern layout is shipped separately <dependency> 
230                         <groupId>log4j</groupId> <artifactId>apache-log4j-extras</artifactId> <version>1.2.17</version> 
231                         </dependency> -->
232                 <!-- End - Dependency on log4j for logging purpose -->
233                 <!-- ZooKeeper Library -->
234                 <dependency>
235                         <groupId>org.apache.zookeeper</groupId>
236                         <artifactId>zookeeper</artifactId>
237                         <version>3.4.6</version>
238                 </dependency>
239
240                 <!-- JSON libraries -->
241                 <dependency>
242                         <groupId>org.json</groupId>
243                         <artifactId>json</artifactId>
244                         <version>20131018</version>
245                 </dependency>
246
247                 <!-- Apache Kafka -->
248                 <dependency>
249                         <groupId>org.apache.kafka</groupId>
250                         <artifactId>kafka_2.10</artifactId>
251                         <version>0.8.2.1</version>
252                 </dependency>
253
254                 <dependency>
255                         <groupId>com.att.eelf</groupId>
256                         <artifactId>eelf-core</artifactId>
257                         <version>0.0.1</version>
258                         <scope>compile</scope>
259                 </dependency>
260                 <!-- our NSA server library -->
261                 <dependency>
262                         <groupId>com.att.nsa</groupId>
263                         <artifactId>nsaServerLibrary</artifactId>
264                         <version>1.0.10</version>
265                 </dependency>
266                 <dependency>
267                         <groupId>com.att.nsa</groupId>
268                         <artifactId>saToolkit</artifactId>
269                         <version>0.0.1</version>
270                 </dependency>
271
272                 <!-- our Highland Park library -->
273                  <!-- <dependency>
274                         <groupId>com.att.nsa</groupId>
275                         <artifactId>highlandParkCore</artifactId>
276                         <version>0.4.9</version>
277                 </dependency>  -->
278
279                 <!-- our base client library, for its command line tools -->
280                 <dependency>
281                         <groupId>com.att.nsa</groupId>
282                         <artifactId>saClientLibrary</artifactId>
283                         <version>0.0.1</version>
284                         <exclusions>
285                                 <exclusion>
286                                         <groupId>org.apache.httpcomponents</groupId>
287                                         <artifactId>httpclient</artifactId>
288                                 </exclusion>
289                                 <exclusion>
290                                         <groupId>org.apache.httpcomponents</groupId>
291                                         <artifactId>httpclient-cache</artifactId>
292                                 </exclusion>
293                         </exclusions>
294                 </dependency>
295                 <dependency>
296         <groupId>org.apache.httpcomponents</groupId>
297         <artifactId>httpclient</artifactId>
298         <version>4.5.3</version>
299 </dependency>
300         <dependency>
301                 <groupId>org.apache.httpcomponents</groupId>
302                 <artifactId>httpclient-cache</artifactId>
303                 <version>4.5.3</version>
304         </dependency>
305         <dependency>
306                 <groupId>org.apache.httpcomponents</groupId>
307                 <artifactId>httpcore</artifactId>
308                 <version>4.4.1</version>
309         </dependency>
310                 
311                 
312                 <!-- explicit jline add b/c it conflicts with the zk client -->
313                 <dependency>
314                         <groupId>jline</groupId>
315                         <artifactId>jline</artifactId>
316                         <version>2.12.1</version>
317                 </dependency>
318
319                 <dependency>
320                         <groupId>org.apache.curator</groupId>
321                         <artifactId>curator-recipes</artifactId>
322                         <version>2.6.0</version>
323                 </dependency>
324
325                 <dependency>
326                         <groupId>org.apache.curator</groupId>
327                         <artifactId>curator-test</artifactId>
328                         <version>2.6.0</version>
329                 </dependency>
330
331
332         <dependency>
333             <groupId>com.google.code.gson</groupId>
334             <artifactId>gson</artifactId>
335             <version>2.8.0</version>
336         </dependency>
337
338                 <dependency>
339                         <groupId>com.fasterxml.jackson.core</groupId>
340                         <artifactId>jackson-core</artifactId>
341                         <version>2.8.11</version>
342                         <scope>test</scope>
343                 </dependency>
344                 
345                 <dependency>
346                         <groupId>com.fasterxml.jackson.core</groupId>
347                         <artifactId>jackson-databind</artifactId>
348                         <version>2.8.11.1</version>
349                 </dependency>
350
351                 <dependency>
352                         <groupId>org.powermock</groupId>
353                         <artifactId>powermock-api-mockito</artifactId>
354                         <version>1.6.4</version>
355                         <scope>test</scope>
356                 </dependency>
357
358                 <dependency>
359                         <groupId>org.powermock</groupId>
360                         <artifactId>powermock-module-junit4</artifactId>
361                         <version>1.6.4</version>
362                         <scope>test</scope>
363                 </dependency>
364                 
365                 <dependency>
366                     <groupId>org.powermock</groupId>
367                     <artifactId>powermock-module-junit4-rule</artifactId>
368                     <version>1.6.4</version>
369                     <scope>test</scope>
370                 </dependency>
371                 <dependency>
372                         <groupId>org.mockito</groupId>
373                         <artifactId>mockito-core</artifactId>
374                         <version>1.10.19</version>
375                         <scope>test</scope>
376                 </dependency>
377         
378         </dependencies>
379         <build>
380                 <finalName>DMaaP</finalName>
381                 <resources>
382                         <resource>
383                                 <directory>src/main/resources</directory>
384                                 <filtering>true</filtering>
385                                 <includes>
386                                         <include>**/*.properties</include>
387                                 </includes>
388                         </resource>
389                         <!-- <resource> <directory>src/main/config</directory> <filtering>true</filtering> 
390                                 <includes> <include>**/log4j*.xml</include> </includes> </resource> <resource> 
391                                 <directory>src/main/resources</directory> <filtering>false</filtering> <excludes> 
392                                 <exclude>**/cambriaApiVersion.properties</exclude> </excludes> </resource> -->
393                 </resources>
394                 <plugins>
395                         <!-- <plugin> <artifactId>maven-assembly-plugin</artifactId> <version>2.4.1</version> 
396                                 <configuration> <descriptors> <descriptor>src/assembly/dep.xml</descriptor> 
397                                 </descriptors> </configuration> <executions> <execution> <id>make-assembly</id> 
398                                 this is used for inheritance merges -->
399                         <!-- <phase>package</phase> bind to the packaging phase <goals> <goal>single</goal> 
400                                 </goals> </execution> </executions> </plugin> -->
401                         <!-- -->
402                         <plugin>
403                                 <groupId>org.apache.maven.plugins</groupId>
404                                 <artifactId>maven-site-plugin</artifactId>
405                                 <version>3.6</version>
406                                 <dependencies>
407                                         <dependency>
408                                                 <groupId>org.apache.maven.wagon</groupId>
409                                                 <artifactId>wagon-webdav-jackrabbit</artifactId>
410                                                 <version>2.10</version>
411                                         </dependency>
412                                 </dependencies>
413                         </plugin>
414                         <plugin>
415                                 <groupId>org.apache.maven.plugins</groupId>
416                                 <artifactId>maven-javadoc-plugin</artifactId>
417                                 <version>2.10.4</version>
418                                 <configuration>
419                                         <additionalparam>-Xdoclint:none</additionalparam>
420                                 </configuration>
421                                 <executions>
422                                         <execution>
423                                                 <id>attach-javadocs</id>
424                                                 <goals>
425                                                         <goal>jar</goal>
426                                                 </goals>
427                                         </execution>
428                                 </executions>
429                         </plugin>
430                         <plugin>
431                                 <groupId>org.apache.maven.plugins</groupId>
432                                 <artifactId>maven-source-plugin</artifactId>
433                                 <version>3.0.0</version>
434                                 <executions>
435                                         <execution>
436                                                 <id>attach-sources</id>
437                                                 <goals>
438                                                         <goal>jar-no-fork</goal>
439                                                 </goals>
440                                         </execution>
441                                 </executions>
442                         </plugin>                       
443                         <plugin>
444                                 <groupId>org.apache.maven.plugins</groupId>
445                                 <artifactId>maven-surefire-plugin</artifactId>
446                                 <version>2.12.4</version>
447                                 <configuration>
448                                         <excludes>
449                                                 <!-- exclude until junits updated  
450                                                 <exclude>**/DME2*.java</exclude> -->
451                                         </excludes>
452                                         <!-- <skipTests>true</skipTests> -->
453                                 </configuration>
454                         </plugin>
455                                 <plugin>
456                                         <groupId>org.codehaus.mojo</groupId>
457                                         <artifactId>cobertura-maven-plugin</artifactId>
458                                         <version>2.7</version>
459                                         <configuration>
460                                             <formats>
461                                             <format>html</format>
462                                             <format>xml</format>
463                                           </formats>
464                                         </configuration>
465                            </plugin>    
466                 <!-- <plugin>
467           <groupId>org.jacoco</groupId>
468           <artifactId>jacoco-maven-plugin</artifactId>
469           <version>${jacoco.version}</version>
470           <configuration>
471             Note: This exclusion list should match <sonar.exclusions>
472          property above
473             <excludes>
474               <exclude>**/gen/**</exclude>
475               <exclude>**/generated-sources/**</exclude>
476               <exclude>**/yang-gen/**</exclude>
477               <exclude>**/pax/**</exclude>
478             </excludes>
479           </configuration>
480           <executions>
481             
482         Prepares the property pointing to the JaCoCo runtime agent which
483         is passed as VM argument when Maven the Surefire plugin is executed.
484        
485             <execution>
486               <id>pre-unit-test</id>
487               <goals>
488                 <goal>prepare-agent</goal>
489               </goals>
490               <configuration>
491                 Sets the path to the file which contains the execution data.
492                 <destFile>${project.build.directory}/code-coverage/jacoco-ut.exec</destFile>
493                 
494             Sets the name of the property containing the settings
495             for JaCoCo runtime agent.
496        
497                 <propertyName>surefireArgLine</propertyName>
498               </configuration>
499             </execution>
500             
501         Ensures that the code coverage report for unit tests is created after
502         unit tests have been run.
503        
504             <execution>
505               <id>post-unit-test</id>
506               <phase>test</phase>
507               <goals>
508                 <goal>report</goal>
509               </goals>
510               <configuration>
511                 Sets the path to the file which contains the execution data.
512                 <dataFile>${project.build.directory}/code-coverage/jacoco-ut.exec</dataFile>
513                 Sets the output directory for the code coverage report.
514                 <outputDirectory>${project.reporting.outputDirectory}/jacoco-ut</outputDirectory>
515               </configuration>
516             </execution>
517             <execution>
518               <id>pre-integration-test</id>
519               <phase>pre-integration-test</phase>
520               <goals>
521                 <goal>prepare-agent</goal>
522               </goals>
523               <configuration>
524                 Sets the path to the file which contains the execution data.
525                 <destFile>${project.build.directory}/code-coverage/jacoco-it.exec</destFile>
526                 
527             Sets the name of the property containing the settings
528             for JaCoCo runtime agent.
529        
530                 <propertyName>failsafeArgLine</propertyName>
531               </configuration>
532             </execution>
533             
534         Ensures that the code coverage report for integration tests after
535         integration tests have been run.
536        
537             <execution>
538               <id>post-integration-test</id>
539               <phase>post-integration-test</phase>
540               <goals>
541                 <goal>report</goal>
542               </goals>
543               <configuration>
544                 Sets the path to the file which contains the execution data.
545                 <dataFile>${project.build.directory}/code-coverage/jacoco-it.exec</dataFile>
546                 Sets the output directory for the code coverage report.
547                 <outputDirectory>${project.reporting.outputDirectory}/jacoco-it</outputDirectory>
548               </configuration>
549             </execution>
550           </executions>
551         </plugin>               
552                  --></plugins>
553         </build>
554
555         <!-- <profiles> <profile> <id>jenkins</id> <activation> <property> <name>env.BUILD_NUMBER</name> 
556                 </property> </activation> <build> <plugins> <plugin> <groupId>org.codehaus.mojo</groupId> 
557                 <artifactId>cobertura-maven-plugin</artifactId> </plugin> <plugin> <groupId>com.att.aft.swm</groupId> 
558                 <artifactId>swm-plugin</artifactId> <version>1.4.4.12</version> <configuration> 
559                 <distFilesRootDirPath>/opt/app/dmaap/msgrtr/jenkinsbuild</distFilesRootDirPath> 
560                 <version>${project.version}-${env.BUILD_NUMBER}</version> <scriptExcludes> 
561                 <scriptExclude>**/swmpkgclean.sh</scriptExclude> </scriptExcludes> </configuration> 
562                 <executions> <execution> <id>pkgstage</id> <goals> <goal>pkgstage</goal> 
563                 </goals> </execution> <execution> <id>pkgcreate</id> <goals> <goal>pkgcreate</goal> 
564                 </goals> </execution> <execution> <id>pkginstall</id> <goals> <goal>install</goal> 
565                 </goals> <configuration> <componentName>com.att.nsa:msgrtr</componentName> 
566                 <version>${project.version}-${env.BUILD_NUMBER}</version> <waitTimeMins>4</waitTimeMins> 
567                 <properties> <property> <name>overrideDependencyConflicts</name> <value>true</value> 
568                 </property> <property> <name>AFTSWM_NOTIFY_ADDRESSES</name> <value>mailto:rs857c@att.com</value> 
569                 </property> </properties> </configuration> </execution> </executions> </plugin> 
570                 <plugin> <artifactId>maven-antrun-plugin</artifactId> <executions> <execution> 
571                 <phase>package</phase> <configuration> <tasks> <copy file="./src/main/scripts/swmpkgclean.sh" 
572                 toDir="./target" /> </tasks> </configuration> <goals> <goal>run</goal> </goals> 
573                 </execution> </executions> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> 
574                 <artifactId>maven-deploy-plugin</artifactId> <version>2.5</version> <configuration> 
575                 <skip>true</skip> </configuration> </plugin> </plugins> </build> </profile> 
576                 </profiles> -->
577 </project>