blob: 8f2beeb89b733f17d65a374617f329d6f8e19391 [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"
Niharika Sharmad1321852022-10-14 14:01:39 -040023 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>
Fiete Ostkampb5c15a42024-02-28 14:39:51 +010036 <version>1.13.5-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>
Fiete Ostkamp0d67f832024-02-28 16:30:00 +010047 <dependency>
48 <groupId>org.springframework.cloud</groupId>
49 <artifactId>spring-cloud-dependencies</artifactId>
50 <version>${spring-cloud.version}</version>
51 <type>pom</type>
52 <scope>import</scope>
53 </dependency>
Jimmy Forsyth7e645462020-03-31 17:17:45 -040054 </dependencies>
55 </dependencyManagement>
Lee, Tian (tl5884)46a2b5f2017-11-29 15:29:18 +000056
Steve Smokowskief768a72017-02-09 15:43:35 -050057 <properties>
mark.j.leonard6e4f04a2018-04-26 16:53:12 +010058 <start-class>org.onap.aai.modelloader.service.ModelLoaderApplication</start-class>
Blackwell, Ian (ib733q)65757e72018-04-05 11:52:58 +010059 <nexusproxy>https://nexus.onap.org</nexusproxy>
mark.j.leonard6e4f04a2018-04-26 16:53:12 +010060 <docker.location>${basedir}/target</docker.location>
Fiete Ostkampb5c15a42024-02-28 14:39:51 +010061 <spring-boot.version>2.4.13</spring-boot.version>
Fiete Ostkamp0d67f832024-02-28 16:30:00 +010062 <spring-cloud.version>2020.0.2</spring-cloud.version>
Fiete Ostkamp126843b2022-11-15 16:27:44 +000063 <apache.commons-text.version>1.10.0</apache.commons-text.version>
64 <commons-compress.version>1.22</commons-compress.version>
Fiete Ostkamp5f6ec012024-03-07 08:33:48 +010065 <gson.version>2.10.1</gson.version>
mark.j.leonard6e4f04a2018-04-26 16:53:12 +010066 <hamcrest-all.version>1.3</hamcrest-all.version>
Fiete Ostkamp126843b2022-11-15 16:27:44 +000067 <babel.version>1.9.5</babel.version>
Blackwell, Ian (ib733q)7b1f8132018-04-03 17:28:44 +010068 <aai.rest.client.version>1.2.1</aai.rest.client.version>
Fiete Ostkamp5f6ec012024-03-07 08:33:48 +010069 <sdc-distribution-client.version>2.1.1</sdc-distribution-client.version>
Fiete Ostkamp126843b2022-11-15 16:27:44 +000070 <logback.version>1.2.11</logback.version>
Dmitry Puzikov86359a22019-04-16 16:52:05 +020071 <!-- docker related properties -->
Niharika Sharmad1321852022-10-14 14:01:39 -040072 <docker.fabric.version>0.39.0</docker.fabric.version>
Dmitry Puzikov86359a22019-04-16 16:52:05 +020073 <aai.docker.version>1.0.0</aai.docker.version>
74 <aai.build.directory>${project.build.directory}/${project.artifactId}-${project.version}-build/</aai.build.directory>
75 <aai.docker.namespace>onap</aai.docker.namespace>
76 <aai.base.image>alpine</aai.base.image>
Fiete Ostkampc7d38692024-02-22 13:19:35 +010077 <aai.base.image.version>1.13.2</aai.base.image.version>
Dmitry Puzikov86359a22019-04-16 16:52:05 +020078 <!-- This will be used for the docker images as the default format of maven build has issues -->
79 <maven.build.timestamp.format>yyyyMMdd'T'HHmmss'Z'</maven.build.timestamp.format>
Jimmy Forsythb285db32020-04-01 11:01:47 -040080
81 <sonar.jacoco.reportPath />
82 <sonar.jacoco.itReportPath />
83 <sonar.jacoco.reportMissing.force.zero />
Sylvain Desbureauxaecbb492021-02-01 16:09:23 +010084
Jimmy Forsythb285db32020-04-01 11:01:47 -040085 <jacoco.line.coverage.limit>0.75</jacoco.line.coverage.limit>
86 <jacoco.version>0.8.5</jacoco.version>
87 <sonar-jacoco-listeners.version>3.2</sonar-jacoco-listeners.version>
88 <sonar.core.codeCoveragePlugin>jacoco</sonar.core.codeCoveragePlugin>
89 <sonar.coverage.jacoco.xmlReportPaths>${project.reporting.outputDirectory}/jacoco-ut/jacoco.xml</sonar.coverage.jacoco.xmlReportPaths>
90 <sonar.exclusions>**/gen/**,**/generated-sources/**,**/yang-gen**,**/pax/**</sonar.exclusions>
91
92 <sonar.scanner.version>3.7.0.1746</sonar.scanner.version>
93
Maharajh, Robby (rx2202)e83a8f32021-02-24 13:32:28 -050094 <maven-javadoc-plugin.version>3.2.0</maven-javadoc-plugin.version>
95 <maven-compiler-plugin.version>3.8.1</maven-compiler-plugin.version>
96 <maven-compiler-plugin.source>11</maven-compiler-plugin.source>
97 <maven-compiler-plugin.target>11</maven-compiler-plugin.target>
98 <maven-compiler-plugin.test.source>11</maven-compiler-plugin.test.source>
99 <maven-compiler-plugin.test.target>11</maven-compiler-plugin.test.target>
Steve Smokowskief768a72017-02-09 15:43:35 -0500100 </properties>
Steve Smokowskief768a72017-02-09 15:43:35 -0500101
Lee, Tian (tl5884)cb6bc642018-11-06 15:36:40 +0000102 <distributionManagement>
103 <repository>
104 <id>ecomp-releases</id>
105 <name>ECOMP Release Repository</name>
106 <url>${nexusproxy}/content/repositories/releases/</url>
107 </repository>
108 <snapshotRepository>
109 <id>ecomp-snapshots</id>
110 <name>ECOMP Snapshot Repository</name>
111 <url>${nexusproxy}/content/repositories/snapshots/</url>
112 </snapshotRepository>
113 </distributionManagement>
mark.j.leonard6e4f04a2018-04-26 16:53:12 +0100114
Dmitry Puzikov86359a22019-04-16 16:52:05 +0200115 <profiles>
116 <!-- Docker profile to be used for building docker image and pushing to nexus -->
117 <profile>
118 <id>docker</id>
119 <build>
120 <plugins>
121 <plugin>
122 <groupId>org.codehaus.mojo</groupId>
123 <artifactId>build-helper-maven-plugin</artifactId>
124 <version>3.0.0</version>
125 <executions>
126 <execution>
127 <phase>pre-clean</phase>
128 <id>parse-version</id>
129 <goals>
130 <goal>parse-version</goal>
131 </goals>
132 </execution>
133 </executions>
134 </plugin>
135 <plugin>
136 <groupId>org.codehaus.groovy.maven</groupId>
137 <artifactId>gmaven-plugin</artifactId>
138 <version>1.0</version>
139 <executions>
140 <execution>
141 <phase>pre-clean</phase>
142 <goals>
143 <goal>execute</goal>
144 </goals>
145 <configuration>
146 <source>
147 def userAaiBaseImage = session.userProperties['aai.base.image'];
148 def userAaiCommonVersion = session.userProperties['aai.base.image.version'];
149 if (userAaiCommonVersion != null) {
150 project.properties['aai.base.image.version'] = userAaiCommonVersion;
151 }
152 if (userAaiBaseImage != null) {
153 project.properties['aai.base.image'] = userAaiBaseImage;
154 }
155 log.info 'Base image flavour: ' + project.properties['aai.base.image'];
156 log.info 'Base image version: ' + project.properties['aai.base.image.version'];
157 </source>
158 </configuration>
159 </execution>
160 </executions>
161 </plugin>
162 <plugin>
163 <groupId>io.fabric8</groupId>
164 <artifactId>docker-maven-plugin</artifactId>
165 <version>${docker.fabric.version}</version>
166 <configuration>
167 <verbose>true</verbose>
168 <apiVersion>1.23</apiVersion>
169 <images>
170 <image>
171 <name>${docker.push.registry}/${aai.docker.namespace}/${project.artifactId}:%l</name>
172 <build>
173 <filter>@</filter>
174 <tags>
175 <tag>latest</tag>
176 <tag>${parsedVersion.majorVersion}.${parsedVersion.minorVersion}-STAGING-latest</tag>
177 <tag>${parsedVersion.majorVersion}.${parsedVersion.minorVersion}-STAGING-${maven.build.timestamp}</tag>
178 </tags>
179 <cleanup>try</cleanup>
180 <dockerFileDir>${project.basedir}/src/main/docker</dockerFileDir>
181 <assembly>
182 <inline>
183 <fileSets>
184 <fileSet>
185 <directory>${aai.build.directory}</directory>
186 <outputDirectory>/${project.artifactId}</outputDirectory>
187 </fileSet>
188 </fileSets>
189 </inline>
190 </assembly>
191 </build>
192 </image>
193 </images>
194 </configuration>
195 <executions>
196 <execution>
197 <id>clean-images</id>
198 <phase>pre-clean</phase>
199 <goals>
200 <goal>remove</goal>
201 </goals>
202 <configuration>
203 <removeAll>true</removeAll>
204 </configuration>
205 </execution>
206 <execution>
207 <id>generate-images</id>
208 <phase>package</phase>
209 <goals>
210 <goal>build</goal>
211 </goals>
212 </execution>
213 <execution>
214 <id>push-images</id>
215 <phase>deploy</phase>
216 <goals>
217 <goal>push</goal>
218 </goals>
219 </execution>
220 </executions>
221 </plugin>
222 </plugins>
223 </build>
224 </profile>
225 </profiles>
Fiete Ostkamp0d67f832024-02-28 16:30:00 +0100226
Steve Smokowskief768a72017-02-09 15:43:35 -0500227 <dependencies>
Steve Smokowskief768a72017-02-09 15:43:35 -0500228 <dependency>
mark.j.leonard6e4f04a2018-04-26 16:53:12 +0100229 <groupId>org.springframework.boot</groupId>
jimmyf3b10772018-12-20 15:18:47 -0500230 <artifactId>spring-boot-starter-jetty</artifactId>
231 </dependency>
232 <dependency>
233 <groupId>org.springframework.boot</groupId>
mark.j.leonard6e4f04a2018-04-26 16:53:12 +0100234 <artifactId>spring-boot-starter-web</artifactId>
jimmyf3b10772018-12-20 15:18:47 -0500235 <exclusions>
Niharika Sharmad1321852022-10-14 14:01:39 -0400236 <exclusion>
237 <groupId>org.springframework.boot</groupId>
238 <artifactId>spring-boot-starter-tomcat</artifactId>
239 </exclusion>
jimmyf3b10772018-12-20 15:18:47 -0500240 </exclusions>
mark.j.leonard6e4f04a2018-04-26 16:53:12 +0100241 </dependency>
242 <dependency>
efiacor117237a2022-11-08 10:26:11 +0000243 <groupId>org.apache.kafka</groupId>
244 <artifactId>kafka-clients</artifactId>
245 <version>3.3.1</version>
246 </dependency>
247 <dependency>
Blackwell, Ian (ib733q)7b1f8132018-04-03 17:28:44 +0100248 <groupId>org.onap.aai</groupId>
249 <artifactId>babel</artifactId>
250 <version>${babel.version}</version>
251 <classifier>client</classifier>
252 <exclusions>
253 <exclusion>
254 <groupId>*</groupId>
255 <artifactId>*</artifactId>
256 </exclusion>
257 </exclusions>
258 </dependency>
259 <dependency>
mark.j.leonard6e4f04a2018-04-26 16:53:12 +0100260 <groupId>org.glassfish.jersey.core</groupId>
261 <artifactId>jersey-common</artifactId>
262 <scope>test</scope>
Blackwell, Ian (ib733q)7b1f8132018-04-03 17:28:44 +0100263 </dependency>
264 <dependency>
265 <groupId>org.onap.aai</groupId>
266 <artifactId>rest-client</artifactId>
Jimmy Forsyth7e645462020-03-31 17:17:45 -0400267 <version>${aai.rest.client.version}</version>
Blackwell, Ian (ib733q)7b1f8132018-04-03 17:28:44 +0100268 </dependency>
269 <dependency>
270 <groupId>com.google.code.gson</groupId>
271 <artifactId>gson</artifactId>
Fiete Ostkamp5f6ec012024-03-07 08:33:48 +0100272 <version>${gson.version}</version>
Blackwell, Ian (ib733q)7b1f8132018-04-03 17:28:44 +0100273 </dependency>
274
275 <!-- Test dependencies -->
Blackwell, Ian (ib733q)7b1f8132018-04-03 17:28:44 +0100276 <!-- https://mvnrepository.com/artifact/com.mikesamuel/json-sanitizer -->
Steve Smokowskief768a72017-02-09 15:43:35 -0500277 <dependency>
Blackwell, Ian (ib733q)7b1f8132018-04-03 17:28:44 +0100278 <groupId>com.mikesamuel</groupId>
279 <artifactId>json-sanitizer</artifactId>
Fiete Ostkamp5f6ec012024-03-07 08:33:48 +0100280 <version>1.2.3</version>
Steve Smokowskief768a72017-02-09 15:43:35 -0500281 </dependency>
Blackwell, Ian (ib733q)7b1f8132018-04-03 17:28:44 +0100282
Steve Smokowskief768a72017-02-09 15:43:35 -0500283 <!-- Common logging framework -->
284 <dependency>
Arul.Nambiaf1121f2017-09-21 10:39:37 -0400285 <groupId>org.onap.aai.logging-service</groupId>
Steve Smokowskief768a72017-02-09 15:43:35 -0500286 <artifactId>common-logging</artifactId>
Jimmy Forsyth7e645462020-03-31 17:17:45 -0400287 <version>1.5.0</version>
Steve Smokowskief768a72017-02-09 15:43:35 -0500288 </dependency>
Steve Smokowskief768a72017-02-09 15:43:35 -0500289 <dependency>
Fraboni, Gino (gf403a)578368f2017-05-03 13:47:43 -0400290 <groupId>ch.qos.logback</groupId>
mark.j.leonardddecfbc2018-05-01 11:57:53 +0100291 <artifactId>logback-classic</artifactId>
Fiete Ostkampb5c15a42024-02-28 14:39:51 +0100292 <version>${logback.version}</version>
293 <!--$NO-MVN-MAN-VER$ -->
mark.j.leonardddecfbc2018-05-01 11:57:53 +0100294 </dependency>
295 <dependency>
296 <groupId>ch.qos.logback</groupId>
Fraboni, Gino (gf403a)578368f2017-05-03 13:47:43 -0400297 <artifactId>logback-core</artifactId>
Fiete Ostkampb5c15a42024-02-28 14:39:51 +0100298 <version>${logback.version}</version>
299 <!--$NO-MVN-MAN-VER$ -->
Fraboni, Gino (gf403a)578368f2017-05-03 13:47:43 -0400300 </dependency>
Fraboni, Gino (gf403a)578368f2017-05-03 13:47:43 -0400301 <dependency>
mark.j.leonard6e4f04a2018-04-26 16:53:12 +0100302 <groupId>org.onap.sdc.sdc-distribution-client</groupId>
Lee, Tian (tl5884)46a2b5f2017-11-29 15:29:18 +0000303 <artifactId>sdc-distribution-client</artifactId>
mark.j.leonardc5aea4a2018-06-06 14:47:42 +0100304 <version>${sdc-distribution-client.version}</version>
Lee, Tian (tl5884)952a19d2017-08-18 16:45:23 +0100305 </dependency>
306 <dependency>
Steve Smokowskief768a72017-02-09 15:43:35 -0500307 <groupId>org.json</groupId>
308 <artifactId>json</artifactId>
Fiete Ostkampb5c15a42024-02-28 14:39:51 +0100309 <version>20131018</version>
310 <!--$NO-MVN-MAN-VER$ -->
Steve Smokowskief768a72017-02-09 15:43:35 -0500311 </dependency>
Steve Smokowskief768a72017-02-09 15:43:35 -0500312 <dependency>
Lee, Tian (tl5884)46a2b5f2017-11-29 15:29:18 +0000313 <groupId>org.eclipse.jetty</groupId>
314 <artifactId>jetty-security</artifactId>
Steve Smokowskief768a72017-02-09 15:43:35 -0500315 </dependency>
Lee, Tian (tl5884)46a2b5f2017-11-29 15:29:18 +0000316 <dependency>
Lee, Tian (tl5884)46a2b5f2017-11-29 15:29:18 +0000317 <groupId>jline</groupId>
318 <artifactId>jline</artifactId>
319 <version>2.12.1</version>
320 </dependency>
Blackwell, Ian (ib733q)7b1f8132018-04-03 17:28:44 +0100321 <dependency>
mark.j.leonard7e6fe8c2018-06-07 16:45:38 +0100322 <groupId>org.apache.commons</groupId>
323 <artifactId>commons-compress</artifactId>
Jimmy Forsyth7e645462020-03-31 17:17:45 -0400324 <version>${commons-compress.version}</version>
mark.j.leonard7e6fe8c2018-06-07 16:45:38 +0100325 </dependency>
326 <dependency>
Blackwell, Ian (ib733q)7b1f8132018-04-03 17:28:44 +0100327 <groupId>commons-io</groupId>
328 <artifactId>commons-io</artifactId>
wr148df849a772022-02-22 16:12:02 -0500329 <version>2.11.0</version>
Blackwell, Ian (ib733q)7b1f8132018-04-03 17:28:44 +0100330 </dependency>
331 <dependency>
332 <groupId>org.apache.commons</groupId>
333 <artifactId>commons-text</artifactId>
Jimmy Forsyth7e645462020-03-31 17:17:45 -0400334 <version>${apache.commons-text.version}</version>
Blackwell, Ian (ib733q)7b1f8132018-04-03 17:28:44 +0100335 </dependency>
Fiete Ostkamp0d67f832024-02-28 16:30:00 +0100336 <dependency>
337 <groupId>org.springframework.cloud</groupId>
338 <artifactId>spring-cloud-starter-sleuth</artifactId>
339 </dependency>
340 <dependency>
341 <groupId>org.springframework.cloud</groupId>
342 <artifactId>spring-cloud-sleuth-zipkin</artifactId>
343 </dependency>
Gary Wu1c792412018-08-24 15:15:28 -0700344
Lee, Tian (tl5884)cb6bc642018-11-06 15:36:40 +0000345 <!-- Test dependencies -->
346 <dependency>
Lee, Tian (tl5884)cb6bc642018-11-06 15:36:40 +0000347 <groupId>org.hamcrest</groupId>
348 <artifactId>hamcrest-all</artifactId>
349 <version>${hamcrest-all.version}</version>
350 <scope>test</scope>
351 </dependency>
352 <dependency>
Fiete Ostkampb5c15a42024-02-28 14:39:51 +0100353 <groupId>org.junit.jupiter</groupId>
354 <artifactId>junit-jupiter</artifactId>
355 <scope>test</scope>
356 </dependency>
357 <dependency>
358 <groupId>org.junit.jupiter</groupId>
359 <artifactId>junit-jupiter-api</artifactId>
360 <scope>test</scope>
361 </dependency>
362 <dependency>
Lee, Tian (tl5884)cb6bc642018-11-06 15:36:40 +0000363 <groupId>org.mockito</groupId>
364 <artifactId>mockito-core</artifactId>
365 <scope>test</scope>
366 </dependency>
367 <dependency>
368 <groupId>org.springframework.boot</groupId>
369 <artifactId>spring-boot-starter-test</artifactId>
370 <scope>test</scope>
371 </dependency>
Steve Smokowskief768a72017-02-09 15:43:35 -0500372 </dependencies>
Steve Smokowskie6908712017-02-10 16:08:20 -0500373
Lee, Tian (tl5884)cb6bc642018-11-06 15:36:40 +0000374 <!-- Plugins and repositories -->
375 <pluginRepositories>
376 <pluginRepository>
377 <id>central</id>
Fiete Ostkamp126843b2022-11-15 16:27:44 +0000378 <url>https://repo1.maven.org/maven2</url>
Lee, Tian (tl5884)cb6bc642018-11-06 15:36:40 +0000379 </pluginRepository>
380 <pluginRepository>
381 <id>EvoSuite</id>
382 <name>EvoSuite Repository</name>
Fiete Ostkamp126843b2022-11-15 16:27:44 +0000383 <url>https://www.evosuite.org/m2</url>
Lee, Tian (tl5884)cb6bc642018-11-06 15:36:40 +0000384 </pluginRepository>
385 </pluginRepositories>
Lee, Tian (tl5884)46a2b5f2017-11-29 15:29:18 +0000386
Lee, Tian (tl5884)cb6bc642018-11-06 15:36:40 +0000387 <repositories>
388 <repository>
389 <id>central</id>
390 <name>Maven 2 repository 2</name>
Fiete Ostkamp126843b2022-11-15 16:27:44 +0000391 <url>https://repo2.maven.org/maven2/</url>
Lee, Tian (tl5884)cb6bc642018-11-06 15:36:40 +0000392 </repository>
393 <repository>
394 <id>ecomp-releases</id>
395 <name>ECOMP Release Repository</name>
396 <url>${nexusproxy}/content/repositories/releases/</url>
397 </repository>
398 <repository>
399 <id>ecomp-snapshots</id>
400 <name>ECOMP Snapshot Repository</name>
401 <url>${nexusproxy}/content/repositories/snapshots/</url>
402 </repository>
403 <repository>
404 <id>ecomp-staging</id>
405 <name>ECOMP Staging Repository</name>
406 <url>${nexusproxy}/content/repositories/staging/</url>
407 </repository>
408 </repositories>
Lee, Tian (tl5884)46a2b5f2017-11-29 15:29:18 +0000409
Steve Smokowskief768a72017-02-09 15:43:35 -0500410 <build>
411 <plugins>
412 <plugin>
Maharajh, Robby (rx2202)e83a8f32021-02-24 13:32:28 -0500413 <groupId>org.apache.maven.plugins</groupId>
414 <artifactId>maven-compiler-plugin</artifactId>
415 <version>${maven-compiler-plugin.version}</version>
416 <inherited>true</inherited>
417 <configuration>
418 <source>${maven-compiler-plugin.source}</source>
419 <target>${maven-compiler-plugin.target}</target>
420 <testSource>${maven-compiler-plugin.test.source}</testSource>
421 <testTarget>${maven-compiler-plugin.test.target}</testTarget>
422 </configuration>
423 </plugin>
424 <plugin>
mark.j.leonard6e4f04a2018-04-26 16:53:12 +0100425 <groupId>org.springframework.boot</groupId>
426 <artifactId>spring-boot-maven-plugin</artifactId>
Jimmy Forsyth7e645462020-03-31 17:17:45 -0400427 <version>${spring-boot.version}</version>
mark.j.leonard6e4f04a2018-04-26 16:53:12 +0100428 <configuration>
429 <executable>true</executable>
430 </configuration>
431 <executions>
432 <execution>
433 <goals>
434 <goal>repackage</goal>
435 </goals>
436 </execution>
437 </executions>
438 </plugin>
439 <plugin>
Lee, Tian (tl5884)cb6bc642018-11-06 15:36:40 +0000440 <groupId>com.mycila</groupId>
441 <artifactId>license-maven-plugin</artifactId>
442 <version>3.0</version>
443 <configuration>
444 <header>License.txt</header>
445 <includes>
446 <include>src/main/java/**</include>
447 <include>src/test/java/**</include>
448 <include>version/properties</include>
449 <include>pom.xml</include>
450 </includes>
451 <skipExistingHeaders>true</skipExistingHeaders>
452 </configuration>
453 <executions>
454 <execution>
455 <goals>
456 <!-- Set goal to "format" to auto update license headers -->
457 <goal>check</goal>
458 </goals>
459 <phase>process-sources</phase>
460 </execution>
461 </executions>
462 </plugin>
Venkata Harish K Kajur8d5d8862017-02-20 21:33:52 +0000463 <plugin>
Dmitry Puzikov86359a22019-04-16 16:52:05 +0200464 <groupId>org.apache.maven.plugins</groupId>
465 <artifactId>maven-deploy-plugin</artifactId>
Jimmy Forsyth7e645462020-03-31 17:17:45 -0400466 <configuration>
Jimmy Forsyth9d647392020-04-01 16:10:31 -0400467 <classifier>client</classifier>
Jimmy Forsyth7e645462020-03-31 17:17:45 -0400468 </configuration>
Venkata Harish K Kajur8d5d8862017-02-20 21:33:52 +0000469 </plugin>
470 <plugin>
Dmitry Puzikov86359a22019-04-16 16:52:05 +0200471 <artifactId>maven-assembly-plugin</artifactId>
472 <configuration>
473 <descriptors>
474 <descriptor>src/main/assembly/descriptor.xml</descriptor>
475 </descriptors>
476 </configuration>
477 <executions>
478 <execution>
479 <id>make-assembly</id>
480 <phase>package</phase>
481 <goals>
482 <goal>single</goal>
483 </goals>
484 </execution>
485 </executions>
Lee, Tian (tl5884)46a2b5f2017-11-29 15:29:18 +0000486 </plugin>
Jimmy Forsythb285db32020-04-01 11:01:47 -0400487
Sylvain Desbureauxaecbb492021-02-01 16:09:23 +0100488 <!-- once we connect aai-parent or oparent 3.0+ we can take out this
Jimmy Forsythb285db32020-04-01 11:01:47 -0400489 whole section -->
490
491 <plugin>
Niharika Sharmad1321852022-10-14 14:01:39 -0400492 <groupId>org.jacoco</groupId>
493 <artifactId>jacoco-maven-plugin</artifactId>
494 <version>${jacoco.version}</version>
495 <configuration>
496 <!-- Note: This exclusion list should match <sonar.exclusions> property
497 above -->
498 <excludes>
499 <exclude>**/gen/**</exclude>
500 <exclude>**/generated-sources/**</exclude>
501 <exclude>**/yang-gen/**</exclude>
502 <exclude>**/pax/**</exclude>
503 </excludes>
504 </configuration>
505 <executions>
506 <!-- Prepares the property pointing to the JaCoCo runtime agent which
507 is passed as VM argument when Maven the Surefire plugin is executed. -->
508 <execution>
509 <id>pre-unit-test</id>
510 <goals>
511 <goal>prepare-agent</goal>
512 </goals>
513 <configuration>
514 <!-- Sets the path to the file which contains the execution data
515 . -->
516 <destFile>${project.build.directory}/code-coverage/jacoco-ut.exec</destFile>
517 <!-- Sets the name of the property containing the settings for JaCoCo
518 runtime agent. -->
519 <propertyName>surefireArgLine</propertyName>
520 </configuration>
521 </execution>
522 <!-- Ensures that the code coverage report for unit tests is created
523 after unit tests have been run. -->
524 <execution>
525 <id>post-unit-test</id>
526 <phase>test</phase>
527 <goals>
528 <goal>report</goal>
529 </goals>
530 <configuration>
531 <!-- Sets the path to the file which contains the execution data
532 . -->
533 <dataFile>${project.build.directory}/code-coverage/jacoco-ut.exec</dataFile>
534 <!-- Sets the output directory for the code coverage report. -->
535 <outputDirectory>${project.reporting.outputDirectory}/jacoco-ut</outputDirectory>
536 </configuration>
537 </execution>
538 <execution>
539 <id>pre-integration-test</id>
540 <phase>pre-integration-test</phase>
541 <goals>
542 <goal>prepare-agent</goal>
543 </goals>
544 <configuration>
545 <!-- Sets the path to the file which contains the execution data
546 . -->
547 <destFile>${project.build.directory}/code-coverage/jacoco-it.exec</destFile>
548 <!-- Sets the name of the property containing the settings for JaCoCo
549 runtime agent. -->
550 <propertyName>failsafeArgLine</propertyName>
551 </configuration>
552 </execution>
553 <!-- Ensures that the code coverage report for integration tests after
554 integration tests have been run. -->
555 <execution>
556 <id>post-integration-test</id>
557 <phase>post-integration-test</phase>
558 <goals>
559 <goal>report</goal>
560 </goals>
561 <configuration>
562 <!-- Sets the path to the file which contains the execution data
563 . -->
564 <dataFile>${project.build.directory}/code-coverage/jacoco-it.exec</dataFile>
565 <!-- Sets the output directory for the code coverage report. -->
566 <outputDirectory>${project.reporting.outputDirectory}/jacoco-it</outputDirectory>
567 </configuration>
568 </execution>
569 <execution>
570 <id>default-check</id>
571 <goals>
572 <goal>check</goal>
573 </goals>
574 <configuration>
575 <dataFile>${project.build.directory}/code-coverage/jacoco-ut.exec</dataFile>
576 <rules>
577 <rule implementation="org.jacoco.maven.RuleConfiguration">
578 <element>BUNDLE</element>
579 <limits>
580 <limit implementation="org.jacoco.report.check.Limit">
581 <counter>LINE</counter>
582 <value>COVEREDRATIO</value>
583 <minimum>${jacoco.line.coverage.limit}</minimum>
584 </limit>
585 </limits>
586 </rule>
587 </rules>
588 </configuration>
589 </execution>
590 </executions>
Jimmy Forsythb285db32020-04-01 11:01:47 -0400591 </plugin>
592 <plugin>
Niharika Sharmad1321852022-10-14 14:01:39 -0400593 <groupId>org.apache.maven.plugins</groupId>
594 <artifactId>maven-surefire-plugin</artifactId>
595 <version>3.0.0-M4</version>
596 <configuration>
597 <!-- Sets the VM argument line used when unit tests are run. -->
598 <argLine>${surefireArgLine}</argLine>
599 <!-- Excludes integration tests when unit tests are run. -->
600 <excludes>
601 <exclude>**/IT*.java</exclude>
602 </excludes>
603 </configuration>
Jimmy Forsythb285db32020-04-01 11:01:47 -0400604 </plugin>
605 <plugin>
Niharika Sharmad1321852022-10-14 14:01:39 -0400606 <groupId>org.apache.maven.plugins</groupId>
607 <artifactId>maven-failsafe-plugin</artifactId>
608 <version>3.0.0-M4</version>
609 <executions>
610 <!-- Ensures that both integration-test and verify goals of the Failsafe
611 Maven plugin are executed. -->
612 <execution>
613 <id>integration-tests</id>
614 <goals>
615 <goal>integration-test</goal>
616 <goal>verify</goal>
617 </goals>
618 <configuration>
619 <!-- Sets the VM argument line used when integration tests are run. -->
620 <argLine>${failsafeArgLine}</argLine>
621 </configuration>
622 </execution>
623 </executions>
Jimmy Forsythb285db32020-04-01 11:01:47 -0400624 </plugin>
625 <plugin>
Niharika Sharmad1321852022-10-14 14:01:39 -0400626 <groupId>org.sonarsource.scanner.maven</groupId>
627 <artifactId>sonar-maven-plugin</artifactId>
628 <version>${sonar.scanner.version}</version>
Jimmy Forsythb285db32020-04-01 11:01:47 -0400629 </plugin>
630 <!-- end removable sonar config -->
631
632
633
Lee, Tian (tl5884)46a2b5f2017-11-29 15:29:18 +0000634 </plugins>
Steve Smokowskief768a72017-02-09 15:43:35 -0500635 </build>
Steve Smokowskief768a72017-02-09 15:43:35 -0500636</project>