4 Copyright 2016 ZTE Corporation.
6 Licensed under the Apache License, Version 2.0 (the "License");
7 you may not use this file except in compliance with the License.
8 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.
19 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
20 <modelVersion>4.0.0</modelVersion>
22 <groupId>org.onap.oparent</groupId>
23 <artifactId>oparent</artifactId>
24 <version>2.0.0</version>
27 <groupId>org.onap.aai.esr-server</groupId>
28 <artifactId>aai-esr-server</artifactId>
29 <packaging>pom</packaging>
30 <version>1.7.0-SNAPSHOT</version>
31 <name>aai-esr-server</name>
33 <module>esr-mgr</module>
34 <module>standalone</module>
38 <dropwizard.version>1.3.0</dropwizard.version>
39 <swagger.version>1.5.3</swagger.version>
40 <jersey.version>2.16</jersey.version>
41 <jaxrs.consumer.version>5.0</jaxrs.consumer.version>
42 <gson.version>2.2.4</gson.version>
43 <junit.version>4.10</junit.version>
44 <jetty.version>9.4.22.v20191022</jetty.version>
45 <org.apache.ant.version>1.10.5</org.apache.ant.version>
47 <sonar.jacoco.reportPath />
48 <sonar.jacoco.itReportPath />
49 <sonar.jacoco.reportMissing.force.zero />
51 <jacoco.line.coverage.limit>0.75</jacoco.line.coverage.limit>
52 <jacoco.version>0.8.5</jacoco.version>
53 <sonar-jacoco-listeners.version>3.2</sonar-jacoco-listeners.version>
54 <sonar.core.codeCoveragePlugin>jacoco</sonar.core.codeCoveragePlugin>
55 <sonar.coverage.jacoco.xmlReportPaths>${project.reporting.outputDirectory}/jacoco-ut/jacoco.xml</sonar.coverage.jacoco.xmlReportPaths>
56 <sonar.exclusions>**/gen/**,**/generated-sources/**,**/yang-gen**,**/pax/**</sonar.exclusions>
58 <sonar.scanner.version>3.7.0.1746</sonar.scanner.version>
63 <dependencyManagement>
66 <groupId>io.dropwizard</groupId>
67 <artifactId>dropwizard-core</artifactId>
68 <version>${dropwizard.version}</version>
71 <groupId>io.dropwizard</groupId>
72 <artifactId>dropwizard-assets</artifactId>
73 <version>${dropwizard.version}</version>
76 <groupId>io.dropwizard</groupId>
77 <artifactId>dropwizard-hibernate</artifactId>
78 <version>${dropwizard.version}</version>
81 <groupId>io.swagger</groupId>
82 <artifactId>swagger-jersey2-jaxrs</artifactId>
83 <version>${swagger.version}</version>
86 <groupId>org.hibernate</groupId>
87 <artifactId>hibernate-validator</artifactId>
88 <version>5.4.2.Final</version>
93 <groupId>org.eclipse.jetty</groupId>
94 <artifactId>jetty-server</artifactId>
95 <version>${jetty.version}</version>
98 <groupId>org.eclipse.jetty</groupId>
99 <artifactId>jetty-util</artifactId>
100 <version>${jetty.version}</version>
103 <groupId>org.eclipse.jetty</groupId>
104 <artifactId>jetty-webapp</artifactId>
105 <version>${jetty.version}</version>
108 <groupId>org.eclipse.jetty</groupId>
109 <artifactId>jetty-continuation</artifactId>
110 <version>${jetty.version}</version>
113 <groupId>org.eclipse.jetty</groupId>
114 <artifactId>jetty-servlet</artifactId>
115 <version>${jetty.version}</version>
118 <groupId>org.eclipse.jetty</groupId>
119 <artifactId>jetty-servlet</artifactId>
120 <classifier>tests</classifier>
121 <version>${jetty.version}</version>
124 <groupId>org.eclipse.jetty</groupId>
125 <artifactId>jetty-servlets</artifactId>
126 <version>${jetty.version}</version>
129 <groupId>org.eclipse.jetty</groupId>
130 <artifactId>jetty-http</artifactId>
131 <version>${jetty.version}</version>
134 <groupId>org.eclipse.jetty</groupId>
135 <artifactId>jetty-http</artifactId>
136 <classifier>tests</classifier>
137 <version>${jetty.version}</version>
140 <groupId>org.eclipse.jetty</groupId>
141 <artifactId>jetty-alpn-openjdk8-server</artifactId>
142 <version>${jetty.version}</version>
145 <groupId>org.eclipse.jetty.http2</groupId>
146 <artifactId>http2-server</artifactId>
147 <version>${jetty.version}</version>
150 <groupId>org.eclipse.jetty.http2</groupId>
151 <artifactId>http2-client</artifactId>
152 <version>${jetty.version}</version>
155 <groupId>org.eclipse.jetty</groupId>
156 <artifactId>jetty-client</artifactId>
157 <version>${jetty.version}</version>
160 <groupId>org.eclipse.jetty.http2</groupId>
161 <artifactId>http2-http-client-transport</artifactId>
162 <version>${jetty.version}</version>
165 <groupId>org.eclipse.jetty</groupId>
166 <artifactId>jetty-alpn-openjdk8-client</artifactId>
167 <version>${jetty.version}</version>
170 <groupId>org.eclipse.jetty</groupId>
171 <artifactId>jetty-alpn-conscrypt-server</artifactId>
172 <version>${jetty.version}</version>
175 <groupId>org.eclipse.jetty.toolchain.setuid</groupId>
176 <artifactId>jetty-setuid-java</artifactId>
177 <version>1.0.3</version>
180 <groupId>org.eclipse.jetty</groupId>
181 <artifactId>jetty-util</artifactId>
184 <groupId>org.eclipse.jetty</groupId>
185 <artifactId>jetty-server</artifactId>
192 <groupId>org.glassfish.jersey.core</groupId>
193 <artifactId>jersey-server</artifactId>
194 <version>${jersey.version}</version>
197 <groupId>org.glassfish.jersey.media</groupId>
198 <artifactId>jersey-media-multipart</artifactId>
199 <version>${jersey.version}</version>
202 <groupId>org.glassfish.jersey.containers</groupId>
203 <artifactId>jersey-container-servlet-core</artifactId>
204 <version>${jersey.version}</version>
208 <groupId>com.eclipsesource.jaxrs</groupId>
209 <artifactId>consumer</artifactId>
210 <version>${jaxrs.consumer.version}</version>
214 <groupId>com.google.code.gson</groupId>
215 <artifactId>gson</artifactId>
216 <version>${gson.version}</version>
220 <groupId>junit</groupId>
221 <artifactId>junit</artifactId>
222 <version>${junit.version}</version>
225 <groupId>org.apache.ant</groupId>
226 <artifactId>ant</artifactId>
227 <version>${org.apache.ant.version}</version>
231 </dependencyManagement>
236 <groupId>org.eclipse.m2e</groupId>
237 <artifactId>lifecycle-mapping</artifactId>
238 <version>1.0.0</version>
241 <groupId>org.apache.maven.plugins</groupId>
242 <artifactId>maven-compiler-plugin</artifactId>
243 <version>3.3</version>
245 <verbose>true</verbose>
247 <compilerVersion>1.7</compilerVersion>
250 <encoding>UTF-8</encoding>
255 <groupId>org.apache.maven.plugins</groupId>
256 <artifactId>maven-jar-plugin</artifactId>
257 <version>2.6</version>
260 <addMavenDescriptor>false</addMavenDescriptor>
262 <forceCreation>true</forceCreation>
266 <groupId>org.apache.maven.plugins</groupId>
267 <artifactId>maven-shade-plugin</artifactId>
268 <version>2.4</version>
271 <groupId>org.apache.maven.plugins</groupId>
272 <artifactId>maven-dependency-plugin</artifactId>
273 <version>2.10</version>
276 <groupId>org.apache.maven.plugins</groupId>
277 <artifactId>maven-resources-plugin</artifactId>
278 <version>2.7</version>
280 <encoding>UTF-8</encoding>
281 <nonFilteredFileExtensions>
282 <nonFilteredFileExtension>pdf</nonFilteredFileExtension>
283 <nonFilteredFileExtension>swf</nonFilteredFileExtension>
284 <nonFilteredFileExtension>exe</nonFilteredFileExtension>
285 <nonFilteredFileExtension>png</nonFilteredFileExtension>
286 <nonFilteredFileExtension>gif</nonFilteredFileExtension>
287 <nonFilteredFileExtension>jpg</nonFilteredFileExtension>
288 <nonFilteredFileExtension>jpeg</nonFilteredFileExtension>
289 <nonFilteredFileExtension>bmp</nonFilteredFileExtension>
290 <nonFilteredFileExtension>eot</nonFilteredFileExtension>
291 <nonFilteredFileExtension>ttf</nonFilteredFileExtension>
292 <nonFilteredFileExtension>svg</nonFilteredFileExtension>
293 <nonFilteredFileExtension>woff</nonFilteredFileExtension>
294 <nonFilteredFileExtension>woff2</nonFilteredFileExtension>
295 <nonFilteredFileExtension>mso</nonFilteredFileExtension>
296 <nonFilteredFileExtension>wmz</nonFilteredFileExtension>
297 <nonFilteredFileExtension>emz</nonFilteredFileExtension>
298 <nonFilteredFileExtension>otf</nonFilteredFileExtension>
299 </nonFilteredFileExtensions>
303 <groupId>org.codehaus.mojo</groupId>
304 <artifactId>build-helper-maven-plugin</artifactId>
305 <version>1.10</version>
308 <groupId>com.mycila</groupId>
309 <artifactId>license-maven-plugin</artifactId>
310 <version>3.0.rc1</version>
313 <artifactId>maven-antrun-plugin</artifactId>
314 <version>1.8</version>
320 <!-- once we connect aai-parent or oparent 3.0+ we can take out this
324 <groupId>org.jacoco</groupId>
325 <artifactId>jacoco-maven-plugin</artifactId>
326 <version>${jacoco.version}</version>
328 <!-- Note: This exclusion list should match <sonar.exclusions> property
331 <exclude>**/gen/**</exclude>
332 <exclude>**/generated-sources/**</exclude>
333 <exclude>**/yang-gen/**</exclude>
334 <exclude>**/pax/**</exclude>
335 <exclude>org/onap/aai/babel/xml/generator/xsd/*</exclude>
339 <!-- Prepares the property pointing to the JaCoCo runtime agent which
340 is passed as VM argument when Maven the Surefire plugin is executed. -->
342 <id>pre-unit-test</id>
344 <goal>prepare-agent</goal>
347 <!-- Sets the path to the file which contains the execution data
349 <destFile>${project.build.directory}/code-coverage/jacoco-ut.exec</destFile>
350 <!-- Sets the name of the property containing the settings for JaCoCo
352 <propertyName>surefireArgLine</propertyName>
355 <!-- Ensures that the code coverage report for unit tests is created
356 after unit tests have been run. -->
358 <id>post-unit-test</id>
364 <!-- Sets the path to the file which contains the execution data
366 <dataFile>${project.build.directory}/code-coverage/jacoco-ut.exec</dataFile>
367 <!-- Sets the output directory for the code coverage report. -->
368 <outputDirectory>${project.reporting.outputDirectory}/jacoco-ut</outputDirectory>
372 <id>pre-integration-test</id>
373 <phase>pre-integration-test</phase>
375 <goal>prepare-agent</goal>
378 <!-- Sets the path to the file which contains the execution data
380 <destFile>${project.build.directory}/code-coverage/jacoco-it.exec</destFile>
381 <!-- Sets the name of the property containing the settings for JaCoCo
383 <propertyName>failsafeArgLine</propertyName>
386 <!-- Ensures that the code coverage report for integration tests after
387 integration tests have been run. -->
389 <id>post-integration-test</id>
390 <phase>post-integration-test</phase>
395 <!-- Sets the path to the file which contains the execution data
397 <dataFile>${project.build.directory}/code-coverage/jacoco-it.exec</dataFile>
398 <!-- Sets the output directory for the code coverage report. -->
399 <outputDirectory>${project.reporting.outputDirectory}/jacoco-it</outputDirectory>
403 <id>default-check</id>
408 <dataFile>${project.build.directory}/code-coverage/jacoco-ut.exec</dataFile>
410 <rule implementation="org.jacoco.maven.RuleConfiguration">
411 <element>BUNDLE</element>
413 <limit implementation="org.jacoco.report.check.Limit">
414 <counter>LINE</counter>
415 <value>COVEREDRATIO</value>
416 <minimum>${jacoco.line.coverage.limit}</minimum>
426 <groupId>org.apache.maven.plugins</groupId>
427 <artifactId>maven-surefire-plugin</artifactId>
428 <version>3.0.0-M4</version>
430 <!-- Sets the VM argument line used when unit tests are run. -->
431 <argLine>${surefireArgLine}</argLine>
432 <!-- Excludes integration tests when unit tests are run. -->
434 <exclude>**/IT*.java</exclude>
439 <groupId>org.apache.maven.plugins</groupId>
440 <artifactId>maven-failsafe-plugin</artifactId>
441 <version>3.0.0-M4</version>
443 <!-- Ensures that both integration-test and verify goals of the Failsafe
444 Maven plugin are executed. -->
446 <id>integration-tests</id>
448 <goal>integration-test</goal>
452 <!-- Sets the VM argument line used when integration tests are run. -->
453 <argLine>${failsafeArgLine}</argLine>
459 <groupId>org.sonarsource.scanner.maven</groupId>
460 <artifactId>sonar-maven-plugin</artifactId>
461 <version>${sonar.scanner.version}</version>
463 <!-- end removable sonar config, note the additional exclusion for babel above