2 ============LICENSE_START=======================================================
4 ================================================================================
5 Copyright © 2017 AT&T Intellectual Property. All rights reserved.
6 ================================================================================
7 Licensed under the Apache License, Version 2.0 (the "License");
8 you may not use this file except in compliance with the License.
9 You may obtain a copy of the License at
10 http://www.apache.org/licenses/LICENSE-2.0
12 Unless required by applicable law or agreed to in writing, software
13 distributed under the License is distributed on an "AS IS" BASIS,
14 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 See the License for the specific language governing permissions and
16 limitations under the License.
17 ============LICENSE_END=========================================================
19 ECOMP is a trademark and service mark of AT&T Intellectual Property.
22 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
23 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
24 <modelVersion>4.0.0</modelVersion>
25 <groupId>org.onap.dmaap.messagerouter.msgrtr</groupId>
26 <artifactId>msgrtr</artifactId>
27 <version>1.0.0-SNAPSHOT</version>
28 <packaging>jar</packaging>
29 <name>Message Router</name>
30 <description>Message Router - Restful interface built for kafka</description>
33 <groupId>org.onap.oparent</groupId>
34 <artifactId>oparent</artifactId>
35 <version>0.1.1</version>
39 <spring.version>3.2.14.RELEASE</spring.version>
40 <cxf.version>3.0.4</cxf.version>
41 <jstl.version>1.2</jstl.version>
42 <maven.compiler.target>1.7</maven.compiler.target>
43 <maven.compiler.source>1.7</maven.compiler.source>
44 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
47 <jacoco.version>0.7.7.201606060606</jacoco.version>
48 <sonar-jacoco-listeners.version>3.2</sonar-jacoco-listeners.version>
49 <sonar.core.codeCoveragePlugin>jacoco</sonar.core.codeCoveragePlugin>
50 <!-- Default Sonar configuration -->
51 <sonar.jacoco.reportPath>target/code-coverage/jacoco-ut.exec</sonar.jacoco.reportPath>
52 <sonar.jacoco.itReportPath>target/code-coverage/jacoco-it.exec</sonar.jacoco.itReportPath>
53 <!-- Note: This list should match jacoco-maven-plugin's exclusion list below -->
54 <sonar.exclusions>**/gen/**,**/generated-sources/**,**/yang-gen**,**/pax/**</sonar.exclusions>
55 <sitePath>/content/sites/site/org/onap/dmaap/${project.artifactId}/${project.version}</sitePath>
56 <nexusproxy>https://nexus.onap.org</nexusproxy>
59 <!-- Distribution management -->
60 <!-- Currently all artifacts will be uploaded to att-public-group reposiotry
62 <distributionManagement>
65 <url>dav:${nexusproxy}${sitePath}</url>
67 </distributionManagement>
69 <!-- End Distribution management -->
73 <name>Apache License Version 2.0</name>
79 <name>Rajashree</name>
81 <organization>ATT</organization>
82 <organizationUrl>www.att.com</organizationUrl>
87 <organization>ATT</organization>
88 <organizationUrl>www.att.com</organizationUrl>
95 <groupId>junit</groupId>
96 <artifactId>junit</artifactId>
97 <version>4.11</version>
101 <!-- slf4j logger -->
103 <groupId>org.slf4j</groupId>
104 <artifactId>slf4j-api</artifactId>
105 <version>1.7.6</version>
109 <groupId>javax.inject</groupId>
110 <artifactId>javax.inject</artifactId>
115 <groupId>com.att.ajsc</groupId>
116 <artifactId>ajsc-core</artifactId>
117 <version>1.0.0</version>
121 <groupId>javax.ws.rs</groupId>
122 <artifactId>javax.ws.rs-api</artifactId>
123 <version>2.0.1</version>
126 <!-- <dependency> <groupId>org.apache.cxf</groupId> <artifactId>cxf-rt-rs-client</artifactId>
127 <version>${cxf.version}</version> </dependency> <dependency> <groupId>org.apache.cxf</groupId>
128 <artifactId>cxf-rt-frontend-jaxws</artifactId> <version>${cxf.version}</version>
129 </dependency> <dependency> <groupId>org.apache.cxf</groupId> <artifactId>cxf-rt-transports-http</artifactId>
130 <version>${cxf.version}</version> </dependency> Jetty is needed if you're
131 are not using the CXFServlet <dependency> <groupId>org.apache.cxf</groupId>
132 <artifactId>cxf-rt-transports-http-jetty</artifactId> <version>${cxf.version}</version>
134 <!-- Begin - Spring Dependencies for DI -->
136 <groupId>org.springframework</groupId>
137 <artifactId>spring-core</artifactId>
138 <version>${spring.version}</version>
141 <groupId>org.springframework</groupId>
142 <artifactId>spring-context</artifactId>
143 <version>${spring.version}</version>
146 <groupId>org.springframework</groupId>
147 <artifactId>spring-webmvc</artifactId>
148 <version>${spring.version}</version>
151 <groupId>org.springframework</groupId>
152 <artifactId>spring-web</artifactId>
153 <version>${spring.version}</version>
156 <groupId>javax.servlet</groupId>
157 <artifactId>javax.servlet-api</artifactId>
158 <version>3.0.1</version>
159 <scope>provided</scope>
161 <!-- End - Spring Dependencies for DI -->
162 <!-- Begin - Dependency on Dmaap Spring layer -->
163 <!-- <dependency> <groupId>com.att.dmaap</groupId> <artifactId>dmaap-spring</artifactId>
164 <version>0.0.1-SNAPSHOT</version> </dependency> -->
165 <!-- End - Dependency on Dmaap Spring layer -->
166 <!-- Begin - Dependency on log4j for logging purpose -->
167 <!-- <dependency> <groupId>log4j</groupId> <artifactId>log4j</artifactId>
168 <version>1.2.17</version> </dependency> -->
169 <!-- Log4j's enhanced pattern layout is shipped separately <dependency>
170 <groupId>log4j</groupId> <artifactId>apache-log4j-extras</artifactId> <version>1.2.17</version>
172 <!-- End - Dependency on log4j for logging purpose -->
173 <!-- ZooKeeper Library -->
175 <groupId>org.apache.zookeeper</groupId>
176 <artifactId>zookeeper</artifactId>
177 <version>3.4.6</version>
180 <!-- JSON libraries -->
182 <groupId>org.json</groupId>
183 <artifactId>json</artifactId>
184 <version>20131018</version>
187 <!-- Apache Kafka -->
189 <groupId>org.apache.kafka</groupId>
190 <artifactId>kafka_2.10</artifactId>
191 <version>0.8.2.1</version>
195 <groupId>com.att.eelf</groupId>
196 <artifactId>eelf-core</artifactId>
197 <version>0.0.1</version>
198 <scope>compile</scope>
200 <!-- our NSA server library -->
202 <groupId>com.att.nsa</groupId>
203 <artifactId>nsaServerLibrary</artifactId>
204 <version>1.0.10</version>
207 <groupId>com.att.nsa</groupId>
208 <artifactId>saToolkit</artifactId>
209 <version>0.0.1</version>
212 <!-- our Highland Park library -->
214 <groupId>com.att.nsa</groupId>
215 <artifactId>highlandParkCore</artifactId>
216 <version>0.4.9</version>
219 <!-- our base client library, for its command line tools -->
221 <groupId>com.att.nsa</groupId>
222 <artifactId>saClientLibrary</artifactId>
223 <version>0.0.1</version>
226 <groupId>org.apache.httpcomponents</groupId>
227 <artifactId>httpclient</artifactId>
230 <groupId>org.apache.httpcomponents</groupId>
231 <artifactId>httpclient-cache</artifactId>
236 <groupId>org.apache.httpcomponents</groupId>
237 <artifactId>httpclient</artifactId>
238 <version>4.4.1</version>
241 <groupId>org.apache.httpcomponents</groupId>
242 <artifactId>httpclient-cache</artifactId>
243 <version>4.4.1</version>
246 <!-- explicit jline add b/c it conflicts with the zk client -->
248 <groupId>jline</groupId>
249 <artifactId>jline</artifactId>
250 <version>2.12.1</version>
254 <groupId>org.apache.curator</groupId>
255 <artifactId>curator-recipes</artifactId>
256 <version>2.6.0</version>
260 <groupId>org.apache.curator</groupId>
261 <artifactId>curator-test</artifactId>
262 <version>2.6.0</version>
266 <groupId>com.att.aft</groupId>
267 <artifactId>dme2</artifactId>
268 <version>3.1.200</version>
272 <groupId>com.google.code.gson</groupId>
273 <artifactId>gson</artifactId>
274 <version>2.8.0</version>
278 <finalName>DMaaP</finalName>
281 <directory>src/main/resources</directory>
282 <filtering>true</filtering>
284 <include>**/*.properties</include>
287 <!-- <resource> <directory>src/main/config</directory> <filtering>true</filtering>
288 <includes> <include>**/log4j*.xml</include> </includes> </resource> <resource>
289 <directory>src/main/resources</directory> <filtering>false</filtering> <excludes>
290 <exclude>**/cambriaApiVersion.properties</exclude> </excludes> </resource> -->
293 <!-- <plugin> <artifactId>maven-assembly-plugin</artifactId> <version>2.4.1</version>
294 <configuration> <descriptors> <descriptor>src/assembly/dep.xml</descriptor>
295 </descriptors> </configuration> <executions> <execution> <id>make-assembly</id>
296 this is used for inheritance merges -->
297 <!-- <phase>package</phase> bind to the packaging phase <goals> <goal>single</goal>
298 </goals> </execution> </executions> </plugin> -->
301 <groupId>org.apache.maven.plugins</groupId>
302 <artifactId>maven-site-plugin</artifactId>
303 <version>3.6</version>
306 <groupId>org.apache.maven.wagon</groupId>
307 <artifactId>wagon-webdav-jackrabbit</artifactId>
308 <version>2.10</version>
313 <groupId>org.apache.maven.plugins</groupId>
314 <artifactId>maven-javadoc-plugin</artifactId>
315 <version>2.10.4</version>
317 <additionalparam>-Xdoclint:none</additionalparam>
321 <id>attach-javadocs</id>
329 <groupId>org.apache.maven.plugins</groupId>
330 <artifactId>maven-source-plugin</artifactId>
331 <version>3.0.0</version>
334 <id>attach-sources</id>
336 <goal>jar-no-fork</goal>
342 <groupId>org.apache.maven.plugins</groupId>
343 <artifactId>maven-surefire-plugin</artifactId>
344 <version>2.12.4</version>
347 <!-- exclude until junits updated -->
348 <exclude>**/DME2*.java</exclude>
350 <!-- <skipTests>true</skipTests> -->
354 <groupId>org.codehaus.mojo</groupId>
355 <artifactId>cobertura-maven-plugin</artifactId>
356 <version>2.7</version>
359 <format>html</format>
365 <groupId>org.jacoco</groupId>
366 <artifactId>jacoco-maven-plugin</artifactId>
367 <version>${jacoco.version}</version>
369 <!-- Note: This exclusion list should match <sonar.exclusions>
372 <exclude>**/gen/**</exclude>
373 <exclude>**/generated-sources/**</exclude>
374 <exclude>**/yang-gen/**</exclude>
375 <exclude>**/pax/**</exclude>
380 Prepares the property pointing to the JaCoCo runtime agent which
381 is passed as VM argument when Maven the Surefire plugin is executed.
384 <id>pre-unit-test</id>
386 <goal>prepare-agent</goal>
389 <!-- Sets the path to the file which contains the execution data. -->
390 <destFile>${project.build.directory}/code-coverage/jacoco-ut.exec</destFile>
392 Sets the name of the property containing the settings
393 for JaCoCo runtime agent.
395 <propertyName>surefireArgLine</propertyName>
399 Ensures that the code coverage report for unit tests is created after
400 unit tests have been run.
403 <id>post-unit-test</id>
409 <!-- Sets the path to the file which contains the execution data. -->
410 <dataFile>${project.build.directory}/code-coverage/jacoco-ut.exec</dataFile>
411 <!-- Sets the output directory for the code coverage report. -->
412 <outputDirectory>${project.reporting.outputDirectory}/jacoco-ut</outputDirectory>
416 <id>pre-integration-test</id>
417 <phase>pre-integration-test</phase>
419 <goal>prepare-agent</goal>
422 <!-- Sets the path to the file which contains the execution data. -->
423 <destFile>${project.build.directory}/code-coverage/jacoco-it.exec</destFile>
425 Sets the name of the property containing the settings
426 for JaCoCo runtime agent.
428 <propertyName>failsafeArgLine</propertyName>
432 Ensures that the code coverage report for integration tests after
433 integration tests have been run.
436 <id>post-integration-test</id>
437 <phase>post-integration-test</phase>
442 <!-- Sets the path to the file which contains the execution data. -->
443 <dataFile>${project.build.directory}/code-coverage/jacoco-it.exec</dataFile>
444 <!-- Sets the output directory for the code coverage report. -->
445 <outputDirectory>${project.reporting.outputDirectory}/jacoco-it</outputDirectory>
453 <!-- <profiles> <profile> <id>jenkins</id> <activation> <property> <name>env.BUILD_NUMBER</name>
454 </property> </activation> <build> <plugins> <plugin> <groupId>org.codehaus.mojo</groupId>
455 <artifactId>cobertura-maven-plugin</artifactId> </plugin> <plugin> <groupId>com.att.aft.swm</groupId>
456 <artifactId>swm-plugin</artifactId> <version>1.4.4.12</version> <configuration>
457 <distFilesRootDirPath>/opt/app/dmaap/msgrtr/jenkinsbuild</distFilesRootDirPath>
458 <version>${project.version}-${env.BUILD_NUMBER}</version> <scriptExcludes>
459 <scriptExclude>**/swmpkgclean.sh</scriptExclude> </scriptExcludes> </configuration>
460 <executions> <execution> <id>pkgstage</id> <goals> <goal>pkgstage</goal>
461 </goals> </execution> <execution> <id>pkgcreate</id> <goals> <goal>pkgcreate</goal>
462 </goals> </execution> <execution> <id>pkginstall</id> <goals> <goal>install</goal>
463 </goals> <configuration> <componentName>com.att.nsa:msgrtr</componentName>
464 <version>${project.version}-${env.BUILD_NUMBER}</version> <waitTimeMins>4</waitTimeMins>
465 <properties> <property> <name>overrideDependencyConflicts</name> <value>true</value>
466 </property> <property> <name>AFTSWM_NOTIFY_ADDRESSES</name> <value>mailto:rs857c@att.com</value>
467 </property> </properties> </configuration> </execution> </executions> </plugin>
468 <plugin> <artifactId>maven-antrun-plugin</artifactId> <executions> <execution>
469 <phase>package</phase> <configuration> <tasks> <copy file="./src/main/scripts/swmpkgclean.sh"
470 toDir="./target" /> </tasks> </configuration> <goals> <goal>run</goal> </goals>
471 </execution> </executions> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId>
472 <artifactId>maven-deploy-plugin</artifactId> <version>2.5</version> <configuration>
473 <skip>true</skip> </configuration> </plugin> </plugins> </build> </profile>