blob: 3f91ff86484c8d40e1e58631236c110a8cd48a35 [file] [log] [blame]
mark.j.leonard6e4f04a2018-04-26 16:53:12 +01001<?xml version="1.0" encoding="UTF-8"?>
Steve Smokowskief768a72017-02-09 15:43:35 -05002<!--
mark.j.leonard6e4f04a2018-04-26 16:53:12 +01003 ============LICENSE_START=======================================================
4 org.onap.aai
5 ================================================================================
6 Copyright © 2017-2018 AT&T Intellectual Property. All rights reserved.
7 Copyright © 2017-2018 European Software Marketing Ltd.
8 ================================================================================
9 Licensed under the Apache License, Version 2.0 (the "License");
10 you may not use this file except in compliance with the License.
11 You may obtain a copy of the License at
Blackwell, Ian (ib733q)7b1f8132018-04-03 17:28:44 +010012
mark.j.leonard6e4f04a2018-04-26 16:53:12 +010013 http://www.apache.org/licenses/LICENSE-2.0
Blackwell, Ian (ib733q)7b1f8132018-04-03 17:28:44 +010014
mark.j.leonard6e4f04a2018-04-26 16:53:12 +010015 Unless required by applicable law or agreed to in writing, software
16 distributed under the License is distributed on an "AS IS" BASIS,
17 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18 See the License for the specific language governing permissions and
19 limitations under the License.
20 ============LICENSE_END=========================================================
21-->
Lee, Tian (tl5884)cb6bc642018-11-06 15:36:40 +000022<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">
Steve Smokowskief768a72017-02-09 15:43:35 -050024 <modelVersion>4.0.0</modelVersion>
Lee, Tian (tl5884)46a2b5f2017-11-29 15:29:18 +000025
Fraboni, Gino (gf403a)578368f2017-05-03 13:47:43 -040026 <parent>
Jimmy Forsyth7e645462020-03-31 17:17:45 -040027 <groupId>org.onap.oparent</groupId>
28 <artifactId>oparent</artifactId>
29 <version>2.1.0</version>
Lee, Tian (tl5884)cb6bc642018-11-06 15:36:40 +000030 <relativePath />
Fraboni, Gino (gf403a)578368f2017-05-03 13:47:43 -040031 </parent>
Lee, Tian (tl5884)46a2b5f2017-11-29 15:29:18 +000032
Arul.Nambi059f42e2017-09-13 15:13:29 -040033 <groupId>org.onap.aai.model-loader</groupId>
Steve Smokowskief768a72017-02-09 15:43:35 -050034 <artifactId>model-loader</artifactId>
Gildas Lanilis5cb976c2018-09-06 11:21:12 -070035 <name>aai-model-loader</name>
Jimmy Forsythf7bdde92020-04-07 10:05:04 -040036 <version>1.6.3-SNAPSHOT</version>
Jimmy Forsyth7e645462020-03-31 17:17:45 -040037
38 <dependencyManagement>
39 <dependencies>
40 <dependency>
41 <groupId>org.springframework.boot</groupId>
42 <artifactId>spring-boot-dependencies</artifactId>
43 <version>${spring-boot.version}</version>
44 <type>pom</type>
45 <scope>import</scope>
46 </dependency>
47 </dependencies>
48 </dependencyManagement>
Lee, Tian (tl5884)46a2b5f2017-11-29 15:29:18 +000049
Steve Smokowskief768a72017-02-09 15:43:35 -050050 <properties>
mark.j.leonard6e4f04a2018-04-26 16:53:12 +010051 <start-class>org.onap.aai.modelloader.service.ModelLoaderApplication</start-class>
Blackwell, Ian (ib733q)65757e72018-04-05 11:52:58 +010052 <nexusproxy>https://nexus.onap.org</nexusproxy>
mark.j.leonard6e4f04a2018-04-26 16:53:12 +010053 <docker.location>${basedir}/target</docker.location>
Jimmy Forsyth7e645462020-03-31 17:17:45 -040054 <spring-boot.version>2.1.12.RELEASE</spring-boot.version>
55 <apache.commons-text.version>1.8</apache.commons-text.version>
56 <commons-compress.version>1.19</commons-compress.version>
mark.j.leonard6e4f04a2018-04-26 16:53:12 +010057 <hamcrest-all.version>1.3</hamcrest-all.version>
Jimmy Forsyth7e645462020-03-31 17:17:45 -040058 <babel.version>1.6.2</babel.version>
Blackwell, Ian (ib733q)7b1f8132018-04-03 17:28:44 +010059 <aai.rest.client.version>1.2.1</aai.rest.client.version>
mark.j.leonardc5aea4a2018-06-06 14:47:42 +010060 <sdc-distribution-client.version>1.3.0</sdc-distribution-client.version>
Jimmy Forsyth7e645462020-03-31 17:17:45 -040061 <logback.version>1.2.3</logback.version>
Dmitry Puzikov86359a22019-04-16 16:52:05 +020062 <!-- docker related properties -->
63 <docker.fabric.version>0.28.0</docker.fabric.version>
64 <aai.docker.version>1.0.0</aai.docker.version>
65 <aai.build.directory>${project.build.directory}/${project.artifactId}-${project.version}-build/</aai.build.directory>
66 <aai.docker.namespace>onap</aai.docker.namespace>
67 <aai.base.image>alpine</aai.base.image>
68 <aai.base.image.version>1.6.0</aai.base.image.version>
69 <!-- This will be used for the docker images as the default format of maven build has issues -->
70 <maven.build.timestamp.format>yyyyMMdd'T'HHmmss'Z'</maven.build.timestamp.format>
Jimmy Forsythb285db32020-04-01 11:01:47 -040071
72 <sonar.jacoco.reportPath />
73 <sonar.jacoco.itReportPath />
74 <sonar.jacoco.reportMissing.force.zero />
75
76 <jacoco.line.coverage.limit>0.75</jacoco.line.coverage.limit>
77 <jacoco.version>0.8.5</jacoco.version>
78 <sonar-jacoco-listeners.version>3.2</sonar-jacoco-listeners.version>
79 <sonar.core.codeCoveragePlugin>jacoco</sonar.core.codeCoveragePlugin>
80 <sonar.coverage.jacoco.xmlReportPaths>${project.reporting.outputDirectory}/jacoco-ut/jacoco.xml</sonar.coverage.jacoco.xmlReportPaths>
81 <sonar.exclusions>**/gen/**,**/generated-sources/**,**/yang-gen**,**/pax/**</sonar.exclusions>
82
83 <sonar.scanner.version>3.7.0.1746</sonar.scanner.version>
84
Steve Smokowskief768a72017-02-09 15:43:35 -050085 </properties>
Steve Smokowskief768a72017-02-09 15:43:35 -050086
Lee, Tian (tl5884)cb6bc642018-11-06 15:36:40 +000087 <distributionManagement>
88 <repository>
89 <id>ecomp-releases</id>
90 <name>ECOMP Release Repository</name>
91 <url>${nexusproxy}/content/repositories/releases/</url>
92 </repository>
93 <snapshotRepository>
94 <id>ecomp-snapshots</id>
95 <name>ECOMP Snapshot Repository</name>
96 <url>${nexusproxy}/content/repositories/snapshots/</url>
97 </snapshotRepository>
98 </distributionManagement>
mark.j.leonard6e4f04a2018-04-26 16:53:12 +010099
Dmitry Puzikov86359a22019-04-16 16:52:05 +0200100 <profiles>
101 <!-- Docker profile to be used for building docker image and pushing to nexus -->
102 <profile>
103 <id>docker</id>
104 <build>
105 <plugins>
106 <plugin>
107 <groupId>org.codehaus.mojo</groupId>
108 <artifactId>build-helper-maven-plugin</artifactId>
109 <version>3.0.0</version>
110 <executions>
111 <execution>
112 <phase>pre-clean</phase>
113 <id>parse-version</id>
114 <goals>
115 <goal>parse-version</goal>
116 </goals>
117 </execution>
118 </executions>
119 </plugin>
120 <plugin>
121 <groupId>org.codehaus.groovy.maven</groupId>
122 <artifactId>gmaven-plugin</artifactId>
123 <version>1.0</version>
124 <executions>
125 <execution>
126 <phase>pre-clean</phase>
127 <goals>
128 <goal>execute</goal>
129 </goals>
130 <configuration>
131 <source>
132 def userAaiBaseImage = session.userProperties['aai.base.image'];
133 def userAaiCommonVersion = session.userProperties['aai.base.image.version'];
134 if (userAaiCommonVersion != null) {
135 project.properties['aai.base.image.version'] = userAaiCommonVersion;
136 }
137 if (userAaiBaseImage != null) {
138 project.properties['aai.base.image'] = userAaiBaseImage;
139 }
140 log.info 'Base image flavour: ' + project.properties['aai.base.image'];
141 log.info 'Base image version: ' + project.properties['aai.base.image.version'];
142 </source>
143 </configuration>
144 </execution>
145 </executions>
146 </plugin>
147 <plugin>
148 <groupId>io.fabric8</groupId>
149 <artifactId>docker-maven-plugin</artifactId>
150 <version>${docker.fabric.version}</version>
151 <configuration>
152 <verbose>true</verbose>
153 <apiVersion>1.23</apiVersion>
154 <images>
155 <image>
156 <name>${docker.push.registry}/${aai.docker.namespace}/${project.artifactId}:%l</name>
157 <build>
158 <filter>@</filter>
159 <tags>
160 <tag>latest</tag>
161 <tag>${parsedVersion.majorVersion}.${parsedVersion.minorVersion}-STAGING-latest</tag>
162 <tag>${parsedVersion.majorVersion}.${parsedVersion.minorVersion}-STAGING-${maven.build.timestamp}</tag>
163 </tags>
164 <cleanup>try</cleanup>
165 <dockerFileDir>${project.basedir}/src/main/docker</dockerFileDir>
166 <assembly>
167 <inline>
168 <fileSets>
169 <fileSet>
170 <directory>${aai.build.directory}</directory>
171 <outputDirectory>/${project.artifactId}</outputDirectory>
172 </fileSet>
173 </fileSets>
174 </inline>
175 </assembly>
176 </build>
177 </image>
178 </images>
179 </configuration>
180 <executions>
181 <execution>
182 <id>clean-images</id>
183 <phase>pre-clean</phase>
184 <goals>
185 <goal>remove</goal>
186 </goals>
187 <configuration>
188 <removeAll>true</removeAll>
189 </configuration>
190 </execution>
191 <execution>
192 <id>generate-images</id>
193 <phase>package</phase>
194 <goals>
195 <goal>build</goal>
196 </goals>
197 </execution>
198 <execution>
199 <id>push-images</id>
200 <phase>deploy</phase>
201 <goals>
202 <goal>push</goal>
203 </goals>
204 </execution>
205 </executions>
206 </plugin>
207 </plugins>
208 </build>
209 </profile>
210 </profiles>
211
Steve Smokowskief768a72017-02-09 15:43:35 -0500212 <dependencies>
Steve Smokowskief768a72017-02-09 15:43:35 -0500213 <dependency>
mark.j.leonard6e4f04a2018-04-26 16:53:12 +0100214 <groupId>org.springframework.boot</groupId>
jimmyf3b10772018-12-20 15:18:47 -0500215 <artifactId>spring-boot-starter-jetty</artifactId>
216 </dependency>
217 <dependency>
218 <groupId>org.springframework.boot</groupId>
mark.j.leonard6e4f04a2018-04-26 16:53:12 +0100219 <artifactId>spring-boot-starter-web</artifactId>
jimmyf3b10772018-12-20 15:18:47 -0500220 <exclusions>
221 <exclusion>
222 <groupId>org.springframework.boot</groupId>
223 <artifactId>spring-boot-starter-tomcat</artifactId>
224 </exclusion>
225 </exclusions>
mark.j.leonard6e4f04a2018-04-26 16:53:12 +0100226 </dependency>
227 <dependency>
Blackwell, Ian (ib733q)7b1f8132018-04-03 17:28:44 +0100228 <groupId>org.onap.aai</groupId>
229 <artifactId>babel</artifactId>
230 <version>${babel.version}</version>
231 <classifier>client</classifier>
232 <exclusions>
233 <exclusion>
234 <groupId>*</groupId>
235 <artifactId>*</artifactId>
236 </exclusion>
237 </exclusions>
238 </dependency>
239 <dependency>
mark.j.leonard6e4f04a2018-04-26 16:53:12 +0100240 <groupId>org.glassfish.jersey.core</groupId>
241 <artifactId>jersey-common</artifactId>
242 <scope>test</scope>
Blackwell, Ian (ib733q)7b1f8132018-04-03 17:28:44 +0100243 </dependency>
244 <dependency>
245 <groupId>org.onap.aai</groupId>
246 <artifactId>rest-client</artifactId>
Jimmy Forsyth7e645462020-03-31 17:17:45 -0400247 <version>${aai.rest.client.version}</version>
Blackwell, Ian (ib733q)7b1f8132018-04-03 17:28:44 +0100248 </dependency>
249 <dependency>
250 <groupId>com.google.code.gson</groupId>
251 <artifactId>gson</artifactId>
Blackwell, Ian (ib733q)7b1f8132018-04-03 17:28:44 +0100252 </dependency>
253
254 <!-- Test dependencies -->
Blackwell, Ian (ib733q)7b1f8132018-04-03 17:28:44 +0100255 <!-- https://mvnrepository.com/artifact/com.mikesamuel/json-sanitizer -->
Steve Smokowskief768a72017-02-09 15:43:35 -0500256 <dependency>
Blackwell, Ian (ib733q)7b1f8132018-04-03 17:28:44 +0100257 <groupId>com.mikesamuel</groupId>
258 <artifactId>json-sanitizer</artifactId>
259 <version>1.2.0</version>
Steve Smokowskief768a72017-02-09 15:43:35 -0500260 </dependency>
Blackwell, Ian (ib733q)7b1f8132018-04-03 17:28:44 +0100261
Steve Smokowskief768a72017-02-09 15:43:35 -0500262 <!-- Common logging framework -->
263 <dependency>
Arul.Nambiaf1121f2017-09-21 10:39:37 -0400264 <groupId>org.onap.aai.logging-service</groupId>
Steve Smokowskief768a72017-02-09 15:43:35 -0500265 <artifactId>common-logging</artifactId>
Jimmy Forsyth7e645462020-03-31 17:17:45 -0400266 <version>1.5.0</version>
Steve Smokowskief768a72017-02-09 15:43:35 -0500267 </dependency>
Steve Smokowskief768a72017-02-09 15:43:35 -0500268 <dependency>
Fraboni, Gino (gf403a)578368f2017-05-03 13:47:43 -0400269 <groupId>ch.qos.logback</groupId>
mark.j.leonardddecfbc2018-05-01 11:57:53 +0100270 <artifactId>logback-classic</artifactId>
Jimmy Forsyth7e645462020-03-31 17:17:45 -0400271 <version>${logback.version}</version><!--$NO-MVN-MAN-VER$ -->
mark.j.leonardddecfbc2018-05-01 11:57:53 +0100272 </dependency>
273 <dependency>
274 <groupId>ch.qos.logback</groupId>
Fraboni, Gino (gf403a)578368f2017-05-03 13:47:43 -0400275 <artifactId>logback-core</artifactId>
Jimmy Forsyth7e645462020-03-31 17:17:45 -0400276 <version>${logback.version}</version><!--$NO-MVN-MAN-VER$ -->
Fraboni, Gino (gf403a)578368f2017-05-03 13:47:43 -0400277 </dependency>
Fraboni, Gino (gf403a)578368f2017-05-03 13:47:43 -0400278 <dependency>
mark.j.leonard6e4f04a2018-04-26 16:53:12 +0100279 <groupId>org.onap.sdc.sdc-distribution-client</groupId>
Lee, Tian (tl5884)46a2b5f2017-11-29 15:29:18 +0000280 <artifactId>sdc-distribution-client</artifactId>
mark.j.leonardc5aea4a2018-06-06 14:47:42 +0100281 <version>${sdc-distribution-client.version}</version>
Lee, Tian (tl5884)952a19d2017-08-18 16:45:23 +0100282 </dependency>
283 <dependency>
Steve Smokowskief768a72017-02-09 15:43:35 -0500284 <groupId>org.json</groupId>
285 <artifactId>json</artifactId>
Jimmy Forsyth7e645462020-03-31 17:17:45 -0400286 <version>20131018</version><!--$NO-MVN-MAN-VER$ -->
Steve Smokowskief768a72017-02-09 15:43:35 -0500287 </dependency>
Steve Smokowskief768a72017-02-09 15:43:35 -0500288 <dependency>
Lee, Tian (tl5884)46a2b5f2017-11-29 15:29:18 +0000289 <groupId>org.eclipse.jetty</groupId>
290 <artifactId>jetty-security</artifactId>
Steve Smokowskief768a72017-02-09 15:43:35 -0500291 </dependency>
Lee, Tian (tl5884)46a2b5f2017-11-29 15:29:18 +0000292 <dependency>
Lee, Tian (tl5884)46a2b5f2017-11-29 15:29:18 +0000293 <groupId>jline</groupId>
294 <artifactId>jline</artifactId>
295 <version>2.12.1</version>
296 </dependency>
Blackwell, Ian (ib733q)7b1f8132018-04-03 17:28:44 +0100297 <dependency>
mark.j.leonard7e6fe8c2018-06-07 16:45:38 +0100298 <groupId>org.apache.commons</groupId>
299 <artifactId>commons-compress</artifactId>
Jimmy Forsyth7e645462020-03-31 17:17:45 -0400300 <version>${commons-compress.version}</version>
mark.j.leonard7e6fe8c2018-06-07 16:45:38 +0100301 </dependency>
302 <dependency>
Blackwell, Ian (ib733q)7b1f8132018-04-03 17:28:44 +0100303 <groupId>commons-io</groupId>
304 <artifactId>commons-io</artifactId>
Jimmy Forsyth7e645462020-03-31 17:17:45 -0400305 <version>2.4</version>
Blackwell, Ian (ib733q)7b1f8132018-04-03 17:28:44 +0100306 </dependency>
307 <dependency>
308 <groupId>org.apache.commons</groupId>
309 <artifactId>commons-text</artifactId>
Jimmy Forsyth7e645462020-03-31 17:17:45 -0400310 <version>${apache.commons-text.version}</version>
Blackwell, Ian (ib733q)7b1f8132018-04-03 17:28:44 +0100311 </dependency>
Gary Wu1c792412018-08-24 15:15:28 -0700312
Lee, Tian (tl5884)cb6bc642018-11-06 15:36:40 +0000313 <!-- Test dependencies -->
314 <dependency>
315 <groupId>junit</groupId>
316 <artifactId>junit</artifactId>
317 <scope>test</scope>
318 </dependency>
319 <dependency>
320 <groupId>org.hamcrest</groupId>
321 <artifactId>hamcrest-all</artifactId>
322 <version>${hamcrest-all.version}</version>
323 <scope>test</scope>
324 </dependency>
325 <dependency>
326 <groupId>org.mockito</groupId>
327 <artifactId>mockito-core</artifactId>
328 <scope>test</scope>
329 </dependency>
330 <dependency>
331 <groupId>org.springframework.boot</groupId>
332 <artifactId>spring-boot-starter-test</artifactId>
333 <scope>test</scope>
334 </dependency>
Steve Smokowskief768a72017-02-09 15:43:35 -0500335 </dependencies>
Steve Smokowskie6908712017-02-10 16:08:20 -0500336
Lee, Tian (tl5884)cb6bc642018-11-06 15:36:40 +0000337 <!-- Plugins and repositories -->
338 <pluginRepositories>
339 <pluginRepository>
340 <id>central</id>
341 <url>http://repo1.maven.org/maven2</url>
342 </pluginRepository>
343 <pluginRepository>
344 <id>EvoSuite</id>
345 <name>EvoSuite Repository</name>
346 <url>http://www.evosuite.org/m2</url>
347 </pluginRepository>
348 </pluginRepositories>
Lee, Tian (tl5884)46a2b5f2017-11-29 15:29:18 +0000349
Lee, Tian (tl5884)cb6bc642018-11-06 15:36:40 +0000350 <repositories>
351 <repository>
352 <id>central</id>
353 <name>Maven 2 repository 2</name>
354 <url>http://repo2.maven.org/maven2/</url>
355 </repository>
356 <repository>
357 <id>ecomp-releases</id>
358 <name>ECOMP Release Repository</name>
359 <url>${nexusproxy}/content/repositories/releases/</url>
360 </repository>
361 <repository>
362 <id>ecomp-snapshots</id>
363 <name>ECOMP Snapshot Repository</name>
364 <url>${nexusproxy}/content/repositories/snapshots/</url>
365 </repository>
366 <repository>
367 <id>ecomp-staging</id>
368 <name>ECOMP Staging Repository</name>
369 <url>${nexusproxy}/content/repositories/staging/</url>
370 </repository>
371 </repositories>
Lee, Tian (tl5884)46a2b5f2017-11-29 15:29:18 +0000372
Steve Smokowskief768a72017-02-09 15:43:35 -0500373 <build>
374 <plugins>
375 <plugin>
mark.j.leonard6e4f04a2018-04-26 16:53:12 +0100376 <groupId>org.springframework.boot</groupId>
377 <artifactId>spring-boot-maven-plugin</artifactId>
Jimmy Forsyth7e645462020-03-31 17:17:45 -0400378 <version>${spring-boot.version}</version>
mark.j.leonard6e4f04a2018-04-26 16:53:12 +0100379 <configuration>
380 <executable>true</executable>
381 </configuration>
382 <executions>
383 <execution>
384 <goals>
385 <goal>repackage</goal>
386 </goals>
387 </execution>
388 </executions>
389 </plugin>
390 <plugin>
Lee, Tian (tl5884)cb6bc642018-11-06 15:36:40 +0000391 <groupId>com.mycila</groupId>
392 <artifactId>license-maven-plugin</artifactId>
393 <version>3.0</version>
394 <configuration>
395 <header>License.txt</header>
396 <includes>
397 <include>src/main/java/**</include>
398 <include>src/test/java/**</include>
399 <include>version/properties</include>
400 <include>pom.xml</include>
401 </includes>
402 <skipExistingHeaders>true</skipExistingHeaders>
403 </configuration>
404 <executions>
405 <execution>
406 <goals>
407 <!-- Set goal to "format" to auto update license headers -->
408 <goal>check</goal>
409 </goals>
410 <phase>process-sources</phase>
411 </execution>
412 </executions>
413 </plugin>
Venkata Harish K Kajur8d5d8862017-02-20 21:33:52 +0000414 <plugin>
Dmitry Puzikov86359a22019-04-16 16:52:05 +0200415 <groupId>org.apache.maven.plugins</groupId>
416 <artifactId>maven-deploy-plugin</artifactId>
Jimmy Forsyth7e645462020-03-31 17:17:45 -0400417 <configuration>
Jimmy Forsyth9d647392020-04-01 16:10:31 -0400418 <classifier>client</classifier>
Jimmy Forsyth7e645462020-03-31 17:17:45 -0400419 </configuration>
Venkata Harish K Kajur8d5d8862017-02-20 21:33:52 +0000420 </plugin>
421 <plugin>
Dmitry Puzikov86359a22019-04-16 16:52:05 +0200422 <artifactId>maven-assembly-plugin</artifactId>
423 <configuration>
424 <descriptors>
425 <descriptor>src/main/assembly/descriptor.xml</descriptor>
426 </descriptors>
427 </configuration>
428 <executions>
429 <execution>
430 <id>make-assembly</id>
431 <phase>package</phase>
432 <goals>
433 <goal>single</goal>
434 </goals>
435 </execution>
436 </executions>
Lee, Tian (tl5884)46a2b5f2017-11-29 15:29:18 +0000437 </plugin>
Jimmy Forsythb285db32020-04-01 11:01:47 -0400438
439 <!-- once we connect aai-parent or oparent 3.0+ we can take out this
440 whole section -->
441
442 <plugin>
443 <groupId>org.jacoco</groupId>
444 <artifactId>jacoco-maven-plugin</artifactId>
445 <version>${jacoco.version}</version>
446 <configuration>
447 <!-- Note: This exclusion list should match <sonar.exclusions> property
448 above -->
449 <excludes>
450 <exclude>**/gen/**</exclude>
451 <exclude>**/generated-sources/**</exclude>
452 <exclude>**/yang-gen/**</exclude>
453 <exclude>**/pax/**</exclude>
454 </excludes>
455 </configuration>
456 <executions>
457 <!-- Prepares the property pointing to the JaCoCo runtime agent which
458 is passed as VM argument when Maven the Surefire plugin is executed. -->
459 <execution>
460 <id>pre-unit-test</id>
461 <goals>
462 <goal>prepare-agent</goal>
463 </goals>
464 <configuration>
465 <!-- Sets the path to the file which contains the execution data
466 . -->
467 <destFile>${project.build.directory}/code-coverage/jacoco-ut.exec</destFile>
468 <!-- Sets the name of the property containing the settings for JaCoCo
469 runtime agent. -->
470 <propertyName>surefireArgLine</propertyName>
471 </configuration>
472 </execution>
473 <!-- Ensures that the code coverage report for unit tests is created
474 after unit tests have been run. -->
475 <execution>
476 <id>post-unit-test</id>
477 <phase>test</phase>
478 <goals>
479 <goal>report</goal>
480 </goals>
481 <configuration>
482 <!-- Sets the path to the file which contains the execution data
483 . -->
484 <dataFile>${project.build.directory}/code-coverage/jacoco-ut.exec</dataFile>
485 <!-- Sets the output directory for the code coverage report. -->
486 <outputDirectory>${project.reporting.outputDirectory}/jacoco-ut</outputDirectory>
487 </configuration>
488 </execution>
489 <execution>
490 <id>pre-integration-test</id>
491 <phase>pre-integration-test</phase>
492 <goals>
493 <goal>prepare-agent</goal>
494 </goals>
495 <configuration>
496 <!-- Sets the path to the file which contains the execution data
497 . -->
498 <destFile>${project.build.directory}/code-coverage/jacoco-it.exec</destFile>
499 <!-- Sets the name of the property containing the settings for JaCoCo
500 runtime agent. -->
501 <propertyName>failsafeArgLine</propertyName>
502 </configuration>
503 </execution>
504 <!-- Ensures that the code coverage report for integration tests after
505 integration tests have been run. -->
506 <execution>
507 <id>post-integration-test</id>
508 <phase>post-integration-test</phase>
509 <goals>
510 <goal>report</goal>
511 </goals>
512 <configuration>
513 <!-- Sets the path to the file which contains the execution data
514 . -->
515 <dataFile>${project.build.directory}/code-coverage/jacoco-it.exec</dataFile>
516 <!-- Sets the output directory for the code coverage report. -->
517 <outputDirectory>${project.reporting.outputDirectory}/jacoco-it</outputDirectory>
518 </configuration>
519 </execution>
520 <execution>
521 <id>default-check</id>
522 <goals>
523 <goal>check</goal>
524 </goals>
525 <configuration>
526 <dataFile>${project.build.directory}/code-coverage/jacoco-ut.exec</dataFile>
527 <rules>
528 <rule implementation="org.jacoco.maven.RuleConfiguration">
529 <element>BUNDLE</element>
530 <limits>
531 <limit implementation="org.jacoco.report.check.Limit">
532 <counter>LINE</counter>
533 <value>COVEREDRATIO</value>
534 <minimum>${jacoco.line.coverage.limit}</minimum>
535 </limit>
536 </limits>
537 </rule>
538 </rules>
539 </configuration>
540 </execution>
541 </executions>
542 </plugin>
543 <plugin>
544 <groupId>org.apache.maven.plugins</groupId>
545 <artifactId>maven-surefire-plugin</artifactId>
546 <version>3.0.0-M4</version>
547 <configuration>
548 <!-- Sets the VM argument line used when unit tests are run. -->
549 <argLine>${surefireArgLine}</argLine>
550 <!-- Excludes integration tests when unit tests are run. -->
551 <excludes>
552 <exclude>**/IT*.java</exclude>
553 </excludes>
554 </configuration>
555 </plugin>
556 <plugin>
557 <groupId>org.apache.maven.plugins</groupId>
558 <artifactId>maven-failsafe-plugin</artifactId>
559 <version>3.0.0-M4</version>
560 <executions>
561 <!-- Ensures that both integration-test and verify goals of the Failsafe
562 Maven plugin are executed. -->
563 <execution>
564 <id>integration-tests</id>
565 <goals>
566 <goal>integration-test</goal>
567 <goal>verify</goal>
568 </goals>
569 <configuration>
570 <!-- Sets the VM argument line used when integration tests are run. -->
571 <argLine>${failsafeArgLine}</argLine>
572 </configuration>
573 </execution>
574 </executions>
575 </plugin>
576 <plugin>
577 <groupId>org.sonarsource.scanner.maven</groupId>
578 <artifactId>sonar-maven-plugin</artifactId>
579 <version>${sonar.scanner.version}</version>
580 </plugin>
581 <!-- end removable sonar config -->
582
583
584
Lee, Tian (tl5884)46a2b5f2017-11-29 15:29:18 +0000585 </plugins>
Steve Smokowskief768a72017-02-09 15:43:35 -0500586 </build>
Steve Smokowskief768a72017-02-09 15:43:35 -0500587</project>