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.13-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>1.2.1</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.3.3</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 <!-- slf4j logger -->
217 <groupId>org.slf4j</groupId>
218 <artifactId>slf4j-api</artifactId>
219 <version>1.7.6</version>
223 <groupId>javax.inject</groupId>
224 <artifactId>javax.inject</artifactId>
229 <groupId>com.att.ajsc</groupId>
230 <artifactId>ajsc-core</artifactId>
231 <version>1.0.0</version>
235 <groupId>javax.ws.rs</groupId>
236 <artifactId>javax.ws.rs-api</artifactId>
237 <version>2.0.1</version>
240 <!-- <dependency> <groupId>org.apache.cxf</groupId> <artifactId>cxf-rt-rs-client</artifactId>
241 <version>${cxf.version}</version> </dependency> <dependency> <groupId>org.apache.cxf</groupId>
242 <artifactId>cxf-rt-frontend-jaxws</artifactId> <version>${cxf.version}</version>
243 </dependency> <dependency> <groupId>org.apache.cxf</groupId> <artifactId>cxf-rt-transports-http</artifactId>
244 <version>${cxf.version}</version> </dependency> Jetty is needed if you're
245 are not using the CXFServlet <dependency> <groupId>org.apache.cxf</groupId>
246 <artifactId>cxf-rt-transports-http-jetty</artifactId> <version>${cxf.version}</version>
248 <!-- Begin - Spring Dependencies for DI -->
250 <groupId>org.springframework</groupId>
251 <artifactId>spring-context</artifactId>
252 <version>${spring.version}</version>
255 <groupId>org.springframework</groupId>
256 <artifactId>spring-expression</artifactId>
257 <version>4.3.18.RELEASE</version>
260 <groupId>org.springframework</groupId>
261 <artifactId>spring-webmvc</artifactId>
262 <version>4.3.18.RELEASE</version>
265 <groupId>org.springframework</groupId>
266 <artifactId>spring-core</artifactId>
267 <version>4.3.18.RELEASE</version>
270 <groupId>javax.servlet</groupId>
271 <artifactId>javax.servlet-api</artifactId>
272 <version>3.0.1</version>
273 <scope>provided</scope>
275 <!-- End - Spring Dependencies for DI -->
276 <!-- Begin - Dependency on Dmaap Spring layer -->
277 <!-- <dependency> <groupId>com.att.dmaap</groupId> <artifactId>dmaap-spring</artifactId>
278 <version>0.0.1-SNAPSHOT</version> </dependency> -->
279 <!-- End - Dependency on Dmaap Spring layer -->
280 <!-- Begin - Dependency on log4j for logging purpose -->
281 <!-- <dependency> <groupId>log4j</groupId> <artifactId>log4j</artifactId>
282 <version>1.2.17</version> </dependency> -->
283 <!-- Log4j's enhanced pattern layout is shipped separately <dependency>
284 <groupId>log4j</groupId> <artifactId>apache-log4j-extras</artifactId> <version>1.2.17</version>
286 <!-- End - Dependency on log4j for logging purpose -->
287 <!-- ZooKeeper Library -->
289 <groupId>org.apache.zookeeper</groupId>
290 <artifactId>zookeeper</artifactId>
291 <version>3.4.10</version>
294 <!-- JSON libraries -->
296 <groupId>org.json</groupId>
297 <artifactId>json</artifactId>
298 <version>20131018</version>
301 <!-- Apache Kafka -->
303 <groupId>org.apache.kafka</groupId>
304 <artifactId>kafka_2.11</artifactId>
305 <version>0.11.0.3</version>
308 <groupId>com.google.guava</groupId>
309 <artifactId>guava</artifactId>
310 <version>23.6.1-jre</version>
314 <groupId>com.att.eelf</groupId>
315 <artifactId>eelf-core</artifactId>
316 <version>0.0.1</version>
317 <scope>compile</scope>
319 <!-- our NSA server library -->
321 <groupId>com.att.nsa</groupId>
322 <artifactId>nsaServerLibrary</artifactId>
323 <version>1.0.10</version>
326 <groupId>org.apache.tomcat</groupId>
327 <artifactId>tomcat-catalina</artifactId>
330 <groupId>org.apache.tomcat.embed</groupId>
331 <artifactId>tomcat-embed-core</artifactId>
334 <groupId>org.apache.tomcat</groupId>
335 <artifactId>tomcat-util</artifactId>
340 <groupId>com.att.nsa</groupId>
341 <artifactId>saToolkit</artifactId>
342 <version>0.0.1</version>
345 <!-- our Highland Park library -->
346 <!-- <dependency> <groupId>com.att.nsa</groupId> <artifactId>highlandParkCore</artifactId>
347 <version>0.4.9</version> </dependency> -->
349 <!-- our base client library, for its command line tools -->
351 <groupId>com.att.nsa</groupId>
352 <artifactId>saClientLibrary</artifactId>
353 <version>0.0.1</version>
356 <groupId>org.apache.httpcomponents</groupId>
357 <artifactId>httpclient</artifactId>
360 <groupId>org.apache.httpcomponents</groupId>
361 <artifactId>httpclient-cache</artifactId>
366 <groupId>org.apache.httpcomponents</groupId>
367 <artifactId>httpclient</artifactId>
368 <version>4.5.3</version>
371 <groupId>org.apache.httpcomponents</groupId>
372 <artifactId>httpclient-cache</artifactId>
373 <version>4.5.3</version>
376 <groupId>org.apache.httpcomponents</groupId>
377 <artifactId>httpcore</artifactId>
378 <version>4.4.1</version>
382 <!-- explicit jline add b/c it conflicts with the zk client -->
384 <groupId>jline</groupId>
385 <artifactId>jline</artifactId>
386 <version>2.12.1</version>
390 <groupId>org.apache.curator</groupId>
391 <artifactId>curator-recipes</artifactId>
392 <version>4.0.1</version>
396 <groupId>org.apache.curator</groupId>
397 <artifactId>curator-test</artifactId>
398 <version>4.0.1</version>
403 <groupId>com.google.code.gson</groupId>
404 <artifactId>gson</artifactId>
405 <version>2.8.0</version>
409 <groupId>com.fasterxml.jackson.core</groupId>
410 <artifactId>jackson-core</artifactId>
411 <version>2.8.11</version>
416 <groupId>com.fasterxml.jackson.core</groupId>
417 <artifactId>jackson-databind</artifactId>
418 <version>2.8.11.1</version>
422 <groupId>org.powermock</groupId>
423 <artifactId>powermock-api-mockito</artifactId>
424 <version>1.6.4</version>
429 <groupId>org.powermock</groupId>
430 <artifactId>powermock-module-junit4</artifactId>
431 <version>1.6.4</version>
436 <groupId>org.powermock</groupId>
437 <artifactId>powermock-module-junit4-rule</artifactId>
438 <version>1.6.4</version>
442 <groupId>org.mockito</groupId>
443 <artifactId>mockito-core</artifactId>
444 <version>1.10.19</version>
450 <finalName>DMaaP</finalName>
453 <directory>src/main/resources</directory>
454 <filtering>true</filtering>
456 <include>**/*.properties</include>
459 <!-- <resource> <directory>src/main/config</directory> <filtering>true</filtering>
460 <includes> <include>**/log4j*.xml</include> </includes> </resource> <resource>
461 <directory>src/main/resources</directory> <filtering>false</filtering> <excludes>
462 <exclude>**/cambriaApiVersion.properties</exclude> </excludes> </resource> -->
465 <!-- <plugin> <artifactId>maven-assembly-plugin</artifactId> <version>2.4.1</version>
466 <configuration> <descriptors> <descriptor>src/assembly/dep.xml</descriptor>
467 </descriptors> </configuration> <executions> <execution> <id>make-assembly</id>
468 this is used for inheritance merges -->
469 <!-- <phase>package</phase> bind to the packaging phase <goals> <goal>single</goal>
470 </goals> </execution> </executions> </plugin> -->
473 <groupId>org.apache.maven.plugins</groupId>
474 <artifactId>maven-site-plugin</artifactId>
475 <version>3.6</version>
478 <groupId>org.apache.maven.wagon</groupId>
479 <artifactId>wagon-webdav-jackrabbit</artifactId>
480 <version>2.10</version>
485 <groupId>org.apache.maven.plugins</groupId>
486 <artifactId>maven-javadoc-plugin</artifactId>
487 <version>2.10.4</version>
489 <additionalparam>-Xdoclint:none</additionalparam>
493 <id>attach-javadocs</id>
501 <groupId>org.apache.maven.plugins</groupId>
502 <artifactId>maven-source-plugin</artifactId>
503 <version>3.0.0</version>
506 <id>attach-sources</id>
508 <goal>jar-no-fork</goal>
514 <groupId>org.apache.maven.plugins</groupId>
515 <artifactId>maven-surefire-plugin</artifactId>
516 <version>2.12.4</version>
519 <!-- exclude until junits updated <exclude>**/DME2*.java</exclude> -->
521 <!-- <skipTests>true</skipTests> -->
525 <groupId>org.codehaus.mojo</groupId>
526 <artifactId>cobertura-maven-plugin</artifactId>
527 <version>2.7</version>
530 <format>html</format>
535 <!-- <plugin> <groupId>org.jacoco</groupId> <artifactId>jacoco-maven-plugin</artifactId>
536 <version>${jacoco.version}</version> <configuration> Note: This exclusion
537 list should match <sonar.exclusions> property above <excludes> <exclude>**/gen/**</exclude>
538 <exclude>**/generated-sources/**</exclude> <exclude>**/yang-gen/**</exclude>
539 <exclude>**/pax/**</exclude> </excludes> </configuration> <executions> Prepares
540 the property pointing to the JaCoCo runtime agent which is passed as VM argument
541 when Maven the Surefire plugin is executed. <execution> <id>pre-unit-test</id>
542 <goals> <goal>prepare-agent</goal> </goals> <configuration> Sets the path
543 to the file which contains the execution data. <destFile>${project.build.directory}/code-coverage/jacoco-ut.exec</destFile>
544 Sets the name of the property containing the settings for JaCoCo runtime
545 agent. <propertyName>surefireArgLine</propertyName> </configuration> </execution>
546 Ensures that the code coverage report for unit tests is created after unit
547 tests have been run. <execution> <id>post-unit-test</id> <phase>test</phase>
548 <goals> <goal>report</goal> </goals> <configuration> Sets the path to the
549 file which contains the execution data. <dataFile>${project.build.directory}/code-coverage/jacoco-ut.exec</dataFile>
550 Sets the output directory for the code coverage report. <outputDirectory>${project.reporting.outputDirectory}/jacoco-ut</outputDirectory>
551 </configuration> </execution> <execution> <id>pre-integration-test</id> <phase>pre-integration-test</phase>
552 <goals> <goal>prepare-agent</goal> </goals> <configuration> Sets the path
553 to the file which contains the execution data. <destFile>${project.build.directory}/code-coverage/jacoco-it.exec</destFile>
554 Sets the name of the property containing the settings for JaCoCo runtime
555 agent. <propertyName>failsafeArgLine</propertyName> </configuration> </execution>
556 Ensures that the code coverage report for integration tests after integration
557 tests have been run. <execution> <id>post-integration-test</id> <phase>post-integration-test</phase>
558 <goals> <goal>report</goal> </goals> <configuration> Sets the path to the
559 file which contains the execution data. <dataFile>${project.build.directory}/code-coverage/jacoco-it.exec</dataFile>
560 Sets the output directory for the code coverage report. <outputDirectory>${project.reporting.outputDirectory}/jacoco-it</outputDirectory>
561 </configuration> </execution> </executions> </plugin> -->
565 <!-- <profiles> <profile> <id>jenkins</id> <activation> <property> <name>env.BUILD_NUMBER</name>
566 </property> </activation> <build> <plugins> <plugin> <groupId>org.codehaus.mojo</groupId>
567 <artifactId>cobertura-maven-plugin</artifactId> </plugin> <plugin> <groupId>com.att.aft.swm</groupId>
568 <artifactId>swm-plugin</artifactId> <version>1.4.4.12</version> <configuration>
569 <distFilesRootDirPath>/opt/app/dmaap/msgrtr/jenkinsbuild</distFilesRootDirPath>
570 <version>${project.version}-${env.BUILD_NUMBER}</version> <scriptExcludes>
571 <scriptExclude>**/swmpkgclean.sh</scriptExclude> </scriptExcludes> </configuration>
572 <executions> <execution> <id>pkgstage</id> <goals> <goal>pkgstage</goal>
573 </goals> </execution> <execution> <id>pkgcreate</id> <goals> <goal>pkgcreate</goal>
574 </goals> </execution> <execution> <id>pkginstall</id> <goals> <goal>install</goal>
575 </goals> <configuration> <componentName>com.att.nsa:msgrtr</componentName>
576 <version>${project.version}-${env.BUILD_NUMBER}</version> <waitTimeMins>4</waitTimeMins>
577 <properties> <property> <name>overrideDependencyConflicts</name> <value>true</value>
578 </property> <property> <name>AFTSWM_NOTIFY_ADDRESSES</name> <value>mailto:rs857c@att.com</value>
579 </property> </properties> </configuration> </execution> </executions> </plugin>
580 <plugin> <artifactId>maven-antrun-plugin</artifactId> <executions> <execution>
581 <phase>package</phase> <configuration> <tasks> <copy file="./src/main/scripts/swmpkgclean.sh"
582 toDir="./target" /> </tasks> </configuration> <goals> <goal>run</goal> </goals>
583 </execution> </executions> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId>
584 <artifactId>maven-deploy-plugin</artifactId> <version>2.5</version> <configuration>
585 <skip>true</skip> </configuration> </plugin> </plugins> </build> </profile>