blob: e334c004686065e93cfcd8ec2a5b18c5c3198201 [file] [log] [blame]
wasala961af3e2018-03-27 13:02:10 +02001<?xml version="1.0" encoding="UTF-8"?>
2<!--
3 ~ ============LICENSE_START=======================================================
4 ~ PROJECT
5 ~ ================================================================================
6 ~ Copyright (C) 2018 NOKIA Intellectual Property. All rights reserved.
7 ~ ================================================================================
8 ~ Licensed under the Apache License, Version 2.0 (the "License");
9 ~ you may not use this file except in compliance with the License.
10 ~ You may obtain a copy of the License at
11 ~
12 ~ http://www.apache.org/licenses/LICENSE-2.0
13 ~
14 ~ Unless required by applicable law or agreed to in writing, software
15 ~ distributed under the License is distributed on an "AS IS" BASIS,
16 ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17 ~ See the License for the specific language governing permissions and
18 ~ limitations under the License.
19 ~ ============LICENSE_END=========================================================
20 -->
wasalaec0cf092018-03-21 14:19:43 +010021<project xmlns="http://maven.apache.org/POM/4.0.0"
22 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">
wasala961af3e2018-03-27 13:02:10 +020024
wasalaec0cf092018-03-21 14:19:43 +010025 <modelVersion>4.0.0</modelVersion>
26 <parent>
27 <groupId>org.onap.oparent</groupId>
28 <artifactId>oparent</artifactId>
29 <version>0.1.1</version>
30 <relativePath/>
31 </parent>
32 <groupId>org.onap.dcaegen2.services</groupId>
Lusheng Ji44fb1712018-03-21 16:42:36 -040033 <artifactId>prh</artifactId>
wasalaec0cf092018-03-21 14:19:43 +010034 <version>1.0.0-SNAPSHOT</version>
35 <name>pnf-registration-handler</name>
36 <description>pnf-registration-handler</description>
wasalab80bcb82018-03-26 15:48:46 +020037 <packaging>pom</packaging>
38
39 <licenses>
40 <license>
41 <name>The Apache Software License, Version 2.0</name>
42 <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
43 </license>
44 </licenses>
45
46
wasalaec0cf092018-03-21 14:19:43 +010047 <properties>
48 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
wasalab80bcb82018-03-26 15:48:46 +020049 <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
50
wasala961af3e2018-03-27 13:02:10 +020051 <!-- JAVA VERSION-->
wasalaec0cf092018-03-21 14:19:43 +010052 <java.version>8</java.version>
53 <compiler.plugin.version>3.7.0</compiler.plugin.version>
wasala961af3e2018-03-27 13:02:10 +020054
55
56 <!-- DEVELOPMENT SETTINGS -->
57 <immutable.version>2.5.6</immutable.version>
58
59 <!-- LOGGING SETTINGS -->
60 <slf4j.version>1.7.25</slf4j.version>
61 <logback.version>1.2.3</logback.version>
62
63 <!--TEST SETTINGS -->
64 <surefire.redirectTestOutputToFile>true</surefire.redirectTestOutputToFile>
wasalaec0cf092018-03-21 14:19:43 +010065 <junit.version>4.12</junit.version>
66 <junit.jupiter.version>5.1.0</junit.jupiter.version>
67 <junit.vintage.version>5.1.0</junit.vintage.version>
68 <junit.platform.version>1.1.0</junit.platform.version>
wasala961af3e2018-03-27 13:02:10 +020069
wasalaec0cf092018-03-21 14:19:43 +010070 <!--PLUGIN SETTINGS -->
71 <dependency.locations.enabled>false</dependency.locations.enabled>
72 <nexusproxy>https://nexus.onap.org</nexusproxy>
73 <snapshots.path>content/repositories/snapshots/</snapshots.path>
74 <releases.path>content/repositories/releases/</releases.path>
75 <site.path>
76 content/sites/site/org/onap/dcaegen2/services/prh/${project.artifactId}/${project.version}
77 </site.path>
78 </properties>
wasalab80bcb82018-03-26 15:48:46 +020079
wasalaec0cf092018-03-21 14:19:43 +010080 <pluginRepositories>
81 <!-- Black Duck plugin dependencies -->
82 <pluginRepository>
83 <id>JCenter</id>
84 <name>JCenter Repository</name>
85 <url>http://jcenter.bintray.com</url>
86 </pluginRepository>
87 <pluginRepository>
88 <id>Restlet</id>
89 <name>Restlet Repository</name>
90 <url>http://maven.restlet.com</url>
91 </pluginRepository>
92 </pluginRepositories>
wasalab80bcb82018-03-26 15:48:46 +020093
wasalaec0cf092018-03-21 14:19:43 +010094 <repositories>
95 <repository>
96 <id>external-repository</id>
97 <url>https://oss.sonatype.org/content/repositories</url>
98 </repository>
99 </repositories>
wasalab80bcb82018-03-26 15:48:46 +0200100
wasalaec0cf092018-03-21 14:19:43 +0100101 <build>
wasalab80bcb82018-03-26 15:48:46 +0200102
103 <extensions>
104 <extension>
105 <groupId>org.apache.maven.wagon</groupId>
106 <artifactId>wagon-webdav-jackrabbit</artifactId>
107 <version>3.0.0</version>
108 </extension>
109 </extensions>
110
wasalaec0cf092018-03-21 14:19:43 +0100111 <pluginManagement>
112 <plugins>
wasalab80bcb82018-03-26 15:48:46 +0200113
114 <!-- COMPILER PLUGIN -->
wasalaec0cf092018-03-21 14:19:43 +0100115 <plugin>
116 <groupId>org.apache.maven.plugins</groupId>
117 <artifactId>maven-compiler-plugin</artifactId>
118 <version>${compiler.plugin.version}</version>
119 <configuration>
120 <source>${java.version}</source>
121 <target>${java.version}</target>
122 <showWarnings>true</showWarnings>
123 <showDeprecation>true</showDeprecation>
124 </configuration>
125 </plugin>
wasalab80bcb82018-03-26 15:48:46 +0200126
127 <!-- MAVEN SOURCE PLUGIN -->
wasalaec0cf092018-03-21 14:19:43 +0100128 <plugin>
129 <groupId>org.apache.maven.plugins</groupId>
wasalab80bcb82018-03-26 15:48:46 +0200130 <artifactId>maven-source-plugin</artifactId>
131 <version>3.0.1</version>
132 <configuration>
133 <excludeResources>true</excludeResources>
134 </configuration>
wasalaec0cf092018-03-21 14:19:43 +0100135 <executions>
136 <execution>
wasalab80bcb82018-03-26 15:48:46 +0200137 <id>attach-sources</id>
138 <phase>verify</phase>
wasalaec0cf092018-03-21 14:19:43 +0100139 <goals>
wasalab80bcb82018-03-26 15:48:46 +0200140 <goal>jar-no-fork</goal>
wasalaec0cf092018-03-21 14:19:43 +0100141 </goals>
wasalaec0cf092018-03-21 14:19:43 +0100142 </execution>
143 </executions>
144 </plugin>
wasalab80bcb82018-03-26 15:48:46 +0200145
146 <!-- MAVEN JAVADOC PLUGIN -->
wasalaec0cf092018-03-21 14:19:43 +0100147 <plugin>
148 <groupId>org.apache.maven.plugins</groupId>
wasalab80bcb82018-03-26 15:48:46 +0200149 <artifactId>maven-javadoc-plugin</artifactId>
150 <version>3.0.0</version>
151 <configuration>
152 <!-- minimize console output messages -->
153 <quiet>true</quiet>
154 <verbose>false</verbose>
155 <useStandardDocletOptions>false</useStandardDocletOptions>
156 </configuration>
157 <executions>
158 <execution>
159 <id>aggregate</id>
160 <phase>site</phase>
161 <goals>
162 <goal>aggregate</goal>
163 </goals>
164 </execution>
165 <execution>
166 <id>attach-javadoc</id>
167 <goals>
168 <goal>jar</goal>
169 </goals>
170 </execution>
171 </executions>
172 </plugin>
173
174 <!-- MAVEN BUNDLE PLUGIN -->
175 <plugin>
176 <groupId>org.apache.felix</groupId>
177 <artifactId>maven-bundle-plugin</artifactId>
178 <version>3.5.0</version>
179 <extensions>true</extensions>
180 <configuration>
181 <instructions>
182 <Embed-Dependency>*;inline=false;scope=compile</Embed-Dependency>
183 <Embed-Transitive>true</Embed-Transitive>
184 <Embed-Directory>lib</Embed-Directory>
185 </instructions>
186 </configuration>
187 <executions>
188 <execution>
189 <id>Bundling PRH Jar</id>
190 <phase>package</phase>
191 <goals>
192 <goal>bundle</goal>
193 </goals>
194 </execution>
195 </executions>
196 </plugin>
197
wasalaec0cf092018-03-21 14:19:43 +0100198 <!-- maven-surefire-plugin which is used during the test phase of build lifecycle -->
199 <plugin>
200 <groupId>org.apache.maven.plugins</groupId>
201 <artifactId>maven-surefire-plugin</artifactId>
202 <version>2.19.1</version>
wasalab80bcb82018-03-26 15:48:46 +0200203 <configuration>
204 <skipTests>false</skipTests>
205 <argLine>-Xmx2048m -Djava.awt.headless=true -XX:+UseConcMarkSweepGC
206 -XX:OnOutOfMemoryError="kill -9 %p" -XX:+HeapDumpOnOutOfMemoryError
207 </argLine>
208 <redirectTestOutputToFile>${surefire.redirectTestOutputToFile}
209 </redirectTestOutputToFile>
210 <parallel>methods</parallel>
211 <threadCount>8</threadCount>
212 <forkCount>8</forkCount>
213 <reuseForks>true</reuseForks>
214 <reportFormat>xml</reportFormat>
215 <trimStackTrace>false</trimStackTrace>
216 <systemPropertyVariables>
217 <java.io.tmpdir>${project.build.directory}</java.io.tmpdir>
218 <logback.configurationFile>
219 ${basedir}/src/test/resources/logback-test.xml
220 </logback.configurationFile>
221 <HADOOP_HOME>${project.build.directory}</HADOOP_HOME>
222 </systemPropertyVariables>
223 <includes>
224 <include>**/*Test.java</include>
225 </includes>
226 <excludes>
227 <exclude>**/*IT.java</exclude>
228 </excludes>
229 <!-- Sets the VM argument line used when unit tests are run. -->
230 <argLine>${surefireArgLine}</argLine>
231 </configuration>
wasalaec0cf092018-03-21 14:19:43 +0100232 <dependencies>
233 <dependency>
234 <groupId>org.junit.platform</groupId>
235 <artifactId>junit-platform-surefire-provider</artifactId>
236 <version>${junit.platform.version}</version>
237 </dependency>
238 </dependencies>
239 </plugin>
wasalab80bcb82018-03-26 15:48:46 +0200240
241 <!-- FIND BUGS (STATIC CODE ANALYSIS) PLUGIN -->
242 <plugin>
243 <groupId>org.codehaus.mojo</groupId>
244 <artifactId>findbugs-maven-plugin</artifactId>
245 <version>${findbugs.plugin.version}</version>
246 <configuration>
247 <effort>Max</effort>
248 <threshold>Low</threshold>
249 <xmlOutput>true</xmlOutput>
250 <!-- BUILD FAIL ON FINDBUGS ERRORS -->
251 <failOnError>true</failOnError>
252 <excludeFilterFile>${project.basedir}/findbugs-exclude.xml</excludeFilterFile>
253 <outputDirectory>${project.reporting.outputDirectory}/findbugs</outputDirectory>
254 <findbugsXmlOutputDirectory>${project.reporting.outputDirectory}/findbugs
255 </findbugsXmlOutputDirectory>
256 </configuration>
257 <executions>
258 <execution>
259 <id>analyze-compile</id>
260 <phase>compile</phase>
261 <goals>
262 <goal>check</goal>
263 </goals>
264 </execution>
265 </executions>
266 </plugin>
267
268 <plugin>
269 <groupId>org.apache.maven.plugins</groupId>
270 <artifactId>maven-jar-plugin</artifactId>
271 <version>3.0.2</version>
272 <configuration>
273 <archive>
274 <manifest>
275 <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
276 </manifest>
277 <manifestEntries>
278 <Implementation-Build-Version>${project.version}</Implementation-Build-Version>
279 </manifestEntries>
280 </archive>
281 </configuration>
282 </plugin>
283
284 <plugin>
285 <groupId>org.apache.maven.plugins</groupId>
286 <artifactId>maven-site-plugin</artifactId>
287 <version>3.6</version>
288 </plugin>
289
290 <plugin>
291 <groupId>org.apache.maven.plugins</groupId>
292 <artifactId>maven-jxr-plugin</artifactId>
293 <version>2.5</version>
294 </plugin>
295
296 <plugin>
297 <groupId>org.apache.maven.plugins</groupId>
298 <artifactId>maven-project-info-reports-plugin</artifactId>
299 <version>2.9</version>
300 <configuration>
301 <dependencyDetailsEnabled>false</dependencyDetailsEnabled>
302 <dependencyLocationsEnabled>false</dependencyLocationsEnabled>
303 </configuration>
304 </plugin>
305
306 <plugin>
307 <groupId>org.apache.maven.plugins</groupId>
308 <artifactId>maven-surefire-report-plugin</artifactId>
309 <version>2.21.0</version>
310 </plugin>
wasalaec0cf092018-03-21 14:19:43 +0100311 </plugins>
312 </pluginManagement>
313 <plugins>
314 <plugin>
315 <groupId>org.apache.maven.plugins</groupId>
316 <artifactId>maven-compiler-plugin</artifactId>
317 </plugin>
wasalab80bcb82018-03-26 15:48:46 +0200318
wasala2c378ea2018-03-21 16:42:36 -0400319 <plugin>
wasalab80bcb82018-03-26 15:48:46 +0200320 <groupId>org.apache.maven.plugins</groupId>
321 <artifactId>maven-jar-plugin</artifactId>
wasala2c378ea2018-03-21 16:42:36 -0400322 </plugin>
wasalab80bcb82018-03-26 15:48:46 +0200323
324 <plugin>
325 <groupId>org.apache.maven.plugins</groupId>
326 <artifactId>maven-surefire-plugin</artifactId>
327 </plugin>
328
329 <plugin>
330 <groupId>org.apache.maven.plugins</groupId>
331 <artifactId>maven-failsafe-plugin</artifactId>
332 </plugin>
333
334 <plugin>
335 <groupId>org.apache.maven.plugins</groupId>
336 <artifactId>maven-source-plugin</artifactId>
337 </plugin>
338
339 <plugin>
340 <groupId>org.apache.maven.plugins</groupId>
341 <artifactId>maven-javadoc-plugin</artifactId>
342 </plugin>
343
wasalaec0cf092018-03-21 14:19:43 +0100344 </plugins>
345 </build>
wasalab80bcb82018-03-26 15:48:46 +0200346
wasalaec0cf092018-03-21 14:19:43 +0100347 <reporting>
348 <plugins>
wasalab80bcb82018-03-26 15:48:46 +0200349
350 <plugin>
351 <groupId>org.apache.maven.plugins</groupId>
352 <artifactId>maven-site-plugin</artifactId>
353 </plugin>
354
355 <plugin>
356 <groupId>org.apache.maven.plugins</groupId>
357 <artifactId>maven-jxr-plugin</artifactId>
358 </plugin>
359
360 <plugin>
361 <groupId>org.apache.maven.plugins</groupId>
362 <artifactId>maven-project-info-reports-plugin</artifactId>
363 </plugin>
364
365 <plugin>
366 <groupId>org.apache.maven.plugins</groupId>
367 <artifactId>maven-surefire-report-plugin</artifactId>
368 </plugin>
369
wasalaec0cf092018-03-21 14:19:43 +0100370 <plugin>
371 <groupId>org.apache.maven.plugins</groupId>
372 <artifactId>maven-javadoc-plugin</artifactId>
373 <version>2.10.4</version>
374 <configuration>
375 <failOnError>false</failOnError>
376 <doclet>org.umlgraph.doclet.UmlGraphDoc</doclet>
377 <docletArtifact>
378 <groupId>org.umlgraph</groupId>
379 <artifactId>umlgraph</artifactId>
380 <version>5.6</version>
381 </docletArtifact>
382 <additionalparam>-views</additionalparam>
383 <useStandardDocletOptions>true</useStandardDocletOptions>
384 </configuration>
385 </plugin>
386 </plugins>
387 </reporting>
wasala2c378ea2018-03-21 16:42:36 -0400388
wasala961af3e2018-03-27 13:02:10 +0200389 <dependencyManagement>
390 <dependencies>
391
392 <!-- DEVELOPMENT TOOLS DEPENDENCIES -->
393 <dependency>
394 <groupId>org.immutables</groupId>
395 <artifactId>value</artifactId>
396 <version>${immutable.version}</version>
397 <scope>provided</scope>
398 </dependency>
399
400 <!-- LOGGING dependencies> -->
401 <dependency>
402 <groupId>org.slf4j</groupId>
403 <artifactId>slf4j-api</artifactId>
404 <version>${slf4j.version}</version>
405 <scope>provided</scope>
406 </dependency>
407 <dependency>
408 <groupId>ch.qos.logback</groupId>
409 <artifactId>logback-core</artifactId>
410 <version>${logback.version}</version>
411 <scope>provided</scope>
412 </dependency>
413 <dependency>
414 <groupId>ch.qos.logback</groupId>
415 <artifactId>logback-classic</artifactId>
416 <version>${logback.version}</version>
417 <scope>provided</scope>
418 </dependency>
419
420 <!-- TESTING TOOLS DEPENDENCIES -->
421 <dependency>
422 <groupId>org.junit.jupiter</groupId>
423 <artifactId>junit-jupiter-api</artifactId>
424 <version>${junit.jupiter.version}</version>
425 <scope>test</scope>
426 </dependency>
427 <dependency>
428 <groupId>junit</groupId>
429 <artifactId>junit</artifactId>
430 <version>${junit.version}</version>
431 <scope>test</scope>
432 </dependency>
433 <dependency>
434 <groupId>org.junit.jupiter</groupId>
435 <artifactId>junit-jupiter-engine</artifactId>
436 <version>${junit.jupiter.version}</version>
437 <scope>test</scope>
438 </dependency>
439 <dependency>
440 <groupId>org.junit.vintage</groupId>
441 <artifactId>junit-vintage-engine</artifactId>
442 <version>${junit.vintage.version}</version>
443 <scope>test</scope>
444 </dependency>
445 <dependency>
446 <groupId>org.springframework</groupId>
447 <artifactId>spring-test</artifactId>
448 <version>5.0.4.RELEASE</version>
449 <scope>test</scope>
450 </dependency>
451 <dependency>
452 <groupId>org.mockito</groupId>
453 <artifactId>mockito-core</artifactId>
454 <version>2.16.0</version>
455 <scope>test</scope>
456 </dependency>
457 <dependency>
458 <groupId>org.testng</groupId>
459 <artifactId>testng</artifactId>
460 <version>6.14.2</version>
461 <scope>test</scope>
462 </dependency>
463 <dependency>
464 <groupId>org.springframework.boot</groupId>
465 <artifactId>spring-boot-starter-test</artifactId>
466 <version>2.0.0.RELEASE</version>
467 <scope>test</scope>
468 </dependency>
469
470
471 <!-- ONLY REQUIRED TO RUN TESTS IN AN IDE THAT BUNDLES AN OLDER VERSION -->
472 <dependency>
473 <groupId>org.junit.platform</groupId>
474 <artifactId>junit-platform-launcher</artifactId>
475 <version>${junit.platform.version}</version>
476 <scope>test</scope>
477 </dependency>
478
479 </dependencies>
480 </dependencyManagement>
481
wasalab80bcb82018-03-26 15:48:46 +0200482 <modules>
483 <module>prh-app-server</module>
484 <module>prh-aai-client</module>
485 <module>prh-dmaap-client</module>
486 </modules>
Lusheng Ji44fb1712018-03-21 16:42:36 -0400487</project>
wasala2c378ea2018-03-21 16:42:36 -0400488