blob: c8327ccbd4da9bbdd1cb841c8c346bcecdfc6e74 [file] [log] [blame]
Varun Gudisenacc9de9b2017-08-30 20:49:32 -05001<!--
2 ============LICENSE_START=======================================================
3 org.onap.dmaap
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
11
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=========================================================
18
19 ECOMP is a trademark and service mark of AT&T Intellectual Property.
20
21 -->
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/maven-v4_0_0.xsd">
24 <modelVersion>4.0.0</modelVersion>
25 <groupId>org.onap.dmaap.messagerouter.dmaapclient</groupId>
26 <artifactId>dmaapClient</artifactId>
27 <packaging>jar</packaging>
sunil.unnava85c21e12018-01-23 15:26:15 -050028 <version>1.1.1-SNAPSHOT</version>
Jessica Wagantall7d1a1562017-09-08 13:31:51 -070029 <name>dmaap-messagerouter-dmaapclient</name>
Varun Gudisenacc9de9b2017-08-30 20:49:32 -050030 <description>Client library for MR event routing API</description>
Varun Gudisena7d45c172017-08-31 10:44:28 -050031 <url>https://github.com/att/dmaap-framework</url>
32
Varun Gudisenacc9de9b2017-08-30 20:49:32 -050033 <parent>
34 <groupId>org.onap.oparent</groupId>
35 <artifactId>oparent</artifactId>
Varun Gudisena26b93392017-09-21 23:38:33 -050036 <version>0.1.1</version>
Varun Gudisenacc9de9b2017-08-30 20:49:32 -050037 </parent>
Varun Gudisenacc9de9b2017-08-30 20:49:32 -050038 <properties>
39 <!-- for the client library, we want to allow 1.6 or later -->
40 <maven.compiler.target>1.7</maven.compiler.target>
41 <maven.compiler.source>1.7</maven.compiler.source>
42 <jersey.version>2.22.1</jersey.version>
43 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
Varun Gudisena30d8a232017-09-01 10:59:23 -050044
45 <!-- SONAR -->
46 <jacoco.version>0.7.7.201606060606</jacoco.version>
47 <sonar-jacoco-listeners.version>3.2</sonar-jacoco-listeners.version>
48 <sonar.core.codeCoveragePlugin>jacoco</sonar.core.codeCoveragePlugin>
49 <!-- Default Sonar configuration -->
50 <sonar.jacoco.reportPath>target/code-coverage/jacoco-ut.exec</sonar.jacoco.reportPath>
51 <sonar.jacoco.itReportPath>target/code-coverage/jacoco-it.exec</sonar.jacoco.itReportPath>
52 <!-- Note: This list should match jacoco-maven-plugin's exclusion list below -->
53 <sonar.exclusions>**/gen/**,**/generated-sources/**,**/yang-gen**,**/pax/**</sonar.exclusions>
Varun Gudisenac08d6b02017-09-25 16:59:02 -050054 <sitePath>/content/sites/site/org/onap/dmaap/messagerouter/dmaapclient/${project.artifactId}/${project.version}</sitePath>
Varun Gudisena90a9a1d2017-09-25 11:11:32 -050055 <nexusproxy>https://nexus.onap.org</nexusproxy>
Varun Gudisenacc9de9b2017-08-30 20:49:32 -050056 </properties>
Varun Gudisena26b93392017-09-21 23:38:33 -050057
58 <distributionManagement>
59 <site>
60 <id>ecomp-site</id>
61 <url>dav:${nexusproxy}${sitePath}</url>
62 </site>
63 </distributionManagement>
Varun Gudisenacc9de9b2017-08-30 20:49:32 -050064
65 <licenses>
66 <license>
67 <name>Apache License Version 2.0</name>
68 </license>
69 </licenses>
70
71 <developers>
72 <developer>
73 <name>Rajashree</name>
74 <email></email>
75 <organization>ATT</organization>
76 <organizationUrl>www.att.com</organizationUrl>
77 </developer>
78 <developer>
79 <name>Ramkumar</name>
80 <email></email>
81 <organization>ATT</organization>
82 <organizationUrl>www.att.com</organizationUrl>
83 </developer>
84 </developers>
85
Varun Gudisenacc9de9b2017-08-30 20:49:32 -050086 <dependencies>
87 <dependency>
88 <groupId>com.att.nsa</groupId>
89 <artifactId>saClientLibrary</artifactId>
90 <version>0.0.1</version>
91 </dependency>
92
93 <dependency>
94 <groupId>org.json</groupId>
95 <artifactId>json</artifactId>
96 <version>20131018</version>
97 </dependency>
98
99 <dependency>
100 <groupId>com.att.aft</groupId>
101 <artifactId>dme2</artifactId>
102 <version>3.1.200</version>
103 <exclusions>
104 <exclusion>
105 <groupId>com.sun.jersey</groupId>
106 <artifactId>jersey-json</artifactId>
107 </exclusion>
108 <exclusion>
109 <groupId>com.sun.jersey</groupId>
110 <artifactId>jersey-client</artifactId>
111 </exclusion>
112 </exclusions>
113 </dependency>
114 <!-- Begin - Dependency on log4j for logging purpose -->
115 <dependency>
116 <groupId>log4j</groupId>
117 <artifactId>log4j</artifactId>
118 <version>1.2.17</version>
119 </dependency>
120 <!-- Log4j's enhanced pattern layout is shipped separately -->
121 <dependency>
122 <groupId>log4j</groupId>
123 <artifactId>apache-log4j-extras</artifactId>
124 <version>1.2.17</version>
125 </dependency>
126 <!-- End - Dependency on log4j for logging purpose -->
127
128 <dependency>
129 <groupId>javax.ws.rs</groupId>
130 <artifactId>javax.ws.rs-api</artifactId>
131 <version>2.0.1</version>
132 </dependency>
133
134 <dependency>
135 <groupId>org.glassfish.jersey.core</groupId>
136 <artifactId>jersey-common</artifactId>
137 <version>${jersey.version}</version>
138 </dependency>
139
140 <dependency>
141 <groupId>org.glassfish.jersey.core</groupId>
142 <artifactId>jersey-client</artifactId>
143 <version>${jersey.version}</version>
144 </dependency>
145
146 <dependency>
147 <groupId>org.glassfish.jersey.media</groupId>
148 <artifactId>jersey-media-json-jackson</artifactId>
149 <version>${jersey.version}</version>
150 </dependency>
151 <dependency>
152 <groupId>junit</groupId>
153 <artifactId>junit</artifactId>
154 <version>4.11</version>
155 <scope>test</scope>
156 </dependency>
rn509j5b7869e2017-10-03 11:07:22 -0400157
158 <dependency>
159 <groupId>com.github.tomakehurst</groupId>
160 <artifactId>wiremock</artifactId>
161 <version>2.5.0</version>
162 <scope>test</scope>
163 </dependency>
164 <dependency>
165 <groupId>org.mockito</groupId>
166 <artifactId>mockito-all</artifactId>
167 <version>1.9.5</version>
168 <scope>test</scope>
169 </dependency>
170
Varun Gudisenacc9de9b2017-08-30 20:49:32 -0500171 </dependencies>
172
173 <build>
174 <resources>
175 <resource>
176 <directory>src/main/resources</directory>
177 <filtering>true</filtering>
178 <includes>
179 <include>**/MRClientVersion.properties</include>
180 </includes>
181 </resource>
182 <resource>
183 <directory>src/main/resources</directory>
184 <filtering>false</filtering>
185 <excludes>
186 <exclude>**/MRClientVersion.properties</exclude>
187 </excludes>
188 </resource>
189 </resources>
190 <plugins>
191 <plugin>
Varun Gudisena26b93392017-09-21 23:38:33 -0500192 <groupId>org.apache.maven.plugins</groupId>
193 <artifactId>maven-site-plugin</artifactId>
194 <version>3.6</version>
195 <dependencies>
196 <dependency>
197 <groupId>org.apache.maven.wagon</groupId>
198 <artifactId>wagon-webdav-jackrabbit</artifactId>
199 <version>2.10</version>
200 </dependency>
201 </dependencies>
202 </plugin>
203 <plugin>
Varun Gudisenacc9de9b2017-08-30 20:49:32 -0500204 <artifactId>maven-assembly-plugin</artifactId>
205 <version>2.4</version>
206 <configuration>
207 <descriptorRefs>
208 <descriptorRef>jar-with-dependencies</descriptorRef>
209 </descriptorRefs>
210 </configuration>
211
212 <executions>
213 <execution>
214 <id>make-assembly</id> <!-- this is used for inheritance merges -->
215 <phase>package</phase> <!-- bind to the packaging phase -->
216 <goals>
217 <goal>single</goal>
218 </goals>
219 </execution>
220 </executions>
221 </plugin>
222
223
224 <plugin>
225 <groupId>org.apache.maven.plugins</groupId>
226 <artifactId>maven-javadoc-plugin</artifactId>
227 <version>2.10.4</version>
228 <configuration>
229 <additionalparam>-Xdoclint:none</additionalparam>
230 </configuration>
231 <executions>
232 <execution>
233 <id>attach-javadocs</id>
234 <goals>
235 <goal>jar</goal>
236 </goals>
237 </execution>
238 </executions>
239 </plugin>
240 <plugin>
241 <groupId>org.apache.maven.plugins</groupId>
242 <artifactId>maven-source-plugin</artifactId>
243 <version>3.0.0</version>
244 <executions>
245 <execution>
246 <id>attach-sources</id>
247 <goals>
248 <goal>jar-no-fork</goal>
249 </goals>
250 </execution>
251 </executions>
252 </plugin>
253 <plugin>
254 <artifactId>maven-compiler-plugin</artifactId>
255 <version>3.1</version>
256 <configuration>
257 <source>1.7</source>
258 <target>1.7</target>
259 </configuration>
260 </plugin>
Varun Gudisena81e8a7a2017-09-01 11:36:40 -0500261 <plugin>
Varun Gudisena30d8a232017-09-01 10:59:23 -0500262 <groupId>org.jacoco</groupId>
263 <artifactId>jacoco-maven-plugin</artifactId>
264 <version>${jacoco.version}</version>
265 <configuration>
266 <!-- Note: This exclusion list should match <sonar.exclusions>
267 property above -->
268 <excludes>
269 <exclude>**/gen/**</exclude>
270 <exclude>**/generated-sources/**</exclude>
271 <exclude>**/yang-gen/**</exclude>
272 <exclude>**/pax/**</exclude>
273 </excludes>
274 </configuration>
275 <executions>
276 <!--
277 Prepares the property pointing to the JaCoCo runtime agent which
278 is passed as VM argument when Maven the Surefire plugin is executed.
279 -->
280 <execution>
281 <id>pre-unit-test</id>
282 <goals>
283 <goal>prepare-agent</goal>
284 </goals>
285 <configuration>
286 <!-- Sets the path to the file which contains the execution data. -->
287 <destFile>${project.build.directory}/code-coverage/jacoco-ut.exec</destFile>
288 <!--
289 Sets the name of the property containing the settings
290 for JaCoCo runtime agent.
291 -->
292 <propertyName>surefireArgLine</propertyName>
293 </configuration>
294 </execution>
295 <!--
296 Ensures that the code coverage report for unit tests is created after
297 unit tests have been run.
298 -->
299 <execution>
300 <id>post-unit-test</id>
301 <phase>test</phase>
302 <goals>
303 <goal>report</goal>
304 </goals>
305 <configuration>
306 <!-- Sets the path to the file which contains the execution data. -->
307 <dataFile>${project.build.directory}/code-coverage/jacoco-ut.exec</dataFile>
308 <!-- Sets the output directory for the code coverage report. -->
309 <outputDirectory>${project.reporting.outputDirectory}/jacoco-ut</outputDirectory>
310 </configuration>
311 </execution>
312 <execution>
313 <id>pre-integration-test</id>
314 <phase>pre-integration-test</phase>
315 <goals>
316 <goal>prepare-agent</goal>
317 </goals>
318 <configuration>
319 <!-- Sets the path to the file which contains the execution data. -->
320 <destFile>${project.build.directory}/code-coverage/jacoco-it.exec</destFile>
321 <!--
322 Sets the name of the property containing the settings
323 for JaCoCo runtime agent.
324 -->
325 <propertyName>failsafeArgLine</propertyName>
326 </configuration>
327 </execution>
328 <!--
329 Ensures that the code coverage report for integration tests after
330 integration tests have been run.
331 -->
332 <execution>
333 <id>post-integration-test</id>
334 <phase>post-integration-test</phase>
335 <goals>
336 <goal>report</goal>
337 </goals>
338 <configuration>
339 <!-- Sets the path to the file which contains the execution data. -->
340 <dataFile>${project.build.directory}/code-coverage/jacoco-it.exec</dataFile>
341 <!-- Sets the output directory for the code coverage report. -->
342 <outputDirectory>${project.reporting.outputDirectory}/jacoco-it</outputDirectory>
343 </configuration>
344 </execution>
345 </executions>
346 </plugin>
Varun Gudisenacc9de9b2017-08-30 20:49:32 -0500347 </plugins>
348 </build>
349
350 <profiles>
351 <!-- Add plugins here that should only be executed on the Jenkins server -->
352 <profile>
353 <id>jenkins</id>
354 <activation>
355 <property>
356 <name>env.BUILD_NUMBER</name>
357 </property>
358 </activation>
359 <build>
360 <plugins>
361 <plugin>
362 <groupId>org.codehaus.mojo</groupId>
363 <artifactId>cobertura-maven-plugin</artifactId>
364 </plugin>
365 </plugins>
366 </build>
367 </profile>
368 </profiles>
369</project>