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.20-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>2.1.0</version>
29 <onap.nexus.url>https://nexus.onap.org</onap.nexus.url>
30 <spring.version>3.2.18.RELEASE</spring.version>
31 <cxf.version>3.0.4</cxf.version>
32 <jstl.version>1.2</jstl.version>
33 <maven.compiler.target>1.7</maven.compiler.target>
34 <maven.compiler.source>1.7</maven.compiler.source>
35 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
36 <onap.nexus.url>https://nexus.onap.org</onap.nexus.url>
39 <jacoco.version>0.7.7.201606060606</jacoco.version>
40 <sonar-jacoco-listeners.version>3.2</sonar-jacoco-listeners.version>
41 <sonar.core.codeCoveragePlugin>jacoco</sonar.core.codeCoveragePlugin>
42 <!-- Default Sonar configuration -->
43 <sonar.jacoco.reportPath>target/code-coverage/jacoco-ut.exec</sonar.jacoco.reportPath>
44 <sonar.jacoco.itReportPath>target/code-coverage/jacoco-it.exec</sonar.jacoco.itReportPath>
45 <!-- Note: This list should match jacoco-maven-plugin's exclusion list
47 <sonar.exclusions>**/gen/**,**/generated-sources/**,**/yang-gen**,**/pax/**</sonar.exclusions>
48 <sitePath>/content/sites/site/org/onap/dmaap/messagerouter/msgrtr/${project.artifactId}/${project.version}</sitePath>
49 <nexusproxy>https://nexus.onap.org</nexusproxy>
52 <!-- Distribution management -->
53 <!-- Currently all artifacts will be uploaded to att-public-group reposiotry
55 <distributionManagement>
58 <url>dav:${nexusproxy}${sitePath}</url>
60 </distributionManagement>
62 <!-- End Distribution management -->
66 <name>Apache License Version 2.0</name>
72 <name>Rajashree</name>
74 <organization>ATT</organization>
75 <organizationUrl>www.att.com</organizationUrl>
80 <organization>ATT</organization>
81 <organizationUrl>www.att.com</organizationUrl>
87 <groupId>org.apache.tomcat</groupId>
88 <artifactId>tomcat-catalina</artifactId>
89 <version>8.5.23</version>
92 <groupId>org.apache.tomcat</groupId>
93 <artifactId>tomcat-util</artifactId>
94 <version>8.5.23</version>
97 <groupId>org.apache.tomcat.embed</groupId>
98 <artifactId>tomcat-embed-core</artifactId>
99 <version>8.5.23</version>
102 <groupId>commons-collections</groupId>
103 <artifactId>commons-collections</artifactId>
104 <version>3.2.2</version>
107 <groupId>ch.qos.logback</groupId>
108 <artifactId>logback-core</artifactId>
109 <version>1.2.0</version>
112 <groupId>ch.qos.logback</groupId>
113 <artifactId>logback-classic</artifactId>
114 <version>1.2.0</version>
116 <!-- <dependency> <groupId>commons-beanutils</groupId> <artifactId>commons-beanutils</artifactId>
117 <version>1.9.2</version> <exclusions> We have JCL-over-SLF4J instead. <exclusion>
118 <groupId>commons-logging</groupId> <artifactId>commons-logging</artifactId>
119 </exclusion> </exclusions> </dependency> -->
121 <groupId>org.grails</groupId>
122 <artifactId>grails-web</artifactId>
123 <version>2.5.4</version>
126 <groupId>org.grails</groupId>
127 <artifactId>grails-web-jsp</artifactId>
132 <groupId>org.grails</groupId>
133 <artifactId>grails-bootstrap</artifactId>
134 <version>2.5.4</version>
135 <scope>compile</scope>
138 <artifactId>ant</artifactId>
139 <groupId>org.apache.ant</groupId>
142 <artifactId>jna</artifactId>
143 <groupId>net.java.dev.jna</groupId>
146 <artifactId>ant-trax</artifactId>
147 <groupId>org.apache.ant</groupId>
150 <artifactId>gant_groovy1.8</artifactId>
151 <groupId>org.codehaus.gant</groupId>
154 <artifactId>ant-launcher</artifactId>
155 <groupId>org.apache.ant</groupId>
158 <artifactId>jline</artifactId>
159 <groupId>jline</groupId>
162 <artifactId>ivy</artifactId>
163 <groupId>org.apache.ivy</groupId>
166 <artifactId>jansi</artifactId>
167 <groupId>org.fusesource.jansi</groupId>
170 <artifactId>commons-logging</artifactId>
171 <groupId>commons-logging</groupId>
174 <artifactId>ant-junit</artifactId>
175 <groupId>org.apache.ant</groupId>
180 <groupId>org.springframework</groupId>
181 <artifactId>spring-test</artifactId>
182 <version>${spring.version}</version>
186 <groupId>org.codehaus.groovy</groupId>
187 <artifactId>groovy-all</artifactId>
188 <version>2.4.8</version>
189 <scope>compile</scope>
192 <artifactId>jline</artifactId>
193 <groupId>jline</groupId>
198 <groupId>commons-fileupload</groupId>
199 <artifactId>commons-fileupload</artifactId>
200 <version>1.4</version>
204 <groupId>junit</groupId>
205 <artifactId>junit</artifactId>
206 <version>4.11</version>
210 <groupId>com.att.aft</groupId>
211 <artifactId>dme2</artifactId>
212 <version>3.1.200-oss</version>
215 <groupId>javax.jms</groupId>
216 <artifactId>jms</artifactId>
221 <!-- slf4j logger -->
223 <groupId>org.slf4j</groupId>
224 <artifactId>slf4j-api</artifactId>
225 <version>1.7.6</version>
229 <groupId>javax.inject</groupId>
230 <artifactId>javax.inject</artifactId>
235 <groupId>com.att.ajsc</groupId>
236 <artifactId>ajsc-core</artifactId>
237 <version>1.0.0</version>
241 <groupId>javax.ws.rs</groupId>
242 <artifactId>javax.ws.rs-api</artifactId>
243 <version>2.0.1</version>
246 <!-- <dependency> <groupId>org.apache.cxf</groupId> <artifactId>cxf-rt-rs-client</artifactId>
247 <version>${cxf.version}</version> </dependency> <dependency> <groupId>org.apache.cxf</groupId>
248 <artifactId>cxf-rt-frontend-jaxws</artifactId> <version>${cxf.version}</version>
249 </dependency> <dependency> <groupId>org.apache.cxf</groupId> <artifactId>cxf-rt-transports-http</artifactId>
250 <version>${cxf.version}</version> </dependency> Jetty is needed if you're
251 are not using the CXFServlet <dependency> <groupId>org.apache.cxf</groupId>
252 <artifactId>cxf-rt-transports-http-jetty</artifactId> <version>${cxf.version}</version>
254 <!-- Begin - Spring Dependencies for DI -->
256 <groupId>org.springframework</groupId>
257 <artifactId>spring-context</artifactId>
258 <version>${spring.version}</version>
261 <groupId>org.springframework</groupId>
262 <artifactId>spring-expression</artifactId>
263 <version>4.3.18.RELEASE</version>
266 <groupId>org.springframework</groupId>
267 <artifactId>spring-webmvc</artifactId>
268 <version>4.3.18.RELEASE</version>
271 <groupId>org.springframework</groupId>
272 <artifactId>spring-core</artifactId>
273 <version>4.3.18.RELEASE</version>
276 <groupId>javax.servlet</groupId>
277 <artifactId>javax.servlet-api</artifactId>
278 <version>3.0.1</version>
279 <scope>provided</scope>
281 <!-- End - Spring Dependencies for DI -->
282 <!-- Begin - Dependency on Dmaap Spring layer -->
283 <!-- <dependency> <groupId>com.att.dmaap</groupId> <artifactId>dmaap-spring</artifactId>
284 <version>0.0.1-SNAPSHOT</version> </dependency> -->
285 <!-- End - Dependency on Dmaap Spring layer -->
286 <!-- Begin - Dependency on log4j for logging purpose -->
287 <!-- <dependency> <groupId>log4j</groupId> <artifactId>log4j</artifactId>
288 <version>1.2.17</version> </dependency> -->
289 <!-- Log4j's enhanced pattern layout is shipped separately <dependency>
290 <groupId>log4j</groupId> <artifactId>apache-log4j-extras</artifactId> <version>1.2.17</version>
292 <!-- End - Dependency on log4j for logging purpose -->
293 <!-- ZooKeeper Library -->
295 <groupId>org.apache.zookeeper</groupId>
296 <artifactId>zookeeper</artifactId>
297 <version>3.4.14</version>
300 <!-- JSON libraries -->
302 <groupId>org.json</groupId>
303 <artifactId>json</artifactId>
304 <version>20131018</version>
307 <!-- Apache Kafka -->
309 <groupId>org.apache.kafka</groupId>
310 <artifactId>kafka_2.11</artifactId>
311 <version>0.11.0.3</version>
314 <groupId>com.google.guava</groupId>
315 <artifactId>guava</artifactId>
316 <version>23.6.1-jre</version>
320 <groupId>com.att.eelf</groupId>
321 <artifactId>eelf-core</artifactId>
322 <version>0.0.1</version>
323 <scope>compile</scope>
325 <!-- our NSA server library -->
327 <groupId>com.att.nsa</groupId>
328 <artifactId>nsaServerLibrary</artifactId>
329 <version>1.0.10</version>
332 <groupId>org.apache.tomcat</groupId>
333 <artifactId>tomcat-catalina</artifactId>
336 <groupId>org.apache.tomcat.embed</groupId>
337 <artifactId>tomcat-embed-core</artifactId>
340 <groupId>org.apache.tomcat</groupId>
341 <artifactId>tomcat-util</artifactId>
344 <groupId>javax.mail</groupId>
345 <artifactId>mail</artifactId>
350 <groupId>com.att.nsa</groupId>
351 <artifactId>saToolkit</artifactId>
352 <version>0.0.1</version>
355 <groupId>com.sun.mail</groupId>
356 <artifactId>javax.mail</artifactId>
357 <version>1.6.0</version>
359 <!-- javax activation is part of the JDK now -->
361 <groupId>javax.activation</groupId>
362 <artifactId>activation</artifactId>
367 <!-- our Highland Park library -->
368 <!-- <dependency> <groupId>com.att.nsa</groupId> <artifactId>highlandParkCore</artifactId>
369 <version>0.4.9</version> </dependency> -->
371 <!-- our base client library, for its command line tools -->
373 <groupId>com.att.nsa</groupId>
374 <artifactId>saClientLibrary</artifactId>
375 <version>0.0.1</version>
378 <groupId>org.apache.httpcomponents</groupId>
379 <artifactId>httpclient</artifactId>
382 <groupId>org.apache.httpcomponents</groupId>
383 <artifactId>httpclient-cache</artifactId>
388 <groupId>org.apache.httpcomponents</groupId>
389 <artifactId>httpclient</artifactId>
390 <version>4.5.3</version>
393 <groupId>org.apache.httpcomponents</groupId>
394 <artifactId>httpclient-cache</artifactId>
395 <version>4.5.3</version>
398 <groupId>org.apache.httpcomponents</groupId>
399 <artifactId>httpcore</artifactId>
400 <version>4.4.1</version>
404 <!-- explicit jline add b/c it conflicts with the zk client -->
406 <groupId>jline</groupId>
407 <artifactId>jline</artifactId>
408 <version>2.12.1</version>
412 <groupId>org.apache.curator</groupId>
413 <artifactId>curator-recipes</artifactId>
414 <version>4.0.1</version>
418 <groupId>org.apache.curator</groupId>
419 <artifactId>curator-test</artifactId>
420 <version>4.0.1</version>
425 <groupId>com.google.code.gson</groupId>
426 <artifactId>gson</artifactId>
427 <version>2.8.0</version>
431 <groupId>com.fasterxml.jackson.core</groupId>
432 <artifactId>jackson-core</artifactId>
433 <version>2.8.11</version>
438 <groupId>com.fasterxml.jackson.core</groupId>
439 <artifactId>jackson-databind</artifactId>
440 <version>2.8.11.1</version>
444 <groupId>org.powermock</groupId>
445 <artifactId>powermock-api-mockito</artifactId>
446 <version>1.6.4</version>
451 <groupId>org.powermock</groupId>
452 <artifactId>powermock-module-junit4</artifactId>
453 <version>1.6.4</version>
458 <groupId>org.powermock</groupId>
459 <artifactId>powermock-module-junit4-rule</artifactId>
460 <version>1.6.4</version>
464 <groupId>org.mockito</groupId>
465 <artifactId>mockito-core</artifactId>
466 <version>1.10.19</version>
472 <finalName>DMaaP</finalName>
475 <directory>src/main/resources</directory>
476 <filtering>true</filtering>
478 <include>**/*.properties</include>
481 <!-- <resource> <directory>src/main/config</directory> <filtering>true</filtering>
482 <includes> <include>**/log4j*.xml</include> </includes> </resource> <resource>
483 <directory>src/main/resources</directory> <filtering>false</filtering> <excludes>
484 <exclude>**/cambriaApiVersion.properties</exclude> </excludes> </resource> -->
487 <!-- <plugin> <artifactId>maven-assembly-plugin</artifactId> <version>2.4.1</version>
488 <configuration> <descriptors> <descriptor>src/assembly/dep.xml</descriptor>
489 </descriptors> </configuration> <executions> <execution> <id>make-assembly</id>
490 this is used for inheritance merges -->
491 <!-- <phase>package</phase> bind to the packaging phase <goals> <goal>single</goal>
492 </goals> </execution> </executions> </plugin> -->
495 <artifactId>maven-checkstyle-plugin</artifactId>
496 <version>2.17</version>
499 <groupId>org.onap.oparent</groupId>
500 <artifactId>checkstyle</artifactId>
501 <version>2.0.0</version>
506 <id>onap-license</id>
510 <phase>process-sources</phase>
512 <configLocation>onap-checkstyle/check-license.xml</configLocation>
513 <includeResources>false</includeResources>
514 <includeTestSourceDirectory>true</includeTestSourceDirectory>
515 <includeTestResources>false</includeTestResources>
516 <sourceDirectory>${project.build.sourceDirectory}</sourceDirectory>
519 <consoleOutput>true</consoleOutput>
520 <failsOnViolation>false</failsOnViolation>
524 <id>onap-java-style</id>
530 <!-- Use Google Java Style Guide:
531 https://github.com/checkstyle/checkstyle/blob/master/src/main/resources/google_checks.xml
532 with minor changes -->
533 <configLocation>onap-checkstyle/onap-java-style.xml</configLocation>
534 <!-- <sourceDirectory> is needed so that checkstyle ignores the generated sources directory -->
535 <sourceDirectory>${project.build.sourceDirectory}</sourceDirectory>
536 <includeResources>true</includeResources>
537 <includeTestSourceDirectory>true</includeTestSourceDirectory>
538 <includeTestResources>true</includeTestResources>
541 <consoleOutput>true</consoleOutput>
542 <failsOnViolation>false</failsOnViolation>
548 <groupId>org.apache.maven.plugins</groupId>
549 <artifactId>maven-site-plugin</artifactId>
550 <version>3.6</version>
553 <groupId>org.apache.maven.wagon</groupId>
554 <artifactId>wagon-webdav-jackrabbit</artifactId>
555 <version>2.10</version>
560 <groupId>org.apache.maven.plugins</groupId>
561 <artifactId>maven-javadoc-plugin</artifactId>
562 <version>2.10.4</version>
564 <additionalparam>-Xdoclint:none</additionalparam>
568 <id>attach-javadocs</id>
576 <groupId>org.apache.maven.plugins</groupId>
577 <artifactId>maven-source-plugin</artifactId>
578 <version>3.0.0</version>
581 <id>attach-sources</id>
583 <goal>jar-no-fork</goal>
589 <groupId>org.apache.maven.plugins</groupId>
590 <artifactId>maven-surefire-plugin</artifactId>
591 <version>2.12.4</version>
594 <!-- exclude until junits updated <exclude>**/DME2*.java</exclude> -->
596 <!-- <skipTests>true</skipTests> -->
600 <groupId>org.codehaus.mojo</groupId>
601 <artifactId>cobertura-maven-plugin</artifactId>
602 <version>2.7</version>
605 <format>html</format>
610 <!-- <plugin> <groupId>org.jacoco</groupId> <artifactId>jacoco-maven-plugin</artifactId>
611 <version>${jacoco.version}</version> <configuration> Note: This exclusion
612 list should match <sonar.exclusions> property above <excludes> <exclude>**/gen/**</exclude>
613 <exclude>**/generated-sources/**</exclude> <exclude>**/yang-gen/**</exclude>
614 <exclude>**/pax/**</exclude> </excludes> </configuration> <executions> Prepares
615 the property pointing to the JaCoCo runtime agent which is passed as VM argument
616 when Maven the Surefire plugin is executed. <execution> <id>pre-unit-test</id>
617 <goals> <goal>prepare-agent</goal> </goals> <configuration> Sets the path
618 to the file which contains the execution data. <destFile>${project.build.directory}/code-coverage/jacoco-ut.exec</destFile>
619 Sets the name of the property containing the settings for JaCoCo runtime
620 agent. <propertyName>surefireArgLine</propertyName> </configuration> </execution>
621 Ensures that the code coverage report for unit tests is created after unit
622 tests have been run. <execution> <id>post-unit-test</id> <phase>test</phase>
623 <goals> <goal>report</goal> </goals> <configuration> Sets the path to the
624 file which contains the execution data. <dataFile>${project.build.directory}/code-coverage/jacoco-ut.exec</dataFile>
625 Sets the output directory for the code coverage report. <outputDirectory>${project.reporting.outputDirectory}/jacoco-ut</outputDirectory>
626 </configuration> </execution> <execution> <id>pre-integration-test</id> <phase>pre-integration-test</phase>
627 <goals> <goal>prepare-agent</goal> </goals> <configuration> Sets the path
628 to the file which contains the execution data. <destFile>${project.build.directory}/code-coverage/jacoco-it.exec</destFile>
629 Sets the name of the property containing the settings for JaCoCo runtime
630 agent. <propertyName>failsafeArgLine</propertyName> </configuration> </execution>
631 Ensures that the code coverage report for integration tests after integration
632 tests have been run. <execution> <id>post-integration-test</id> <phase>post-integration-test</phase>
633 <goals> <goal>report</goal> </goals> <configuration> Sets the path to the
634 file which contains the execution data. <dataFile>${project.build.directory}/code-coverage/jacoco-it.exec</dataFile>
635 Sets the output directory for the code coverage report. <outputDirectory>${project.reporting.outputDirectory}/jacoco-it</outputDirectory>
636 </configuration> </execution> </executions> </plugin> -->
640 <!-- <profiles> <profile> <id>jenkins</id> <activation> <property> <name>env.BUILD_NUMBER</name>
641 </property> </activation> <build> <plugins> <plugin> <groupId>org.codehaus.mojo</groupId>
642 <artifactId>cobertura-maven-plugin</artifactId> </plugin> <plugin> <groupId>com.att.aft.swm</groupId>
643 <artifactId>swm-plugin</artifactId> <version>1.4.4.12</version> <configuration>
644 <distFilesRootDirPath>/opt/app/dmaap/msgrtr/jenkinsbuild</distFilesRootDirPath>
645 <version>${project.version}-${env.BUILD_NUMBER}</version> <scriptExcludes>
646 <scriptExclude>**/swmpkgclean.sh</scriptExclude> </scriptExcludes> </configuration>
647 <executions> <execution> <id>pkgstage</id> <goals> <goal>pkgstage</goal>
648 </goals> </execution> <execution> <id>pkgcreate</id> <goals> <goal>pkgcreate</goal>
649 </goals> </execution> <execution> <id>pkginstall</id> <goals> <goal>install</goal>
650 </goals> <configuration> <componentName>com.att.nsa:msgrtr</componentName>
651 <version>${project.version}-${env.BUILD_NUMBER}</version> <waitTimeMins>4</waitTimeMins>
652 <properties> <property> <name>overrideDependencyConflicts</name> <value>true</value>
653 </property> <property> <name>AFTSWM_NOTIFY_ADDRESSES</name> <value>mailto:rs857c@att.com</value>
654 </property> </properties> </configuration> </execution> </executions> </plugin>
655 <plugin> <artifactId>maven-antrun-plugin</artifactId> <executions> <execution>
656 <phase>package</phase> <configuration> <tasks> <copy file="./src/main/scripts/swmpkgclean.sh"
657 toDir="./target" /> </tasks> </configuration> <goals> <goal>run</goal> </goals>
658 </execution> </executions> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId>
659 <artifactId>maven-deploy-plugin</artifactId> <version>2.5</version> <configuration>
660 <skip>true</skip> </configuration> </plugin> </plugins> </build> </profile>