1 <!-- ============LICENSE_START=======================================================
2 org.onap.dmaap ================================================================================
3 Copyright © 2017 AT&T Intellectual Property. All rights reserved. ================================================================================
4 Licensed under the Apache License, Version 2.0 (the "License"); you may not
5 use this file except in compliance with the License. You may obtain a copy
6 of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required
7 by applicable law or agreed to in writing, software distributed under the
8 License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS
9 OF ANY KIND, either express or implied. See the License for the specific
10 language governing permissions and limitations under the License. ============LICENSE_END=========================================================
11 ECOMP is a trademark and service mark of AT&T Intellectual Property. -->
12 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
13 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
14 <modelVersion>4.0.0</modelVersion>
15 <groupId>org.onap.dmaap.messagerouter.msgrtr</groupId>
16 <artifactId>msgrtr</artifactId>
17 <version>1.1.1-SNAPSHOT</version>
18 <packaging>jar</packaging>
19 <name>dmaap-messagerouter-msgrtr</name>
20 <description>Message Router - Restful interface built for kafka</description>
23 <groupId>org.onap.oparent</groupId>
24 <artifactId>oparent</artifactId>
25 <version>0.1.1</version>
29 <spring.version>3.2.15.RELEASE</spring.version>
30 <cxf.version>3.0.4</cxf.version>
31 <jstl.version>1.2</jstl.version>
32 <maven.compiler.target>1.7</maven.compiler.target>
33 <maven.compiler.source>1.7</maven.compiler.source>
34 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
37 <jacoco.version>0.7.7.201606060606</jacoco.version>
38 <sonar-jacoco-listeners.version>3.2</sonar-jacoco-listeners.version>
39 <sonar.core.codeCoveragePlugin>jacoco</sonar.core.codeCoveragePlugin>
40 <!-- Default Sonar configuration -->
41 <sonar.jacoco.reportPath>target/code-coverage/jacoco-ut.exec</sonar.jacoco.reportPath>
42 <sonar.jacoco.itReportPath>target/code-coverage/jacoco-it.exec</sonar.jacoco.itReportPath>
43 <!-- Note: This list should match jacoco-maven-plugin's exclusion list
45 <sonar.exclusions>**/gen/**,**/generated-sources/**,**/yang-gen**,**/pax/**</sonar.exclusions>
46 <sitePath>/content/sites/site/org/onap/dmaap/messagerouter/msgrtr/${project.artifactId}/${project.version}</sitePath>
47 <nexusproxy>https://nexus.onap.org</nexusproxy>
50 <!-- Distribution management -->
51 <!-- Currently all artifacts will be uploaded to att-public-group reposiotry
53 <distributionManagement>
56 <url>dav:${nexusproxy}${sitePath}</url>
58 </distributionManagement>
60 <!-- End Distribution management -->
64 <name>Apache License Version 2.0</name>
70 <name>Rajashree</name>
72 <organization>ATT</organization>
73 <organizationUrl>www.att.com</organizationUrl>
78 <organization>ATT</organization>
79 <organizationUrl>www.att.com</organizationUrl>
85 <groupId>commons-collections</groupId>
86 <artifactId>commons-collections</artifactId>
87 <version>3.2.2</version>
90 <groupId>ch.qos.logback</groupId>
91 <artifactId>logback-core</artifactId>
92 <version>1.2.0</version>
95 <groupId>ch.qos.logback</groupId>
96 <artifactId>logback-classic</artifactId>
97 <version>1.2.0</version>
99 <!-- <dependency> <groupId>commons-beanutils</groupId> <artifactId>commons-beanutils</artifactId>
100 <version>1.9.2</version> <exclusions> We have JCL-over-SLF4J instead. <exclusion>
101 <groupId>commons-logging</groupId> <artifactId>commons-logging</artifactId>
102 </exclusion> </exclusions> </dependency> -->
104 <groupId>org.grails</groupId>
105 <artifactId>grails-web</artifactId>
106 <version>2.4.4</version>
109 <groupId>org.grails</groupId>
110 <artifactId>grails-bootstrap</artifactId>
111 <version>2.5.3</version>
112 <scope>compile</scope>
115 <artifactId>ant</artifactId>
116 <groupId>org.apache.ant</groupId>
119 <artifactId>jna</artifactId>
120 <groupId>net.java.dev.jna</groupId>
123 <artifactId>ant-trax</artifactId>
124 <groupId>org.apache.ant</groupId>
127 <artifactId>gant_groovy1.8</artifactId>
128 <groupId>org.codehaus.gant</groupId>
131 <artifactId>ant-launcher</artifactId>
132 <groupId>org.apache.ant</groupId>
135 <artifactId>jline</artifactId>
136 <groupId>jline</groupId>
139 <artifactId>ivy</artifactId>
140 <groupId>org.apache.ivy</groupId>
143 <artifactId>jansi</artifactId>
144 <groupId>org.fusesource.jansi</groupId>
147 <artifactId>commons-logging</artifactId>
148 <groupId>commons-logging</groupId>
151 <artifactId>ant-junit</artifactId>
152 <groupId>org.apache.ant</groupId>
157 <groupId>org.springframework</groupId>
158 <artifactId>spring-test</artifactId>
159 <version>${spring.version}</version>
163 <groupId>org.codehaus.groovy</groupId>
164 <artifactId>groovy-all</artifactId>
165 <version>2.4.4</version>
166 <scope>compile</scope>
169 <artifactId>jline</artifactId>
170 <groupId>jline</groupId>
175 <groupId>commons-fileupload</groupId>
176 <artifactId>commons-fileupload</artifactId>
177 <version>1.3.3</version>
181 <groupId>junit</groupId>
182 <artifactId>junit</artifactId>
183 <version>4.11</version>
187 <groupId>com.att.aft</groupId>
188 <artifactId>dme2</artifactId>
189 <version>3.1.200-oss</version>
192 <!-- slf4j logger -->
194 <groupId>org.slf4j</groupId>
195 <artifactId>slf4j-api</artifactId>
196 <version>1.7.6</version>
200 <groupId>javax.inject</groupId>
201 <artifactId>javax.inject</artifactId>
206 <groupId>com.att.ajsc</groupId>
207 <artifactId>ajsc-core</artifactId>
208 <version>1.0.0</version>
212 <groupId>javax.ws.rs</groupId>
213 <artifactId>javax.ws.rs-api</artifactId>
214 <version>2.0.1</version>
217 <!-- <dependency> <groupId>org.apache.cxf</groupId> <artifactId>cxf-rt-rs-client</artifactId>
218 <version>${cxf.version}</version> </dependency> <dependency> <groupId>org.apache.cxf</groupId>
219 <artifactId>cxf-rt-frontend-jaxws</artifactId> <version>${cxf.version}</version>
220 </dependency> <dependency> <groupId>org.apache.cxf</groupId> <artifactId>cxf-rt-transports-http</artifactId>
221 <version>${cxf.version}</version> </dependency> Jetty is needed if you're
222 are not using the CXFServlet <dependency> <groupId>org.apache.cxf</groupId>
223 <artifactId>cxf-rt-transports-http-jetty</artifactId> <version>${cxf.version}</version>
225 <!-- Begin - Spring Dependencies for DI -->
227 <groupId>org.springframework</groupId>
228 <artifactId>spring-core</artifactId>
229 <version>${spring.version}</version>
232 <groupId>org.springframework</groupId>
233 <artifactId>spring-context</artifactId>
234 <version>${spring.version}</version>
237 <groupId>org.springframework</groupId>
238 <artifactId>spring-webmvc</artifactId>
239 <version>${spring.version}</version>
242 <groupId>org.springframework</groupId>
243 <artifactId>spring-web</artifactId>
244 <version>${spring.version}</version>
247 <groupId>javax.servlet</groupId>
248 <artifactId>javax.servlet-api</artifactId>
249 <version>3.0.1</version>
250 <scope>provided</scope>
252 <!-- End - Spring Dependencies for DI -->
253 <!-- Begin - Dependency on Dmaap Spring layer -->
254 <!-- <dependency> <groupId>com.att.dmaap</groupId> <artifactId>dmaap-spring</artifactId>
255 <version>0.0.1-SNAPSHOT</version> </dependency> -->
256 <!-- End - Dependency on Dmaap Spring layer -->
257 <!-- Begin - Dependency on log4j for logging purpose -->
258 <!-- <dependency> <groupId>log4j</groupId> <artifactId>log4j</artifactId>
259 <version>1.2.17</version> </dependency> -->
260 <!-- Log4j's enhanced pattern layout is shipped separately <dependency>
261 <groupId>log4j</groupId> <artifactId>apache-log4j-extras</artifactId> <version>1.2.17</version>
263 <!-- End - Dependency on log4j for logging purpose -->
264 <!-- ZooKeeper Library -->
266 <groupId>org.apache.zookeeper</groupId>
267 <artifactId>zookeeper</artifactId>
268 <version>3.4.6</version>
271 <!-- JSON libraries -->
273 <groupId>org.json</groupId>
274 <artifactId>json</artifactId>
275 <version>20131018</version>
278 <!-- Apache Kafka -->
280 <groupId>org.apache.kafka</groupId>
281 <artifactId>kafka_2.10</artifactId>
282 <version>0.8.2.1</version>
286 <groupId>com.att.eelf</groupId>
287 <artifactId>eelf-core</artifactId>
288 <version>0.0.1</version>
289 <scope>compile</scope>
291 <!-- our NSA server library -->
293 <groupId>com.att.nsa</groupId>
294 <artifactId>nsaServerLibrary</artifactId>
295 <version>1.0.10</version>
298 <groupId>com.att.nsa</groupId>
299 <artifactId>saToolkit</artifactId>
300 <version>0.0.1</version>
303 <!-- our Highland Park library -->
304 <!-- <dependency> <groupId>com.att.nsa</groupId> <artifactId>highlandParkCore</artifactId>
305 <version>0.4.9</version> </dependency> -->
307 <!-- our base client library, for its command line tools -->
309 <groupId>com.att.nsa</groupId>
310 <artifactId>saClientLibrary</artifactId>
311 <version>0.0.1</version>
314 <groupId>org.apache.httpcomponents</groupId>
315 <artifactId>httpclient</artifactId>
318 <groupId>org.apache.httpcomponents</groupId>
319 <artifactId>httpclient-cache</artifactId>
324 <groupId>org.apache.httpcomponents</groupId>
325 <artifactId>httpclient</artifactId>
326 <version>4.5.3</version>
329 <groupId>org.apache.httpcomponents</groupId>
330 <artifactId>httpclient-cache</artifactId>
331 <version>4.5.3</version>
334 <groupId>org.apache.httpcomponents</groupId>
335 <artifactId>httpcore</artifactId>
336 <version>4.4.1</version>
340 <!-- explicit jline add b/c it conflicts with the zk client -->
342 <groupId>jline</groupId>
343 <artifactId>jline</artifactId>
344 <version>2.12.1</version>
348 <groupId>org.apache.curator</groupId>
349 <artifactId>curator-recipes</artifactId>
350 <version>2.6.0</version>
354 <groupId>org.apache.curator</groupId>
355 <artifactId>curator-test</artifactId>
356 <version>2.6.0</version>
361 <groupId>com.google.code.gson</groupId>
362 <artifactId>gson</artifactId>
363 <version>2.8.0</version>
367 <groupId>com.fasterxml.jackson.core</groupId>
368 <artifactId>jackson-core</artifactId>
369 <version>2.8.11</version>
374 <groupId>com.fasterxml.jackson.core</groupId>
375 <artifactId>jackson-databind</artifactId>
376 <version>2.8.11.1</version>
380 <groupId>org.powermock</groupId>
381 <artifactId>powermock-api-mockito</artifactId>
382 <version>1.6.4</version>
387 <groupId>org.powermock</groupId>
388 <artifactId>powermock-module-junit4</artifactId>
389 <version>1.6.4</version>
394 <groupId>org.powermock</groupId>
395 <artifactId>powermock-module-junit4-rule</artifactId>
396 <version>1.6.4</version>
400 <groupId>org.mockito</groupId>
401 <artifactId>mockito-core</artifactId>
402 <version>1.10.19</version>
408 <finalName>DMaaP</finalName>
411 <directory>src/main/resources</directory>
412 <filtering>true</filtering>
414 <include>**/*.properties</include>
417 <!-- <resource> <directory>src/main/config</directory> <filtering>true</filtering>
418 <includes> <include>**/log4j*.xml</include> </includes> </resource> <resource>
419 <directory>src/main/resources</directory> <filtering>false</filtering> <excludes>
420 <exclude>**/cambriaApiVersion.properties</exclude> </excludes> </resource> -->
423 <!-- <plugin> <artifactId>maven-assembly-plugin</artifactId> <version>2.4.1</version>
424 <configuration> <descriptors> <descriptor>src/assembly/dep.xml</descriptor>
425 </descriptors> </configuration> <executions> <execution> <id>make-assembly</id>
426 this is used for inheritance merges -->
427 <!-- <phase>package</phase> bind to the packaging phase <goals> <goal>single</goal>
428 </goals> </execution> </executions> </plugin> -->
431 <groupId>org.apache.maven.plugins</groupId>
432 <artifactId>maven-site-plugin</artifactId>
433 <version>3.6</version>
436 <groupId>org.apache.maven.wagon</groupId>
437 <artifactId>wagon-webdav-jackrabbit</artifactId>
438 <version>2.10</version>
443 <groupId>org.apache.maven.plugins</groupId>
444 <artifactId>maven-javadoc-plugin</artifactId>
445 <version>2.10.4</version>
447 <additionalparam>-Xdoclint:none</additionalparam>
451 <id>attach-javadocs</id>
459 <groupId>org.apache.maven.plugins</groupId>
460 <artifactId>maven-source-plugin</artifactId>
461 <version>3.0.0</version>
464 <id>attach-sources</id>
466 <goal>jar-no-fork</goal>
472 <groupId>org.apache.maven.plugins</groupId>
473 <artifactId>maven-surefire-plugin</artifactId>
474 <version>2.12.4</version>
477 <!-- exclude until junits updated <exclude>**/DME2*.java</exclude> -->
479 <!-- <skipTests>true</skipTests> -->
483 <groupId>org.codehaus.mojo</groupId>
484 <artifactId>cobertura-maven-plugin</artifactId>
485 <version>2.7</version>
488 <format>html</format>
493 <!-- <plugin> <groupId>org.jacoco</groupId> <artifactId>jacoco-maven-plugin</artifactId>
494 <version>${jacoco.version}</version> <configuration> Note: This exclusion
495 list should match <sonar.exclusions> property above <excludes> <exclude>**/gen/**</exclude>
496 <exclude>**/generated-sources/**</exclude> <exclude>**/yang-gen/**</exclude>
497 <exclude>**/pax/**</exclude> </excludes> </configuration> <executions> Prepares
498 the property pointing to the JaCoCo runtime agent which is passed as VM argument
499 when Maven the Surefire plugin is executed. <execution> <id>pre-unit-test</id>
500 <goals> <goal>prepare-agent</goal> </goals> <configuration> Sets the path
501 to the file which contains the execution data. <destFile>${project.build.directory}/code-coverage/jacoco-ut.exec</destFile>
502 Sets the name of the property containing the settings for JaCoCo runtime
503 agent. <propertyName>surefireArgLine</propertyName> </configuration> </execution>
504 Ensures that the code coverage report for unit tests is created after unit
505 tests have been run. <execution> <id>post-unit-test</id> <phase>test</phase>
506 <goals> <goal>report</goal> </goals> <configuration> Sets the path to the
507 file which contains the execution data. <dataFile>${project.build.directory}/code-coverage/jacoco-ut.exec</dataFile>
508 Sets the output directory for the code coverage report. <outputDirectory>${project.reporting.outputDirectory}/jacoco-ut</outputDirectory>
509 </configuration> </execution> <execution> <id>pre-integration-test</id> <phase>pre-integration-test</phase>
510 <goals> <goal>prepare-agent</goal> </goals> <configuration> Sets the path
511 to the file which contains the execution data. <destFile>${project.build.directory}/code-coverage/jacoco-it.exec</destFile>
512 Sets the name of the property containing the settings for JaCoCo runtime
513 agent. <propertyName>failsafeArgLine</propertyName> </configuration> </execution>
514 Ensures that the code coverage report for integration tests after integration
515 tests have been run. <execution> <id>post-integration-test</id> <phase>post-integration-test</phase>
516 <goals> <goal>report</goal> </goals> <configuration> Sets the path to the
517 file which contains the execution data. <dataFile>${project.build.directory}/code-coverage/jacoco-it.exec</dataFile>
518 Sets the output directory for the code coverage report. <outputDirectory>${project.reporting.outputDirectory}/jacoco-it</outputDirectory>
519 </configuration> </execution> </executions> </plugin> -->
523 <!-- <profiles> <profile> <id>jenkins</id> <activation> <property> <name>env.BUILD_NUMBER</name>
524 </property> </activation> <build> <plugins> <plugin> <groupId>org.codehaus.mojo</groupId>
525 <artifactId>cobertura-maven-plugin</artifactId> </plugin> <plugin> <groupId>com.att.aft.swm</groupId>
526 <artifactId>swm-plugin</artifactId> <version>1.4.4.12</version> <configuration>
527 <distFilesRootDirPath>/opt/app/dmaap/msgrtr/jenkinsbuild</distFilesRootDirPath>
528 <version>${project.version}-${env.BUILD_NUMBER}</version> <scriptExcludes>
529 <scriptExclude>**/swmpkgclean.sh</scriptExclude> </scriptExcludes> </configuration>
530 <executions> <execution> <id>pkgstage</id> <goals> <goal>pkgstage</goal>
531 </goals> </execution> <execution> <id>pkgcreate</id> <goals> <goal>pkgcreate</goal>
532 </goals> </execution> <execution> <id>pkginstall</id> <goals> <goal>install</goal>
533 </goals> <configuration> <componentName>com.att.nsa:msgrtr</componentName>
534 <version>${project.version}-${env.BUILD_NUMBER}</version> <waitTimeMins>4</waitTimeMins>
535 <properties> <property> <name>overrideDependencyConflicts</name> <value>true</value>
536 </property> <property> <name>AFTSWM_NOTIFY_ADDRESSES</name> <value>mailto:rs857c@att.com</value>
537 </property> </properties> </configuration> </execution> </executions> </plugin>
538 <plugin> <artifactId>maven-antrun-plugin</artifactId> <executions> <execution>
539 <phase>package</phase> <configuration> <tasks> <copy file="./src/main/scripts/swmpkgclean.sh"
540 toDir="./target" /> </tasks> </configuration> <goals> <goal>run</goal> </goals>
541 </execution> </executions> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId>
542 <artifactId>maven-deploy-plugin</artifactId> <version>2.5</version> <configuration>
543 <skip>true</skip> </configuration> </plugin> </plugins> </build> </profile>