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