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.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-web-jsp</artifactId>
115 <groupId>org.grails</groupId>
116 <artifactId>grails-bootstrap</artifactId>
117 <version>2.5.3</version>
118 <scope>compile</scope>
121 <artifactId>ant</artifactId>
122 <groupId>org.apache.ant</groupId>
125 <artifactId>jna</artifactId>
126 <groupId>net.java.dev.jna</groupId>
129 <artifactId>ant-trax</artifactId>
130 <groupId>org.apache.ant</groupId>
133 <artifactId>gant_groovy1.8</artifactId>
134 <groupId>org.codehaus.gant</groupId>
137 <artifactId>ant-launcher</artifactId>
138 <groupId>org.apache.ant</groupId>
141 <artifactId>jline</artifactId>
142 <groupId>jline</groupId>
145 <artifactId>ivy</artifactId>
146 <groupId>org.apache.ivy</groupId>
149 <artifactId>jansi</artifactId>
150 <groupId>org.fusesource.jansi</groupId>
153 <artifactId>commons-logging</artifactId>
154 <groupId>commons-logging</groupId>
157 <artifactId>ant-junit</artifactId>
158 <groupId>org.apache.ant</groupId>
163 <groupId>org.springframework</groupId>
164 <artifactId>spring-test</artifactId>
165 <version>${spring.version}</version>
169 <groupId>org.codehaus.groovy</groupId>
170 <artifactId>groovy-all</artifactId>
171 <version>2.4.4</version>
172 <scope>compile</scope>
175 <artifactId>jline</artifactId>
176 <groupId>jline</groupId>
181 <groupId>commons-fileupload</groupId>
182 <artifactId>commons-fileupload</artifactId>
183 <version>1.3.3</version>
187 <groupId>junit</groupId>
188 <artifactId>junit</artifactId>
189 <version>4.11</version>
193 <groupId>com.att.aft</groupId>
194 <artifactId>dme2</artifactId>
195 <version>3.1.200-oss</version>
198 <!-- slf4j logger -->
200 <groupId>org.slf4j</groupId>
201 <artifactId>slf4j-api</artifactId>
202 <version>1.7.6</version>
206 <groupId>javax.inject</groupId>
207 <artifactId>javax.inject</artifactId>
212 <groupId>com.att.ajsc</groupId>
213 <artifactId>ajsc-core</artifactId>
214 <version>1.0.0</version>
218 <groupId>javax.ws.rs</groupId>
219 <artifactId>javax.ws.rs-api</artifactId>
220 <version>2.0.1</version>
223 <!-- <dependency> <groupId>org.apache.cxf</groupId> <artifactId>cxf-rt-rs-client</artifactId>
224 <version>${cxf.version}</version> </dependency> <dependency> <groupId>org.apache.cxf</groupId>
225 <artifactId>cxf-rt-frontend-jaxws</artifactId> <version>${cxf.version}</version>
226 </dependency> <dependency> <groupId>org.apache.cxf</groupId> <artifactId>cxf-rt-transports-http</artifactId>
227 <version>${cxf.version}</version> </dependency> Jetty is needed if you're
228 are not using the CXFServlet <dependency> <groupId>org.apache.cxf</groupId>
229 <artifactId>cxf-rt-transports-http-jetty</artifactId> <version>${cxf.version}</version>
231 <!-- Begin - Spring Dependencies for DI -->
233 <groupId>org.springframework</groupId>
234 <artifactId>spring-core</artifactId>
235 <version>${spring.version}</version>
238 <groupId>org.springframework</groupId>
239 <artifactId>spring-context</artifactId>
240 <version>${spring.version}</version>
243 <groupId>org.springframework</groupId>
244 <artifactId>spring-webmvc</artifactId>
245 <version>${spring.version}</version>
248 <groupId>org.springframework</groupId>
249 <artifactId>spring-web</artifactId>
250 <version>${spring.version}</version>
253 <groupId>javax.servlet</groupId>
254 <artifactId>javax.servlet-api</artifactId>
255 <version>3.0.1</version>
256 <scope>provided</scope>
258 <!-- End - Spring Dependencies for DI -->
259 <!-- Begin - Dependency on Dmaap Spring layer -->
260 <!-- <dependency> <groupId>com.att.dmaap</groupId> <artifactId>dmaap-spring</artifactId>
261 <version>0.0.1-SNAPSHOT</version> </dependency> -->
262 <!-- End - Dependency on Dmaap Spring layer -->
263 <!-- Begin - Dependency on log4j for logging purpose -->
264 <!-- <dependency> <groupId>log4j</groupId> <artifactId>log4j</artifactId>
265 <version>1.2.17</version> </dependency> -->
266 <!-- Log4j's enhanced pattern layout is shipped separately <dependency>
267 <groupId>log4j</groupId> <artifactId>apache-log4j-extras</artifactId> <version>1.2.17</version>
269 <!-- End - Dependency on log4j for logging purpose -->
270 <!-- ZooKeeper Library -->
272 <groupId>org.apache.zookeeper</groupId>
273 <artifactId>zookeeper</artifactId>
274 <version>3.4.6</version>
277 <!-- JSON libraries -->
279 <groupId>org.json</groupId>
280 <artifactId>json</artifactId>
281 <version>20131018</version>
284 <!-- Apache Kafka -->
286 <groupId>org.apache.kafka</groupId>
287 <artifactId>kafka_2.10</artifactId>
288 <version>0.8.2.1</version>
292 <groupId>com.att.eelf</groupId>
293 <artifactId>eelf-core</artifactId>
294 <version>0.0.1</version>
295 <scope>compile</scope>
297 <!-- our NSA server library -->
299 <groupId>com.att.nsa</groupId>
300 <artifactId>nsaServerLibrary</artifactId>
301 <version>1.0.10</version>
304 <groupId>com.att.nsa</groupId>
305 <artifactId>saToolkit</artifactId>
306 <version>0.0.1</version>
309 <!-- our Highland Park library -->
310 <!-- <dependency> <groupId>com.att.nsa</groupId> <artifactId>highlandParkCore</artifactId>
311 <version>0.4.9</version> </dependency> -->
313 <!-- our base client library, for its command line tools -->
315 <groupId>com.att.nsa</groupId>
316 <artifactId>saClientLibrary</artifactId>
317 <version>0.0.1</version>
320 <groupId>org.apache.httpcomponents</groupId>
321 <artifactId>httpclient</artifactId>
324 <groupId>org.apache.httpcomponents</groupId>
325 <artifactId>httpclient-cache</artifactId>
330 <groupId>org.apache.httpcomponents</groupId>
331 <artifactId>httpclient</artifactId>
332 <version>4.5.3</version>
335 <groupId>org.apache.httpcomponents</groupId>
336 <artifactId>httpclient-cache</artifactId>
337 <version>4.5.3</version>
340 <groupId>org.apache.httpcomponents</groupId>
341 <artifactId>httpcore</artifactId>
342 <version>4.4.1</version>
346 <!-- explicit jline add b/c it conflicts with the zk client -->
348 <groupId>jline</groupId>
349 <artifactId>jline</artifactId>
350 <version>2.12.1</version>
354 <groupId>org.apache.curator</groupId>
355 <artifactId>curator-recipes</artifactId>
356 <version>2.6.0</version>
360 <groupId>org.apache.curator</groupId>
361 <artifactId>curator-test</artifactId>
362 <version>2.6.0</version>
367 <groupId>com.google.code.gson</groupId>
368 <artifactId>gson</artifactId>
369 <version>2.8.0</version>
373 <groupId>com.fasterxml.jackson.core</groupId>
374 <artifactId>jackson-core</artifactId>
375 <version>2.8.11</version>
380 <groupId>com.fasterxml.jackson.core</groupId>
381 <artifactId>jackson-databind</artifactId>
382 <version>2.8.11.1</version>
386 <groupId>org.powermock</groupId>
387 <artifactId>powermock-api-mockito</artifactId>
388 <version>1.6.4</version>
393 <groupId>org.powermock</groupId>
394 <artifactId>powermock-module-junit4</artifactId>
395 <version>1.6.4</version>
400 <groupId>org.powermock</groupId>
401 <artifactId>powermock-module-junit4-rule</artifactId>
402 <version>1.6.4</version>
406 <groupId>org.mockito</groupId>
407 <artifactId>mockito-core</artifactId>
408 <version>1.10.19</version>
414 <finalName>DMaaP</finalName>
417 <directory>src/main/resources</directory>
418 <filtering>true</filtering>
420 <include>**/*.properties</include>
423 <!-- <resource> <directory>src/main/config</directory> <filtering>true</filtering>
424 <includes> <include>**/log4j*.xml</include> </includes> </resource> <resource>
425 <directory>src/main/resources</directory> <filtering>false</filtering> <excludes>
426 <exclude>**/cambriaApiVersion.properties</exclude> </excludes> </resource> -->
429 <!-- <plugin> <artifactId>maven-assembly-plugin</artifactId> <version>2.4.1</version>
430 <configuration> <descriptors> <descriptor>src/assembly/dep.xml</descriptor>
431 </descriptors> </configuration> <executions> <execution> <id>make-assembly</id>
432 this is used for inheritance merges -->
433 <!-- <phase>package</phase> bind to the packaging phase <goals> <goal>single</goal>
434 </goals> </execution> </executions> </plugin> -->
437 <groupId>org.apache.maven.plugins</groupId>
438 <artifactId>maven-site-plugin</artifactId>
439 <version>3.6</version>
442 <groupId>org.apache.maven.wagon</groupId>
443 <artifactId>wagon-webdav-jackrabbit</artifactId>
444 <version>2.10</version>
449 <groupId>org.apache.maven.plugins</groupId>
450 <artifactId>maven-javadoc-plugin</artifactId>
451 <version>2.10.4</version>
453 <additionalparam>-Xdoclint:none</additionalparam>
457 <id>attach-javadocs</id>
465 <groupId>org.apache.maven.plugins</groupId>
466 <artifactId>maven-source-plugin</artifactId>
467 <version>3.0.0</version>
470 <id>attach-sources</id>
472 <goal>jar-no-fork</goal>
478 <groupId>org.apache.maven.plugins</groupId>
479 <artifactId>maven-surefire-plugin</artifactId>
480 <version>2.12.4</version>
483 <!-- exclude until junits updated <exclude>**/DME2*.java</exclude> -->
485 <!-- <skipTests>true</skipTests> -->
489 <groupId>org.codehaus.mojo</groupId>
490 <artifactId>cobertura-maven-plugin</artifactId>
491 <version>2.7</version>
494 <format>html</format>
499 <!-- <plugin> <groupId>org.jacoco</groupId> <artifactId>jacoco-maven-plugin</artifactId>
500 <version>${jacoco.version}</version> <configuration> Note: This exclusion
501 list should match <sonar.exclusions> property above <excludes> <exclude>**/gen/**</exclude>
502 <exclude>**/generated-sources/**</exclude> <exclude>**/yang-gen/**</exclude>
503 <exclude>**/pax/**</exclude> </excludes> </configuration> <executions> Prepares
504 the property pointing to the JaCoCo runtime agent which is passed as VM argument
505 when Maven the Surefire plugin is executed. <execution> <id>pre-unit-test</id>
506 <goals> <goal>prepare-agent</goal> </goals> <configuration> Sets the path
507 to the file which contains the execution data. <destFile>${project.build.directory}/code-coverage/jacoco-ut.exec</destFile>
508 Sets the name of the property containing the settings for JaCoCo runtime
509 agent. <propertyName>surefireArgLine</propertyName> </configuration> </execution>
510 Ensures that the code coverage report for unit tests is created after unit
511 tests have been run. <execution> <id>post-unit-test</id> <phase>test</phase>
512 <goals> <goal>report</goal> </goals> <configuration> Sets the path to the
513 file which contains the execution data. <dataFile>${project.build.directory}/code-coverage/jacoco-ut.exec</dataFile>
514 Sets the output directory for the code coverage report. <outputDirectory>${project.reporting.outputDirectory}/jacoco-ut</outputDirectory>
515 </configuration> </execution> <execution> <id>pre-integration-test</id> <phase>pre-integration-test</phase>
516 <goals> <goal>prepare-agent</goal> </goals> <configuration> Sets the path
517 to the file which contains the execution data. <destFile>${project.build.directory}/code-coverage/jacoco-it.exec</destFile>
518 Sets the name of the property containing the settings for JaCoCo runtime
519 agent. <propertyName>failsafeArgLine</propertyName> </configuration> </execution>
520 Ensures that the code coverage report for integration tests after integration
521 tests have been run. <execution> <id>post-integration-test</id> <phase>post-integration-test</phase>
522 <goals> <goal>report</goal> </goals> <configuration> Sets the path to the
523 file which contains the execution data. <dataFile>${project.build.directory}/code-coverage/jacoco-it.exec</dataFile>
524 Sets the output directory for the code coverage report. <outputDirectory>${project.reporting.outputDirectory}/jacoco-it</outputDirectory>
525 </configuration> </execution> </executions> </plugin> -->
529 <!-- <profiles> <profile> <id>jenkins</id> <activation> <property> <name>env.BUILD_NUMBER</name>
530 </property> </activation> <build> <plugins> <plugin> <groupId>org.codehaus.mojo</groupId>
531 <artifactId>cobertura-maven-plugin</artifactId> </plugin> <plugin> <groupId>com.att.aft.swm</groupId>
532 <artifactId>swm-plugin</artifactId> <version>1.4.4.12</version> <configuration>
533 <distFilesRootDirPath>/opt/app/dmaap/msgrtr/jenkinsbuild</distFilesRootDirPath>
534 <version>${project.version}-${env.BUILD_NUMBER}</version> <scriptExcludes>
535 <scriptExclude>**/swmpkgclean.sh</scriptExclude> </scriptExcludes> </configuration>
536 <executions> <execution> <id>pkgstage</id> <goals> <goal>pkgstage</goal>
537 </goals> </execution> <execution> <id>pkgcreate</id> <goals> <goal>pkgcreate</goal>
538 </goals> </execution> <execution> <id>pkginstall</id> <goals> <goal>install</goal>
539 </goals> <configuration> <componentName>com.att.nsa:msgrtr</componentName>
540 <version>${project.version}-${env.BUILD_NUMBER}</version> <waitTimeMins>4</waitTimeMins>
541 <properties> <property> <name>overrideDependencyConflicts</name> <value>true</value>
542 </property> <property> <name>AFTSWM_NOTIFY_ADDRESSES</name> <value>mailto:rs857c@att.com</value>
543 </property> </properties> </configuration> </execution> </executions> </plugin>
544 <plugin> <artifactId>maven-antrun-plugin</artifactId> <executions> <execution>
545 <phase>package</phase> <configuration> <tasks> <copy file="./src/main/scripts/swmpkgclean.sh"
546 toDir="./target" /> </tasks> </configuration> <goals> <goal>run</goal> </goals>
547 </execution> </executions> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId>
548 <artifactId>maven-deploy-plugin</artifactId> <version>2.5</version> <configuration>
549 <skip>true</skip> </configuration> </plugin> </plugins> </build> </profile>