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.3-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.1.0</version>
29 <spring.version>3.2.18.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>org.apache.tomcat</groupId>
86 <artifactId>tomcat-catalina</artifactId>
87 <version>8.0.47</version>
90 <groupId>org.apache.tomcat</groupId>
91 <artifactId>tomcat-util</artifactId>
92 <version>8.0.47</version>
95 <groupId>org.apache.tomcat.embed</groupId>
96 <artifactId>tomcat-embed-core</artifactId>
97 <version>8.0.47</version>
100 <groupId>commons-collections</groupId>
101 <artifactId>commons-collections</artifactId>
102 <version>3.2.2</version>
105 <groupId>ch.qos.logback</groupId>
106 <artifactId>logback-core</artifactId>
107 <version>1.2.0</version>
110 <groupId>ch.qos.logback</groupId>
111 <artifactId>logback-classic</artifactId>
112 <version>1.2.0</version>
114 <!-- <dependency> <groupId>commons-beanutils</groupId> <artifactId>commons-beanutils</artifactId>
115 <version>1.9.2</version> <exclusions> We have JCL-over-SLF4J instead. <exclusion>
116 <groupId>commons-logging</groupId> <artifactId>commons-logging</artifactId>
117 </exclusion> </exclusions> </dependency> -->
119 <groupId>org.grails</groupId>
120 <artifactId>grails-web</artifactId>
121 <version>2.5.4</version>
124 <groupId>org.grails</groupId>
125 <artifactId>grails-web-jsp</artifactId>
130 <groupId>org.grails</groupId>
131 <artifactId>grails-bootstrap</artifactId>
132 <version>2.5.4</version>
133 <scope>compile</scope>
136 <artifactId>ant</artifactId>
137 <groupId>org.apache.ant</groupId>
140 <artifactId>jna</artifactId>
141 <groupId>net.java.dev.jna</groupId>
144 <artifactId>ant-trax</artifactId>
145 <groupId>org.apache.ant</groupId>
148 <artifactId>gant_groovy1.8</artifactId>
149 <groupId>org.codehaus.gant</groupId>
152 <artifactId>ant-launcher</artifactId>
153 <groupId>org.apache.ant</groupId>
156 <artifactId>jline</artifactId>
157 <groupId>jline</groupId>
160 <artifactId>ivy</artifactId>
161 <groupId>org.apache.ivy</groupId>
164 <artifactId>jansi</artifactId>
165 <groupId>org.fusesource.jansi</groupId>
168 <artifactId>commons-logging</artifactId>
169 <groupId>commons-logging</groupId>
172 <artifactId>ant-junit</artifactId>
173 <groupId>org.apache.ant</groupId>
178 <groupId>org.springframework</groupId>
179 <artifactId>spring-test</artifactId>
180 <version>${spring.version}</version>
184 <groupId>org.codehaus.groovy</groupId>
185 <artifactId>groovy-all</artifactId>
186 <version>2.4.4</version>
187 <scope>compile</scope>
190 <artifactId>jline</artifactId>
191 <groupId>jline</groupId>
196 <groupId>commons-fileupload</groupId>
197 <artifactId>commons-fileupload</artifactId>
198 <version>1.3.3</version>
202 <groupId>junit</groupId>
203 <artifactId>junit</artifactId>
204 <version>4.11</version>
208 <groupId>com.att.aft</groupId>
209 <artifactId>dme2</artifactId>
210 <version>3.1.200-oss</version>
213 <!-- slf4j logger -->
215 <groupId>org.slf4j</groupId>
216 <artifactId>slf4j-api</artifactId>
217 <version>1.7.6</version>
221 <groupId>javax.inject</groupId>
222 <artifactId>javax.inject</artifactId>
227 <groupId>com.att.ajsc</groupId>
228 <artifactId>ajsc-core</artifactId>
229 <version>1.0.0</version>
233 <groupId>javax.ws.rs</groupId>
234 <artifactId>javax.ws.rs-api</artifactId>
235 <version>2.0.1</version>
238 <!-- <dependency> <groupId>org.apache.cxf</groupId> <artifactId>cxf-rt-rs-client</artifactId>
239 <version>${cxf.version}</version> </dependency> <dependency> <groupId>org.apache.cxf</groupId>
240 <artifactId>cxf-rt-frontend-jaxws</artifactId> <version>${cxf.version}</version>
241 </dependency> <dependency> <groupId>org.apache.cxf</groupId> <artifactId>cxf-rt-transports-http</artifactId>
242 <version>${cxf.version}</version> </dependency> Jetty is needed if you're
243 are not using the CXFServlet <dependency> <groupId>org.apache.cxf</groupId>
244 <artifactId>cxf-rt-transports-http-jetty</artifactId> <version>${cxf.version}</version>
246 <!-- Begin - Spring Dependencies for DI -->
248 <groupId>org.springframework</groupId>
249 <artifactId>spring-core</artifactId>
250 <version>${spring.version}</version>
253 <groupId>org.springframework</groupId>
254 <artifactId>spring-context</artifactId>
255 <version>${spring.version}</version>
258 <groupId>org.springframework</groupId>
259 <artifactId>spring-webmvc</artifactId>
260 <version>${spring.version}</version>
263 <groupId>org.springframework</groupId>
264 <artifactId>spring-web</artifactId>
265 <version>${spring.version}</version>
268 <groupId>javax.servlet</groupId>
269 <artifactId>javax.servlet-api</artifactId>
270 <version>3.0.1</version>
271 <scope>provided</scope>
273 <!-- End - Spring Dependencies for DI -->
274 <!-- Begin - Dependency on Dmaap Spring layer -->
275 <!-- <dependency> <groupId>com.att.dmaap</groupId> <artifactId>dmaap-spring</artifactId>
276 <version>0.0.1-SNAPSHOT</version> </dependency> -->
277 <!-- End - Dependency on Dmaap Spring layer -->
278 <!-- Begin - Dependency on log4j for logging purpose -->
279 <!-- <dependency> <groupId>log4j</groupId> <artifactId>log4j</artifactId>
280 <version>1.2.17</version> </dependency> -->
281 <!-- Log4j's enhanced pattern layout is shipped separately <dependency>
282 <groupId>log4j</groupId> <artifactId>apache-log4j-extras</artifactId> <version>1.2.17</version>
284 <!-- End - Dependency on log4j for logging purpose -->
285 <!-- ZooKeeper Library -->
287 <groupId>org.apache.zookeeper</groupId>
288 <artifactId>zookeeper</artifactId>
289 <version>3.4.10</version>
292 <!-- JSON libraries -->
294 <groupId>org.json</groupId>
295 <artifactId>json</artifactId>
296 <version>20131018</version>
299 <!-- Apache Kafka -->
301 <groupId>org.apache.kafka</groupId>
302 <artifactId>kafka_2.10</artifactId>
303 <version>0.8.2.1</version>
307 <groupId>com.att.eelf</groupId>
308 <artifactId>eelf-core</artifactId>
309 <version>0.0.1</version>
310 <scope>compile</scope>
312 <!-- our NSA server library -->
314 <groupId>com.att.nsa</groupId>
315 <artifactId>nsaServerLibrary</artifactId>
316 <version>1.0.10</version>
319 <groupId>com.att.nsa</groupId>
320 <artifactId>saToolkit</artifactId>
321 <version>0.0.1</version>
324 <!-- our Highland Park library -->
325 <!-- <dependency> <groupId>com.att.nsa</groupId> <artifactId>highlandParkCore</artifactId>
326 <version>0.4.9</version> </dependency> -->
328 <!-- our base client library, for its command line tools -->
330 <groupId>com.att.nsa</groupId>
331 <artifactId>saClientLibrary</artifactId>
332 <version>0.0.1</version>
335 <groupId>org.apache.httpcomponents</groupId>
336 <artifactId>httpclient</artifactId>
339 <groupId>org.apache.httpcomponents</groupId>
340 <artifactId>httpclient-cache</artifactId>
345 <groupId>org.apache.httpcomponents</groupId>
346 <artifactId>httpclient</artifactId>
347 <version>4.5.3</version>
350 <groupId>org.apache.httpcomponents</groupId>
351 <artifactId>httpclient-cache</artifactId>
352 <version>4.5.3</version>
355 <groupId>org.apache.httpcomponents</groupId>
356 <artifactId>httpcore</artifactId>
357 <version>4.4.1</version>
361 <!-- explicit jline add b/c it conflicts with the zk client -->
363 <groupId>jline</groupId>
364 <artifactId>jline</artifactId>
365 <version>2.12.1</version>
369 <groupId>org.apache.curator</groupId>
370 <artifactId>curator-recipes</artifactId>
371 <version>2.6.0</version>
375 <groupId>org.apache.curator</groupId>
376 <artifactId>curator-test</artifactId>
377 <version>2.6.0</version>
382 <groupId>com.google.code.gson</groupId>
383 <artifactId>gson</artifactId>
384 <version>2.8.0</version>
388 <groupId>com.fasterxml.jackson.core</groupId>
389 <artifactId>jackson-core</artifactId>
390 <version>2.8.11</version>
395 <groupId>com.fasterxml.jackson.core</groupId>
396 <artifactId>jackson-databind</artifactId>
397 <version>2.8.11.1</version>
401 <groupId>org.powermock</groupId>
402 <artifactId>powermock-api-mockito</artifactId>
403 <version>1.6.4</version>
408 <groupId>org.powermock</groupId>
409 <artifactId>powermock-module-junit4</artifactId>
410 <version>1.6.4</version>
415 <groupId>org.powermock</groupId>
416 <artifactId>powermock-module-junit4-rule</artifactId>
417 <version>1.6.4</version>
421 <groupId>org.mockito</groupId>
422 <artifactId>mockito-core</artifactId>
423 <version>1.10.19</version>
429 <finalName>DMaaP</finalName>
432 <directory>src/main/resources</directory>
433 <filtering>true</filtering>
435 <include>**/*.properties</include>
438 <!-- <resource> <directory>src/main/config</directory> <filtering>true</filtering>
439 <includes> <include>**/log4j*.xml</include> </includes> </resource> <resource>
440 <directory>src/main/resources</directory> <filtering>false</filtering> <excludes>
441 <exclude>**/cambriaApiVersion.properties</exclude> </excludes> </resource> -->
444 <!-- <plugin> <artifactId>maven-assembly-plugin</artifactId> <version>2.4.1</version>
445 <configuration> <descriptors> <descriptor>src/assembly/dep.xml</descriptor>
446 </descriptors> </configuration> <executions> <execution> <id>make-assembly</id>
447 this is used for inheritance merges -->
448 <!-- <phase>package</phase> bind to the packaging phase <goals> <goal>single</goal>
449 </goals> </execution> </executions> </plugin> -->
452 <groupId>org.apache.maven.plugins</groupId>
453 <artifactId>maven-site-plugin</artifactId>
454 <version>3.6</version>
457 <groupId>org.apache.maven.wagon</groupId>
458 <artifactId>wagon-webdav-jackrabbit</artifactId>
459 <version>2.10</version>
464 <groupId>org.apache.maven.plugins</groupId>
465 <artifactId>maven-javadoc-plugin</artifactId>
466 <version>2.10.4</version>
468 <additionalparam>-Xdoclint:none</additionalparam>
472 <id>attach-javadocs</id>
480 <groupId>org.apache.maven.plugins</groupId>
481 <artifactId>maven-source-plugin</artifactId>
482 <version>3.0.0</version>
485 <id>attach-sources</id>
487 <goal>jar-no-fork</goal>
493 <groupId>org.apache.maven.plugins</groupId>
494 <artifactId>maven-surefire-plugin</artifactId>
495 <version>2.12.4</version>
498 <!-- exclude until junits updated <exclude>**/DME2*.java</exclude> -->
500 <!-- <skipTests>true</skipTests> -->
504 <groupId>org.codehaus.mojo</groupId>
505 <artifactId>cobertura-maven-plugin</artifactId>
506 <version>2.7</version>
509 <format>html</format>
514 <!-- <plugin> <groupId>org.jacoco</groupId> <artifactId>jacoco-maven-plugin</artifactId>
515 <version>${jacoco.version}</version> <configuration> Note: This exclusion
516 list should match <sonar.exclusions> property above <excludes> <exclude>**/gen/**</exclude>
517 <exclude>**/generated-sources/**</exclude> <exclude>**/yang-gen/**</exclude>
518 <exclude>**/pax/**</exclude> </excludes> </configuration> <executions> Prepares
519 the property pointing to the JaCoCo runtime agent which is passed as VM argument
520 when Maven the Surefire plugin is executed. <execution> <id>pre-unit-test</id>
521 <goals> <goal>prepare-agent</goal> </goals> <configuration> Sets the path
522 to the file which contains the execution data. <destFile>${project.build.directory}/code-coverage/jacoco-ut.exec</destFile>
523 Sets the name of the property containing the settings for JaCoCo runtime
524 agent. <propertyName>surefireArgLine</propertyName> </configuration> </execution>
525 Ensures that the code coverage report for unit tests is created after unit
526 tests have been run. <execution> <id>post-unit-test</id> <phase>test</phase>
527 <goals> <goal>report</goal> </goals> <configuration> Sets the path to the
528 file which contains the execution data. <dataFile>${project.build.directory}/code-coverage/jacoco-ut.exec</dataFile>
529 Sets the output directory for the code coverage report. <outputDirectory>${project.reporting.outputDirectory}/jacoco-ut</outputDirectory>
530 </configuration> </execution> <execution> <id>pre-integration-test</id> <phase>pre-integration-test</phase>
531 <goals> <goal>prepare-agent</goal> </goals> <configuration> Sets the path
532 to the file which contains the execution data. <destFile>${project.build.directory}/code-coverage/jacoco-it.exec</destFile>
533 Sets the name of the property containing the settings for JaCoCo runtime
534 agent. <propertyName>failsafeArgLine</propertyName> </configuration> </execution>
535 Ensures that the code coverage report for integration tests after integration
536 tests have been run. <execution> <id>post-integration-test</id> <phase>post-integration-test</phase>
537 <goals> <goal>report</goal> </goals> <configuration> Sets the path to the
538 file which contains the execution data. <dataFile>${project.build.directory}/code-coverage/jacoco-it.exec</dataFile>
539 Sets the output directory for the code coverage report. <outputDirectory>${project.reporting.outputDirectory}/jacoco-it</outputDirectory>
540 </configuration> </execution> </executions> </plugin> -->
544 <!-- <profiles> <profile> <id>jenkins</id> <activation> <property> <name>env.BUILD_NUMBER</name>
545 </property> </activation> <build> <plugins> <plugin> <groupId>org.codehaus.mojo</groupId>
546 <artifactId>cobertura-maven-plugin</artifactId> </plugin> <plugin> <groupId>com.att.aft.swm</groupId>
547 <artifactId>swm-plugin</artifactId> <version>1.4.4.12</version> <configuration>
548 <distFilesRootDirPath>/opt/app/dmaap/msgrtr/jenkinsbuild</distFilesRootDirPath>
549 <version>${project.version}-${env.BUILD_NUMBER}</version> <scriptExcludes>
550 <scriptExclude>**/swmpkgclean.sh</scriptExclude> </scriptExcludes> </configuration>
551 <executions> <execution> <id>pkgstage</id> <goals> <goal>pkgstage</goal>
552 </goals> </execution> <execution> <id>pkgcreate</id> <goals> <goal>pkgcreate</goal>
553 </goals> </execution> <execution> <id>pkginstall</id> <goals> <goal>install</goal>
554 </goals> <configuration> <componentName>com.att.nsa:msgrtr</componentName>
555 <version>${project.version}-${env.BUILD_NUMBER}</version> <waitTimeMins>4</waitTimeMins>
556 <properties> <property> <name>overrideDependencyConflicts</name> <value>true</value>
557 </property> <property> <name>AFTSWM_NOTIFY_ADDRESSES</name> <value>mailto:rs857c@att.com</value>
558 </property> </properties> </configuration> </execution> </executions> </plugin>
559 <plugin> <artifactId>maven-antrun-plugin</artifactId> <executions> <execution>
560 <phase>package</phase> <configuration> <tasks> <copy file="./src/main/scripts/swmpkgclean.sh"
561 toDir="./target" /> </tasks> </configuration> <goals> <goal>run</goal> </goals>
562 </execution> </executions> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId>
563 <artifactId>maven-deploy-plugin</artifactId> <version>2.5</version> <configuration>
564 <skip>true</skip> </configuration> </plugin> </plugins> </build> </profile>