644c9a0c078b1e833c62af289ee4fbb3dc52103d
[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                 <sonar.junit.reportsPath>target/surefire-reports</sonar.junit.reportsPath>
43                 <sonar.cobertura.reportPath>target/cobertura/cobertura.ser</sonar.cobertura.reportPath>
44                 <maven.compiler.target>1.7</maven.compiler.target>
45                 <maven.compiler.source>1.7</maven.compiler.source>
46                 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
47         </properties>
48
49         <!-- Distribution management -->
50         <!-- Currently all artifacts will be uploaded to att-public-group reposiotry 
51                 on Maven Central -->
52
53         <!-- End Distribution management -->
54
55          <licenses>
56           <license>
57             <name>Apache License Version 2.0</name>
58           </license>
59         </licenses>
60
61         <developers>
62            <developer>
63              <name>Rajashree</name>
64              <email></email>
65              <organization>ATT</organization>
66              <organizationUrl>www.att.com</organizationUrl>
67            </developer>
68            <developer>
69              <name>Ramkumar</name>
70              <email></email>
71              <organization>ATT</organization>
72              <organizationUrl>www.att.com</organizationUrl>
73            </developer>
74          </developers>
75
76         <dependencies>
77
78                 <dependency>
79                         <groupId>junit</groupId>
80                         <artifactId>junit</artifactId>
81                         <version>4.11</version>
82                         <scope>test</scope>
83                 </dependency>
84
85                 <!-- slf4j logger -->
86                 <dependency>
87                         <groupId>org.slf4j</groupId>
88                         <artifactId>slf4j-api</artifactId>
89                         <version>1.7.6</version>
90                 </dependency>
91
92                 <dependency>
93                         <groupId>javax.inject</groupId>
94                         <artifactId>javax.inject</artifactId>
95                         <version>1</version>
96                 </dependency>
97
98                 <dependency>
99                         <groupId>com.att.ajsc</groupId>
100                         <artifactId>ajsc-core</artifactId>
101                         <version>1.0.0</version>
102                 </dependency>
103
104                 <dependency>
105                         <groupId>javax.ws.rs</groupId>
106                         <artifactId>javax.ws.rs-api</artifactId>
107                         <version>2.0.1</version>
108                 </dependency>
109
110                 <!-- <dependency> <groupId>org.apache.cxf</groupId> <artifactId>cxf-rt-rs-client</artifactId> 
111                         <version>${cxf.version}</version> </dependency> <dependency> <groupId>org.apache.cxf</groupId> 
112                         <artifactId>cxf-rt-frontend-jaxws</artifactId> <version>${cxf.version}</version> 
113                         </dependency> <dependency> <groupId>org.apache.cxf</groupId> <artifactId>cxf-rt-transports-http</artifactId> 
114                         <version>${cxf.version}</version> </dependency> Jetty is needed if you're 
115                         are not using the CXFServlet <dependency> <groupId>org.apache.cxf</groupId> 
116                         <artifactId>cxf-rt-transports-http-jetty</artifactId> <version>${cxf.version}</version> 
117                         </dependency> -->
118                 <!-- Begin - Spring Dependencies for DI -->
119                 <dependency>
120                         <groupId>org.springframework</groupId>
121                         <artifactId>spring-core</artifactId>
122                         <version>${spring.version}</version>
123                 </dependency>
124                 <dependency>
125                         <groupId>org.springframework</groupId>
126                         <artifactId>spring-context</artifactId>
127                         <version>${spring.version}</version>
128                 </dependency>
129                 <dependency>
130                         <groupId>org.springframework</groupId>
131                         <artifactId>spring-webmvc</artifactId>
132                         <version>${spring.version}</version>
133                 </dependency>
134                 <dependency>
135                         <groupId>org.springframework</groupId>
136                         <artifactId>spring-web</artifactId>
137                         <version>${spring.version}</version>
138                 </dependency>
139                 <dependency>
140                         <groupId>javax.servlet</groupId>
141                         <artifactId>javax.servlet-api</artifactId>
142                         <version>3.0.1</version>
143                         <scope>provided</scope>
144                 </dependency>
145                 <!-- End - Spring Dependencies for DI -->
146                 <!-- Begin - Dependency on Dmaap Spring layer -->
147                 <!-- <dependency> <groupId>com.att.dmaap</groupId> <artifactId>dmaap-spring</artifactId> 
148                         <version>0.0.1-SNAPSHOT</version> </dependency> -->
149                 <!-- End - Dependency on Dmaap Spring layer -->
150                 <!-- Begin - Dependency on log4j for logging purpose -->
151                 <!-- <dependency> <groupId>log4j</groupId> <artifactId>log4j</artifactId> 
152                         <version>1.2.17</version> </dependency> -->
153                 <!-- Log4j's enhanced pattern layout is shipped separately <dependency> 
154                         <groupId>log4j</groupId> <artifactId>apache-log4j-extras</artifactId> <version>1.2.17</version> 
155                         </dependency> -->
156                 <!-- End - Dependency on log4j for logging purpose -->
157                 <!-- ZooKeeper Library -->
158                 <dependency>
159                         <groupId>org.apache.zookeeper</groupId>
160                         <artifactId>zookeeper</artifactId>
161                         <version>3.4.6</version>
162                 </dependency>
163
164                 <!-- JSON libraries -->
165                 <dependency>
166                         <groupId>org.json</groupId>
167                         <artifactId>json</artifactId>
168                         <version>20131018</version>
169                 </dependency>
170
171                 <!-- Apache Kafka -->
172                 <dependency>
173                         <groupId>org.apache.kafka</groupId>
174                         <artifactId>kafka_2.10</artifactId>
175                         <version>0.8.2.1</version>
176                 </dependency>
177
178                 <dependency>
179                         <groupId>com.att.eelf</groupId>
180                         <artifactId>eelf-core</artifactId>
181                         <version>0.0.1</version>
182                         <scope>compile</scope>
183                 </dependency>
184                 <!-- our NSA server library -->
185                 <dependency>
186                         <groupId>com.att.nsa</groupId>
187                         <artifactId>nsaServerLibrary</artifactId>
188                         <version>1.0.10</version>
189                 </dependency>
190                 <dependency>
191                         <groupId>com.att.nsa</groupId>
192                         <artifactId>saToolkit</artifactId>
193                         <version>0.0.1</version>
194                 </dependency>
195
196                 <!-- our Highland Park library -->
197                  <!-- <dependency>
198                         <groupId>com.att.nsa</groupId>
199                         <artifactId>highlandParkCore</artifactId>
200                         <version>0.4.9</version>
201                 </dependency>  -->
202
203                 <!-- our base client library, for its command line tools -->
204                 <dependency>
205                         <groupId>com.att.nsa</groupId>
206                         <artifactId>saClientLibrary</artifactId>
207                         <version>0.0.1</version>
208                         <exclusions>
209                                 <exclusion>
210                                         <groupId>org.apache.httpcomponents</groupId>
211                                         <artifactId>httpclient</artifactId>
212                                 </exclusion>
213                                 <exclusion>
214                                         <groupId>org.apache.httpcomponents</groupId>
215                                         <artifactId>httpclient-cache</artifactId>
216                                 </exclusion>
217                         </exclusions>
218                 </dependency>
219                 <dependency>
220                         <groupId>org.apache.httpcomponents</groupId>
221                                         <artifactId>httpclient</artifactId>
222                                         <version>4.4.1</version>
223                 </dependency>
224                 <dependency>
225                         <groupId>org.apache.httpcomponents</groupId>
226                                         <artifactId>httpclient-cache</artifactId>
227                                         <version>4.4.1</version>
228                 </dependency>
229                 
230                 <!-- explicit jline add b/c it conflicts with the zk client -->
231                 <dependency>
232                         <groupId>jline</groupId>
233                         <artifactId>jline</artifactId>
234                         <version>2.12.1</version>
235                 </dependency>
236
237                 <dependency>
238                         <groupId>org.apache.curator</groupId>
239                         <artifactId>curator-recipes</artifactId>
240                         <version>2.6.0</version>
241                 </dependency>
242
243                 <dependency>
244                         <groupId>org.apache.curator</groupId>
245                         <artifactId>curator-test</artifactId>
246                         <version>2.6.0</version>
247                 </dependency>
248
249                 <dependency>
250                         <groupId>com.att.aft</groupId>
251                         <artifactId>dme2</artifactId>
252                         <version>3.1.200</version>
253                 </dependency>
254
255         <dependency>
256             <groupId>com.google.code.gson</groupId>
257             <artifactId>gson</artifactId>
258             <version>2.8.0</version>
259         </dependency>
260         </dependencies>
261         <build>
262                 <finalName>DMaaP</finalName>
263                 <resources>
264                         <resource>
265                                 <directory>src/main/resources</directory>
266                                 <filtering>true</filtering>
267                                 <includes>
268                                         <include>**/*.properties</include>
269                                 </includes>
270                         </resource>
271                         <!-- <resource> <directory>src/main/config</directory> <filtering>true</filtering> 
272                                 <includes> <include>**/log4j*.xml</include> </includes> </resource> <resource> 
273                                 <directory>src/main/resources</directory> <filtering>false</filtering> <excludes> 
274                                 <exclude>**/cambriaApiVersion.properties</exclude> </excludes> </resource> -->
275                 </resources>
276                 <plugins>
277                         <!-- <plugin> <artifactId>maven-assembly-plugin</artifactId> <version>2.4.1</version> 
278                                 <configuration> <descriptors> <descriptor>src/assembly/dep.xml</descriptor> 
279                                 </descriptors> </configuration> <executions> <execution> <id>make-assembly</id> 
280                                 this is used for inheritance merges -->
281                         <!-- <phase>package</phase> bind to the packaging phase <goals> <goal>single</goal> 
282                                 </goals> </execution> </executions> </plugin> -->
283                         <!-- -->
284                         <plugin>
285                                 <groupId>org.apache.maven.plugins</groupId>
286                                 <artifactId>maven-javadoc-plugin</artifactId>
287                                 <version>2.10.4</version>
288                                 <configuration>
289                                         <additionalparam>-Xdoclint:none</additionalparam>
290                                 </configuration>
291                                 <executions>
292                                         <execution>
293                                                 <id>attach-javadocs</id>
294                                                 <goals>
295                                                         <goal>jar</goal>
296                                                 </goals>
297                                         </execution>
298                                 </executions>
299                         </plugin>
300                         <plugin>
301                                 <groupId>org.apache.maven.plugins</groupId>
302                                 <artifactId>maven-source-plugin</artifactId>
303                                 <version>3.0.0</version>
304                                 <executions>
305                                         <execution>
306                                                 <id>attach-sources</id>
307                                                 <goals>
308                                                         <goal>jar-no-fork</goal>
309                                                 </goals>
310                                         </execution>
311                                 </executions>
312                         </plugin>                       
313                         <plugin>
314                                 <groupId>org.apache.maven.plugins</groupId>
315                                 <artifactId>maven-surefire-plugin</artifactId>
316                                 <version>2.12.4</version>
317                                 <configuration>
318                                         <excludes>
319                                                 <!-- exclude until junits updated -->
320                                                 <exclude>**/DME2*.java</exclude>
321                                         </excludes>
322                                         <!-- <skipTests>true</skipTests> -->
323                                 </configuration>
324                         </plugin>
325                                 <plugin>
326                                         <groupId>org.codehaus.mojo</groupId>
327                                         <artifactId>cobertura-maven-plugin</artifactId>
328                                         <version>2.7</version>
329                                         <configuration>
330                                             <formats>
331                                             <format>html</format>
332                                             <format>xml</format>
333                                           </formats>
334                                         </configuration>
335                            </plugin>                    
336                 </plugins>
337         </build>
338
339         <!-- <profiles> <profile> <id>jenkins</id> <activation> <property> <name>env.BUILD_NUMBER</name> 
340                 </property> </activation> <build> <plugins> <plugin> <groupId>org.codehaus.mojo</groupId> 
341                 <artifactId>cobertura-maven-plugin</artifactId> </plugin> <plugin> <groupId>com.att.aft.swm</groupId> 
342                 <artifactId>swm-plugin</artifactId> <version>1.4.4.12</version> <configuration> 
343                 <distFilesRootDirPath>/opt/app/dmaap/msgrtr/jenkinsbuild</distFilesRootDirPath> 
344                 <version>${project.version}-${env.BUILD_NUMBER}</version> <scriptExcludes> 
345                 <scriptExclude>**/swmpkgclean.sh</scriptExclude> </scriptExcludes> </configuration> 
346                 <executions> <execution> <id>pkgstage</id> <goals> <goal>pkgstage</goal> 
347                 </goals> </execution> <execution> <id>pkgcreate</id> <goals> <goal>pkgcreate</goal> 
348                 </goals> </execution> <execution> <id>pkginstall</id> <goals> <goal>install</goal> 
349                 </goals> <configuration> <componentName>com.att.nsa:msgrtr</componentName> 
350                 <version>${project.version}-${env.BUILD_NUMBER}</version> <waitTimeMins>4</waitTimeMins> 
351                 <properties> <property> <name>overrideDependencyConflicts</name> <value>true</value> 
352                 </property> <property> <name>AFTSWM_NOTIFY_ADDRESSES</name> <value>mailto:rs857c@att.com</value> 
353                 </property> </properties> </configuration> </execution> </executions> </plugin> 
354                 <plugin> <artifactId>maven-antrun-plugin</artifactId> <executions> <execution> 
355                 <phase>package</phase> <configuration> <tasks> <copy file="./src/main/scripts/swmpkgclean.sh" 
356                 toDir="./target" /> </tasks> </configuration> <goals> <goal>run</goal> </goals> 
357                 </execution> </executions> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> 
358                 <artifactId>maven-deploy-plugin</artifactId> <version>2.5</version> <configuration> 
359                 <skip>true</skip> </configuration> </plugin> </plugins> </build> </profile> 
360                 </profiles> -->
361 </project>