Merge "Add new License file"
[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.0.0-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.14.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/${project.artifactId}/${project.version}</sitePath>
56         </properties>
57
58         <!-- Distribution management -->
59         <!-- Currently all artifacts will be uploaded to att-public-group reposiotry 
60                 on Maven Central -->
61         <distributionManagement>
62                 <site>
63                         <id>ecomp-site</id>
64                         <url>dav:${nexusproxy}${sitePath}</url>
65                 </site>
66         </distributionManagement>
67
68         <!-- End Distribution management -->
69
70          <licenses>
71           <license>
72             <name>Apache License Version 2.0</name>
73           </license>
74         </licenses>
75
76         <developers>
77            <developer>
78              <name>Rajashree</name>
79              <email></email>
80              <organization>ATT</organization>
81              <organizationUrl>www.att.com</organizationUrl>
82            </developer>
83            <developer>
84              <name>Ramkumar</name>
85              <email></email>
86              <organization>ATT</organization>
87              <organizationUrl>www.att.com</organizationUrl>
88            </developer>
89          </developers>
90
91         <dependencies>
92
93                 <dependency>
94                         <groupId>junit</groupId>
95                         <artifactId>junit</artifactId>
96                         <version>4.11</version>
97                         <scope>test</scope>
98                 </dependency>
99
100                 <!-- slf4j logger -->
101                 <dependency>
102                         <groupId>org.slf4j</groupId>
103                         <artifactId>slf4j-api</artifactId>
104                         <version>1.7.6</version>
105                 </dependency>
106
107                 <dependency>
108                         <groupId>javax.inject</groupId>
109                         <artifactId>javax.inject</artifactId>
110                         <version>1</version>
111                 </dependency>
112
113                 <dependency>
114                         <groupId>com.att.ajsc</groupId>
115                         <artifactId>ajsc-core</artifactId>
116                         <version>1.0.0</version>
117                 </dependency>
118
119                 <dependency>
120                         <groupId>javax.ws.rs</groupId>
121                         <artifactId>javax.ws.rs-api</artifactId>
122                         <version>2.0.1</version>
123                 </dependency>
124
125                 <!-- <dependency> <groupId>org.apache.cxf</groupId> <artifactId>cxf-rt-rs-client</artifactId> 
126                         <version>${cxf.version}</version> </dependency> <dependency> <groupId>org.apache.cxf</groupId> 
127                         <artifactId>cxf-rt-frontend-jaxws</artifactId> <version>${cxf.version}</version> 
128                         </dependency> <dependency> <groupId>org.apache.cxf</groupId> <artifactId>cxf-rt-transports-http</artifactId> 
129                         <version>${cxf.version}</version> </dependency> Jetty is needed if you're 
130                         are not using the CXFServlet <dependency> <groupId>org.apache.cxf</groupId> 
131                         <artifactId>cxf-rt-transports-http-jetty</artifactId> <version>${cxf.version}</version> 
132                         </dependency> -->
133                 <!-- Begin - Spring Dependencies for DI -->
134                 <dependency>
135                         <groupId>org.springframework</groupId>
136                         <artifactId>spring-core</artifactId>
137                         <version>${spring.version}</version>
138                 </dependency>
139                 <dependency>
140                         <groupId>org.springframework</groupId>
141                         <artifactId>spring-context</artifactId>
142                         <version>${spring.version}</version>
143                 </dependency>
144                 <dependency>
145                         <groupId>org.springframework</groupId>
146                         <artifactId>spring-webmvc</artifactId>
147                         <version>${spring.version}</version>
148                 </dependency>
149                 <dependency>
150                         <groupId>org.springframework</groupId>
151                         <artifactId>spring-web</artifactId>
152                         <version>${spring.version}</version>
153                 </dependency>
154                 <dependency>
155                         <groupId>javax.servlet</groupId>
156                         <artifactId>javax.servlet-api</artifactId>
157                         <version>3.0.1</version>
158                         <scope>provided</scope>
159                 </dependency>
160                 <!-- End - Spring Dependencies for DI -->
161                 <!-- Begin - Dependency on Dmaap Spring layer -->
162                 <!-- <dependency> <groupId>com.att.dmaap</groupId> <artifactId>dmaap-spring</artifactId> 
163                         <version>0.0.1-SNAPSHOT</version> </dependency> -->
164                 <!-- End - Dependency on Dmaap Spring layer -->
165                 <!-- Begin - Dependency on log4j for logging purpose -->
166                 <!-- <dependency> <groupId>log4j</groupId> <artifactId>log4j</artifactId> 
167                         <version>1.2.17</version> </dependency> -->
168                 <!-- Log4j's enhanced pattern layout is shipped separately <dependency> 
169                         <groupId>log4j</groupId> <artifactId>apache-log4j-extras</artifactId> <version>1.2.17</version> 
170                         </dependency> -->
171                 <!-- End - Dependency on log4j for logging purpose -->
172                 <!-- ZooKeeper Library -->
173                 <dependency>
174                         <groupId>org.apache.zookeeper</groupId>
175                         <artifactId>zookeeper</artifactId>
176                         <version>3.4.6</version>
177                 </dependency>
178
179                 <!-- JSON libraries -->
180                 <dependency>
181                         <groupId>org.json</groupId>
182                         <artifactId>json</artifactId>
183                         <version>20131018</version>
184                 </dependency>
185
186                 <!-- Apache Kafka -->
187                 <dependency>
188                         <groupId>org.apache.kafka</groupId>
189                         <artifactId>kafka_2.10</artifactId>
190                         <version>0.8.2.1</version>
191                 </dependency>
192
193                 <dependency>
194                         <groupId>com.att.eelf</groupId>
195                         <artifactId>eelf-core</artifactId>
196                         <version>0.0.1</version>
197                         <scope>compile</scope>
198                 </dependency>
199                 <!-- our NSA server library -->
200                 <dependency>
201                         <groupId>com.att.nsa</groupId>
202                         <artifactId>nsaServerLibrary</artifactId>
203                         <version>1.0.10</version>
204                 </dependency>
205                 <dependency>
206                         <groupId>com.att.nsa</groupId>
207                         <artifactId>saToolkit</artifactId>
208                         <version>0.0.1</version>
209                 </dependency>
210
211                 <!-- our Highland Park library -->
212                  <!-- <dependency>
213                         <groupId>com.att.nsa</groupId>
214                         <artifactId>highlandParkCore</artifactId>
215                         <version>0.4.9</version>
216                 </dependency>  -->
217
218                 <!-- our base client library, for its command line tools -->
219                 <dependency>
220                         <groupId>com.att.nsa</groupId>
221                         <artifactId>saClientLibrary</artifactId>
222                         <version>0.0.1</version>
223                         <exclusions>
224                                 <exclusion>
225                                         <groupId>org.apache.httpcomponents</groupId>
226                                         <artifactId>httpclient</artifactId>
227                                 </exclusion>
228                                 <exclusion>
229                                         <groupId>org.apache.httpcomponents</groupId>
230                                         <artifactId>httpclient-cache</artifactId>
231                                 </exclusion>
232                         </exclusions>
233                 </dependency>
234                 <dependency>
235                         <groupId>org.apache.httpcomponents</groupId>
236                                         <artifactId>httpclient</artifactId>
237                                         <version>4.4.1</version>
238                 </dependency>
239                 <dependency>
240                         <groupId>org.apache.httpcomponents</groupId>
241                                         <artifactId>httpclient-cache</artifactId>
242                                         <version>4.4.1</version>
243                 </dependency>
244                 
245                 <!-- explicit jline add b/c it conflicts with the zk client -->
246                 <dependency>
247                         <groupId>jline</groupId>
248                         <artifactId>jline</artifactId>
249                         <version>2.12.1</version>
250                 </dependency>
251
252                 <dependency>
253                         <groupId>org.apache.curator</groupId>
254                         <artifactId>curator-recipes</artifactId>
255                         <version>2.6.0</version>
256                 </dependency>
257
258                 <dependency>
259                         <groupId>org.apache.curator</groupId>
260                         <artifactId>curator-test</artifactId>
261                         <version>2.6.0</version>
262                 </dependency>
263
264                 <dependency>
265                         <groupId>com.att.aft</groupId>
266                         <artifactId>dme2</artifactId>
267                         <version>3.1.200</version>
268                 </dependency>
269
270         <dependency>
271             <groupId>com.google.code.gson</groupId>
272             <artifactId>gson</artifactId>
273             <version>2.8.0</version>
274         </dependency>
275         </dependencies>
276         <build>
277                 <finalName>DMaaP</finalName>
278                 <resources>
279                         <resource>
280                                 <directory>src/main/resources</directory>
281                                 <filtering>true</filtering>
282                                 <includes>
283                                         <include>**/*.properties</include>
284                                 </includes>
285                         </resource>
286                         <!-- <resource> <directory>src/main/config</directory> <filtering>true</filtering> 
287                                 <includes> <include>**/log4j*.xml</include> </includes> </resource> <resource> 
288                                 <directory>src/main/resources</directory> <filtering>false</filtering> <excludes> 
289                                 <exclude>**/cambriaApiVersion.properties</exclude> </excludes> </resource> -->
290                 </resources>
291                 <plugins>
292                         <!-- <plugin> <artifactId>maven-assembly-plugin</artifactId> <version>2.4.1</version> 
293                                 <configuration> <descriptors> <descriptor>src/assembly/dep.xml</descriptor> 
294                                 </descriptors> </configuration> <executions> <execution> <id>make-assembly</id> 
295                                 this is used for inheritance merges -->
296                         <!-- <phase>package</phase> bind to the packaging phase <goals> <goal>single</goal> 
297                                 </goals> </execution> </executions> </plugin> -->
298                         <!-- -->
299                         <plugin>
300                                 <groupId>org.apache.maven.plugins</groupId>
301                                 <artifactId>maven-site-plugin</artifactId>
302                                 <version>3.6</version>
303                                 <dependencies>
304                                         <dependency>
305                                                 <groupId>org.apache.maven.wagon</groupId>
306                                                 <artifactId>wagon-webdav-jackrabbit</artifactId>
307                                                 <version>2.10</version>
308                                         </dependency>
309                                 </dependencies>
310                         </plugin>
311                         <plugin>
312                                 <groupId>org.apache.maven.plugins</groupId>
313                                 <artifactId>maven-javadoc-plugin</artifactId>
314                                 <version>2.10.4</version>
315                                 <configuration>
316                                         <additionalparam>-Xdoclint:none</additionalparam>
317                                 </configuration>
318                                 <executions>
319                                         <execution>
320                                                 <id>attach-javadocs</id>
321                                                 <goals>
322                                                         <goal>jar</goal>
323                                                 </goals>
324                                         </execution>
325                                 </executions>
326                         </plugin>
327                         <plugin>
328                                 <groupId>org.apache.maven.plugins</groupId>
329                                 <artifactId>maven-source-plugin</artifactId>
330                                 <version>3.0.0</version>
331                                 <executions>
332                                         <execution>
333                                                 <id>attach-sources</id>
334                                                 <goals>
335                                                         <goal>jar-no-fork</goal>
336                                                 </goals>
337                                         </execution>
338                                 </executions>
339                         </plugin>                       
340                         <plugin>
341                                 <groupId>org.apache.maven.plugins</groupId>
342                                 <artifactId>maven-surefire-plugin</artifactId>
343                                 <version>2.12.4</version>
344                                 <configuration>
345                                         <excludes>
346                                                 <!-- exclude until junits updated -->
347                                                 <exclude>**/DME2*.java</exclude>
348                                         </excludes>
349                                         <!-- <skipTests>true</skipTests> -->
350                                 </configuration>
351                         </plugin>
352                                 <plugin>
353                                         <groupId>org.codehaus.mojo</groupId>
354                                         <artifactId>cobertura-maven-plugin</artifactId>
355                                         <version>2.7</version>
356                                         <configuration>
357                                             <formats>
358                                             <format>html</format>
359                                             <format>xml</format>
360                                           </formats>
361                                         </configuration>
362                            </plugin>    
363                 <plugin>
364           <groupId>org.jacoco</groupId>
365           <artifactId>jacoco-maven-plugin</artifactId>
366           <version>${jacoco.version}</version>
367           <configuration>
368             <!-- Note: This exclusion list should match <sonar.exclusions>
369          property above -->
370             <excludes>
371               <exclude>**/gen/**</exclude>
372               <exclude>**/generated-sources/**</exclude>
373               <exclude>**/yang-gen/**</exclude>
374               <exclude>**/pax/**</exclude>
375             </excludes>
376           </configuration>
377           <executions>
378             <!--
379         Prepares the property pointing to the JaCoCo runtime agent which
380         is passed as VM argument when Maven the Surefire plugin is executed.
381         -->
382             <execution>
383               <id>pre-unit-test</id>
384               <goals>
385                 <goal>prepare-agent</goal>
386               </goals>
387               <configuration>
388                 <!-- Sets the path to the file which contains the execution data. -->
389                 <destFile>${project.build.directory}/code-coverage/jacoco-ut.exec</destFile>
390                 <!--
391             Sets the name of the property containing the settings
392             for JaCoCo runtime agent.
393         -->
394                 <propertyName>surefireArgLine</propertyName>
395               </configuration>
396             </execution>
397             <!--
398         Ensures that the code coverage report for unit tests is created after
399         unit tests have been run.
400         -->
401             <execution>
402               <id>post-unit-test</id>
403               <phase>test</phase>
404               <goals>
405                 <goal>report</goal>
406               </goals>
407               <configuration>
408                 <!-- Sets the path to the file which contains the execution data. -->
409                 <dataFile>${project.build.directory}/code-coverage/jacoco-ut.exec</dataFile>
410                 <!-- Sets the output directory for the code coverage report. -->
411                 <outputDirectory>${project.reporting.outputDirectory}/jacoco-ut</outputDirectory>
412               </configuration>
413             </execution>
414             <execution>
415               <id>pre-integration-test</id>
416               <phase>pre-integration-test</phase>
417               <goals>
418                 <goal>prepare-agent</goal>
419               </goals>
420               <configuration>
421                 <!-- Sets the path to the file which contains the execution data. -->
422                 <destFile>${project.build.directory}/code-coverage/jacoco-it.exec</destFile>
423                 <!--
424             Sets the name of the property containing the settings
425             for JaCoCo runtime agent.
426         -->
427                 <propertyName>failsafeArgLine</propertyName>
428               </configuration>
429             </execution>
430             <!--
431         Ensures that the code coverage report for integration tests after
432         integration tests have been run.
433         -->
434             <execution>
435               <id>post-integration-test</id>
436               <phase>post-integration-test</phase>
437               <goals>
438                 <goal>report</goal>
439               </goals>
440               <configuration>
441                 <!-- Sets the path to the file which contains the execution data. -->
442                 <dataFile>${project.build.directory}/code-coverage/jacoco-it.exec</dataFile>
443                 <!-- Sets the output directory for the code coverage report. -->
444                 <outputDirectory>${project.reporting.outputDirectory}/jacoco-it</outputDirectory>
445               </configuration>
446             </execution>
447           </executions>
448         </plugin>               
449                 </plugins>
450         </build>
451
452         <!-- <profiles> <profile> <id>jenkins</id> <activation> <property> <name>env.BUILD_NUMBER</name> 
453                 </property> </activation> <build> <plugins> <plugin> <groupId>org.codehaus.mojo</groupId> 
454                 <artifactId>cobertura-maven-plugin</artifactId> </plugin> <plugin> <groupId>com.att.aft.swm</groupId> 
455                 <artifactId>swm-plugin</artifactId> <version>1.4.4.12</version> <configuration> 
456                 <distFilesRootDirPath>/opt/app/dmaap/msgrtr/jenkinsbuild</distFilesRootDirPath> 
457                 <version>${project.version}-${env.BUILD_NUMBER}</version> <scriptExcludes> 
458                 <scriptExclude>**/swmpkgclean.sh</scriptExclude> </scriptExcludes> </configuration> 
459                 <executions> <execution> <id>pkgstage</id> <goals> <goal>pkgstage</goal> 
460                 </goals> </execution> <execution> <id>pkgcreate</id> <goals> <goal>pkgcreate</goal> 
461                 </goals> </execution> <execution> <id>pkginstall</id> <goals> <goal>install</goal> 
462                 </goals> <configuration> <componentName>com.att.nsa:msgrtr</componentName> 
463                 <version>${project.version}-${env.BUILD_NUMBER}</version> <waitTimeMins>4</waitTimeMins> 
464                 <properties> <property> <name>overrideDependencyConflicts</name> <value>true</value> 
465                 </property> <property> <name>AFTSWM_NOTIFY_ADDRESSES</name> <value>mailto:rs857c@att.com</value> 
466                 </property> </properties> </configuration> </execution> </executions> </plugin> 
467                 <plugin> <artifactId>maven-antrun-plugin</artifactId> <executions> <execution> 
468                 <phase>package</phase> <configuration> <tasks> <copy file="./src/main/scripts/swmpkgclean.sh" 
469                 toDir="./target" /> </tasks> </configuration> <goals> <goal>run</goal> </goals> 
470                 </execution> </executions> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> 
471                 <artifactId>maven-deploy-plugin</artifactId> <version>2.5</version> <configuration> 
472                 <skip>true</skip> </configuration> </plugin> </plugins> </build> </profile> 
473                 </profiles> -->
474 </project>