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.4-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>
38 <jacoco.version>0.7.7.201606060606</jacoco.version>
39 <sonar-jacoco-listeners.version>3.2</sonar-jacoco-listeners.version>
40 <sonar.core.codeCoveragePlugin>jacoco</sonar.core.codeCoveragePlugin>
41 <!-- Default Sonar configuration -->
42 <sonar.jacoco.reportPath>target/code-coverage/jacoco-ut.exec</sonar.jacoco.reportPath>
43 <sonar.jacoco.itReportPath>target/code-coverage/jacoco-it.exec</sonar.jacoco.itReportPath>
44 <!-- Note: This list should match jacoco-maven-plugin's exclusion list
46 <sonar.exclusions>**/gen/**,**/generated-sources/**,**/yang-gen**,**/pax/**</sonar.exclusions>
47 <sitePath>/content/sites/site/org/onap/dmaap/messagerouter/msgrtr/${project.artifactId}/${project.version}</sitePath>
48 <nexusproxy>https://nexus.onap.org</nexusproxy>
51 <!-- Distribution management -->
52 <!-- Currently all artifacts will be uploaded to att-public-group reposiotry
54 <distributionManagement>
57 <url>dav:${nexusproxy}${sitePath}</url>
59 </distributionManagement>
61 <!-- End Distribution management -->
65 <name>Apache License Version 2.0</name>
71 <name>Rajashree</name>
73 <organization>ATT</organization>
74 <organizationUrl>www.att.com</organizationUrl>
79 <organization>ATT</organization>
80 <organizationUrl>www.att.com</organizationUrl>
86 <groupId>org.apache.tomcat</groupId>
87 <artifactId>tomcat-catalina</artifactId>
88 <version>8.5.23</version>
91 <groupId>org.apache.tomcat</groupId>
92 <artifactId>tomcat-util</artifactId>
93 <version>8.5.23</version>
96 <groupId>org.apache.tomcat.embed</groupId>
97 <artifactId>tomcat-embed-core</artifactId>
98 <version>8.5.23</version>
101 <groupId>commons-collections</groupId>
102 <artifactId>commons-collections</artifactId>
103 <version>3.2.2</version>
106 <groupId>ch.qos.logback</groupId>
107 <artifactId>logback-core</artifactId>
108 <version>1.2.0</version>
111 <groupId>ch.qos.logback</groupId>
112 <artifactId>logback-classic</artifactId>
113 <version>1.2.0</version>
115 <!-- <dependency> <groupId>commons-beanutils</groupId> <artifactId>commons-beanutils</artifactId>
116 <version>1.9.2</version> <exclusions> We have JCL-over-SLF4J instead. <exclusion>
117 <groupId>commons-logging</groupId> <artifactId>commons-logging</artifactId>
118 </exclusion> </exclusions> </dependency> -->
120 <groupId>org.grails</groupId>
121 <artifactId>grails-web</artifactId>
122 <version>2.5.4</version>
125 <groupId>org.grails</groupId>
126 <artifactId>grails-web-jsp</artifactId>
131 <groupId>org.grails</groupId>
132 <artifactId>grails-bootstrap</artifactId>
133 <version>2.5.4</version>
134 <scope>compile</scope>
137 <artifactId>ant</artifactId>
138 <groupId>org.apache.ant</groupId>
141 <artifactId>jna</artifactId>
142 <groupId>net.java.dev.jna</groupId>
145 <artifactId>ant-trax</artifactId>
146 <groupId>org.apache.ant</groupId>
149 <artifactId>gant_groovy1.8</artifactId>
150 <groupId>org.codehaus.gant</groupId>
153 <artifactId>ant-launcher</artifactId>
154 <groupId>org.apache.ant</groupId>
157 <artifactId>jline</artifactId>
158 <groupId>jline</groupId>
161 <artifactId>ivy</artifactId>
162 <groupId>org.apache.ivy</groupId>
165 <artifactId>jansi</artifactId>
166 <groupId>org.fusesource.jansi</groupId>
169 <artifactId>commons-logging</artifactId>
170 <groupId>commons-logging</groupId>
173 <artifactId>ant-junit</artifactId>
174 <groupId>org.apache.ant</groupId>
179 <groupId>org.springframework</groupId>
180 <artifactId>spring-test</artifactId>
181 <version>${spring.version}</version>
185 <groupId>org.codehaus.groovy</groupId>
186 <artifactId>groovy-all</artifactId>
187 <version>2.4.4</version>
188 <scope>compile</scope>
191 <artifactId>jline</artifactId>
192 <groupId>jline</groupId>
197 <groupId>commons-fileupload</groupId>
198 <artifactId>commons-fileupload</artifactId>
199 <version>1.3.3</version>
203 <groupId>junit</groupId>
204 <artifactId>junit</artifactId>
205 <version>4.11</version>
209 <groupId>com.att.aft</groupId>
210 <artifactId>dme2</artifactId>
211 <version>3.1.200-oss</version>
214 <!-- slf4j logger -->
216 <groupId>org.slf4j</groupId>
217 <artifactId>slf4j-api</artifactId>
218 <version>1.7.6</version>
222 <groupId>javax.inject</groupId>
223 <artifactId>javax.inject</artifactId>
228 <groupId>com.att.ajsc</groupId>
229 <artifactId>ajsc-core</artifactId>
230 <version>1.0.0</version>
234 <groupId>javax.ws.rs</groupId>
235 <artifactId>javax.ws.rs-api</artifactId>
236 <version>2.0.1</version>
239 <!-- <dependency> <groupId>org.apache.cxf</groupId> <artifactId>cxf-rt-rs-client</artifactId>
240 <version>${cxf.version}</version> </dependency> <dependency> <groupId>org.apache.cxf</groupId>
241 <artifactId>cxf-rt-frontend-jaxws</artifactId> <version>${cxf.version}</version>
242 </dependency> <dependency> <groupId>org.apache.cxf</groupId> <artifactId>cxf-rt-transports-http</artifactId>
243 <version>${cxf.version}</version> </dependency> Jetty is needed if you're
244 are not using the CXFServlet <dependency> <groupId>org.apache.cxf</groupId>
245 <artifactId>cxf-rt-transports-http-jetty</artifactId> <version>${cxf.version}</version>
247 <!-- Begin - Spring Dependencies for DI -->
249 <groupId>org.springframework</groupId>
250 <artifactId>spring-core</artifactId>
251 <version>${spring.version}</version>
254 <groupId>org.springframework</groupId>
255 <artifactId>spring-context</artifactId>
256 <version>${spring.version}</version>
259 <groupId>org.springframework</groupId>
260 <artifactId>spring-expression</artifactId>
261 <version>4.3.16.RELEASE</version>
264 <groupId>org.springframework</groupId>
265 <artifactId>spring-webmvc</artifactId>
266 <version>4.3.15.RELEASE</version>
269 <groupId>org.springframework</groupId>
270 <artifactId>spring-core</artifactId>
271 <version>4.3.15.RELEASE</version>
274 <groupId>javax.servlet</groupId>
275 <artifactId>javax.servlet-api</artifactId>
276 <version>3.0.1</version>
277 <scope>provided</scope>
279 <!-- End - Spring Dependencies for DI -->
280 <!-- Begin - Dependency on Dmaap Spring layer -->
281 <!-- <dependency> <groupId>com.att.dmaap</groupId> <artifactId>dmaap-spring</artifactId>
282 <version>0.0.1-SNAPSHOT</version> </dependency> -->
283 <!-- End - Dependency on Dmaap Spring layer -->
284 <!-- Begin - Dependency on log4j for logging purpose -->
285 <!-- <dependency> <groupId>log4j</groupId> <artifactId>log4j</artifactId>
286 <version>1.2.17</version> </dependency> -->
287 <!-- Log4j's enhanced pattern layout is shipped separately <dependency>
288 <groupId>log4j</groupId> <artifactId>apache-log4j-extras</artifactId> <version>1.2.17</version>
290 <!-- End - Dependency on log4j for logging purpose -->
291 <!-- ZooKeeper Library -->
293 <groupId>org.apache.zookeeper</groupId>
294 <artifactId>zookeeper</artifactId>
295 <version>3.4.10</version>
298 <!-- JSON libraries -->
300 <groupId>org.json</groupId>
301 <artifactId>json</artifactId>
302 <version>20131018</version>
305 <!-- Apache Kafka -->
307 <groupId>org.apache.kafka</groupId>
308 <artifactId>kafka_2.10</artifactId>
309 <version>0.8.2.1</version>
313 <groupId>com.att.eelf</groupId>
314 <artifactId>eelf-core</artifactId>
315 <version>0.0.1</version>
316 <scope>compile</scope>
318 <!-- our NSA server library -->
320 <groupId>com.att.nsa</groupId>
321 <artifactId>nsaServerLibrary</artifactId>
322 <version>1.0.10</version>
325 <groupId>com.att.nsa</groupId>
326 <artifactId>saToolkit</artifactId>
327 <version>0.0.1</version>
330 <!-- our Highland Park library -->
331 <!-- <dependency> <groupId>com.att.nsa</groupId> <artifactId>highlandParkCore</artifactId>
332 <version>0.4.9</version> </dependency> -->
334 <!-- our base client library, for its command line tools -->
336 <groupId>com.att.nsa</groupId>
337 <artifactId>saClientLibrary</artifactId>
338 <version>0.0.1</version>
341 <groupId>org.apache.httpcomponents</groupId>
342 <artifactId>httpclient</artifactId>
345 <groupId>org.apache.httpcomponents</groupId>
346 <artifactId>httpclient-cache</artifactId>
351 <groupId>org.apache.httpcomponents</groupId>
352 <artifactId>httpclient</artifactId>
353 <version>4.5.3</version>
356 <groupId>org.apache.httpcomponents</groupId>
357 <artifactId>httpclient-cache</artifactId>
358 <version>4.5.3</version>
361 <groupId>org.apache.httpcomponents</groupId>
362 <artifactId>httpcore</artifactId>
363 <version>4.4.1</version>
367 <!-- explicit jline add b/c it conflicts with the zk client -->
369 <groupId>jline</groupId>
370 <artifactId>jline</artifactId>
371 <version>2.12.1</version>
375 <groupId>org.apache.curator</groupId>
376 <artifactId>curator-recipes</artifactId>
377 <version>2.6.0</version>
381 <groupId>org.apache.curator</groupId>
382 <artifactId>curator-test</artifactId>
383 <version>2.6.0</version>
388 <groupId>com.google.code.gson</groupId>
389 <artifactId>gson</artifactId>
390 <version>2.8.0</version>
394 <groupId>com.fasterxml.jackson.core</groupId>
395 <artifactId>jackson-core</artifactId>
396 <version>2.8.11</version>
401 <groupId>com.fasterxml.jackson.core</groupId>
402 <artifactId>jackson-databind</artifactId>
403 <version>2.8.11.1</version>
407 <groupId>org.powermock</groupId>
408 <artifactId>powermock-api-mockito</artifactId>
409 <version>1.6.4</version>
414 <groupId>org.powermock</groupId>
415 <artifactId>powermock-module-junit4</artifactId>
416 <version>1.6.4</version>
421 <groupId>org.powermock</groupId>
422 <artifactId>powermock-module-junit4-rule</artifactId>
423 <version>1.6.4</version>
427 <groupId>org.mockito</groupId>
428 <artifactId>mockito-core</artifactId>
429 <version>1.10.19</version>
435 <finalName>DMaaP</finalName>
438 <directory>src/main/resources</directory>
439 <filtering>true</filtering>
441 <include>**/*.properties</include>
444 <!-- <resource> <directory>src/main/config</directory> <filtering>true</filtering>
445 <includes> <include>**/log4j*.xml</include> </includes> </resource> <resource>
446 <directory>src/main/resources</directory> <filtering>false</filtering> <excludes>
447 <exclude>**/cambriaApiVersion.properties</exclude> </excludes> </resource> -->
450 <!-- <plugin> <artifactId>maven-assembly-plugin</artifactId> <version>2.4.1</version>
451 <configuration> <descriptors> <descriptor>src/assembly/dep.xml</descriptor>
452 </descriptors> </configuration> <executions> <execution> <id>make-assembly</id>
453 this is used for inheritance merges -->
454 <!-- <phase>package</phase> bind to the packaging phase <goals> <goal>single</goal>
455 </goals> </execution> </executions> </plugin> -->
458 <groupId>org.apache.maven.plugins</groupId>
459 <artifactId>maven-site-plugin</artifactId>
460 <version>3.6</version>
463 <groupId>org.apache.maven.wagon</groupId>
464 <artifactId>wagon-webdav-jackrabbit</artifactId>
465 <version>2.10</version>
470 <groupId>org.apache.maven.plugins</groupId>
471 <artifactId>maven-javadoc-plugin</artifactId>
472 <version>2.10.4</version>
474 <additionalparam>-Xdoclint:none</additionalparam>
478 <id>attach-javadocs</id>
486 <groupId>org.apache.maven.plugins</groupId>
487 <artifactId>maven-source-plugin</artifactId>
488 <version>3.0.0</version>
491 <id>attach-sources</id>
493 <goal>jar-no-fork</goal>
499 <groupId>org.apache.maven.plugins</groupId>
500 <artifactId>maven-surefire-plugin</artifactId>
501 <version>2.12.4</version>
504 <!-- exclude until junits updated <exclude>**/DME2*.java</exclude> -->
506 <!-- <skipTests>true</skipTests> -->
510 <groupId>org.codehaus.mojo</groupId>
511 <artifactId>cobertura-maven-plugin</artifactId>
512 <version>2.7</version>
515 <format>html</format>
520 <!-- <plugin> <groupId>org.jacoco</groupId> <artifactId>jacoco-maven-plugin</artifactId>
521 <version>${jacoco.version}</version> <configuration> Note: This exclusion
522 list should match <sonar.exclusions> property above <excludes> <exclude>**/gen/**</exclude>
523 <exclude>**/generated-sources/**</exclude> <exclude>**/yang-gen/**</exclude>
524 <exclude>**/pax/**</exclude> </excludes> </configuration> <executions> Prepares
525 the property pointing to the JaCoCo runtime agent which is passed as VM argument
526 when Maven the Surefire plugin is executed. <execution> <id>pre-unit-test</id>
527 <goals> <goal>prepare-agent</goal> </goals> <configuration> Sets the path
528 to the file which contains the execution data. <destFile>${project.build.directory}/code-coverage/jacoco-ut.exec</destFile>
529 Sets the name of the property containing the settings for JaCoCo runtime
530 agent. <propertyName>surefireArgLine</propertyName> </configuration> </execution>
531 Ensures that the code coverage report for unit tests is created after unit
532 tests have been run. <execution> <id>post-unit-test</id> <phase>test</phase>
533 <goals> <goal>report</goal> </goals> <configuration> Sets the path to the
534 file which contains the execution data. <dataFile>${project.build.directory}/code-coverage/jacoco-ut.exec</dataFile>
535 Sets the output directory for the code coverage report. <outputDirectory>${project.reporting.outputDirectory}/jacoco-ut</outputDirectory>
536 </configuration> </execution> <execution> <id>pre-integration-test</id> <phase>pre-integration-test</phase>
537 <goals> <goal>prepare-agent</goal> </goals> <configuration> Sets the path
538 to the file which contains the execution data. <destFile>${project.build.directory}/code-coverage/jacoco-it.exec</destFile>
539 Sets the name of the property containing the settings for JaCoCo runtime
540 agent. <propertyName>failsafeArgLine</propertyName> </configuration> </execution>
541 Ensures that the code coverage report for integration tests after integration
542 tests have been run. <execution> <id>post-integration-test</id> <phase>post-integration-test</phase>
543 <goals> <goal>report</goal> </goals> <configuration> Sets the path to the
544 file which contains the execution data. <dataFile>${project.build.directory}/code-coverage/jacoco-it.exec</dataFile>
545 Sets the output directory for the code coverage report. <outputDirectory>${project.reporting.outputDirectory}/jacoco-it</outputDirectory>
546 </configuration> </execution> </executions> </plugin> -->
550 <!-- <profiles> <profile> <id>jenkins</id> <activation> <property> <name>env.BUILD_NUMBER</name>
551 </property> </activation> <build> <plugins> <plugin> <groupId>org.codehaus.mojo</groupId>
552 <artifactId>cobertura-maven-plugin</artifactId> </plugin> <plugin> <groupId>com.att.aft.swm</groupId>
553 <artifactId>swm-plugin</artifactId> <version>1.4.4.12</version> <configuration>
554 <distFilesRootDirPath>/opt/app/dmaap/msgrtr/jenkinsbuild</distFilesRootDirPath>
555 <version>${project.version}-${env.BUILD_NUMBER}</version> <scriptExcludes>
556 <scriptExclude>**/swmpkgclean.sh</scriptExclude> </scriptExcludes> </configuration>
557 <executions> <execution> <id>pkgstage</id> <goals> <goal>pkgstage</goal>
558 </goals> </execution> <execution> <id>pkgcreate</id> <goals> <goal>pkgcreate</goal>
559 </goals> </execution> <execution> <id>pkginstall</id> <goals> <goal>install</goal>
560 </goals> <configuration> <componentName>com.att.nsa:msgrtr</componentName>
561 <version>${project.version}-${env.BUILD_NUMBER}</version> <waitTimeMins>4</waitTimeMins>
562 <properties> <property> <name>overrideDependencyConflicts</name> <value>true</value>
563 </property> <property> <name>AFTSWM_NOTIFY_ADDRESSES</name> <value>mailto:rs857c@att.com</value>
564 </property> </properties> </configuration> </execution> </executions> </plugin>
565 <plugin> <artifactId>maven-antrun-plugin</artifactId> <executions> <execution>
566 <phase>package</phase> <configuration> <tasks> <copy file="./src/main/scripts/swmpkgclean.sh"
567 toDir="./target" /> </tasks> </configuration> <goals> <goal>run</goal> </goals>
568 </execution> </executions> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId>
569 <artifactId>maven-deploy-plugin</artifactId> <version>2.5</version> <configuration>
570 <skip>true</skip> </configuration> </plugin> </plugins> </build> </profile>