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